Comments (5)
There's no testnet yet, but if you just build and run via cargo from the project root (/grin) using:
RUST_LOG=grin=debug cargo run
It should pick up defaults from the grin.toml file, which will start in user testing mode. You can also set:
mining_parameter_mode = "AutomatedTesting"
If you want a really fast growing blockchain.
Alternatively, you can copy the config file into the current directory and the values in there will be picked up if you run grin without specifying any parameters on the command line.
from grin.
Thanks yeastplume I'll give it a try because the user testing mode is too slow to generate a block on my machine in a reasonable amount of time.
from grin.
@yeastplume what kind of time are we talking about for UserTesting
mode to find the genesis block (say on a reasonably fast laptop like a MacBook Pro)? Is this a few minutes or significantly longer than that?
from grin.
At the moment, it's instant, because the genesis block data is the same every time, and I've seeded the right nonce into https://github.com/ignopeverell/grin/blob/900c52424d1ef5825a2b343ed53785c05b354525/core/src/global.rs#L106
However, the genesis block should eventually be modifiable with the correct time/date/newspaper headline, so if mining from scratch with the internal miner, cuckoo 16 should take something on the order of a few minutes. Cuckoo 30, however, will be unworkable, it will take days to generate the genesis block. In my own fork (which I haven't PRed yet,) I've pre-seeded this with a GPU mined solution in global.rs.
I'm going to propose some refactoring for a long-term solution in another issue... I'll describe how to address this there and we can probably close this one.
from grin.
Solved now, genesis block can be mined with configured miner and works in whatever mode is configured
from grin.
Related Issues (20)
- build website deposit and withdraw grin token using grin-wallet api
- v5.1.2 building error HOT 1
- Potential P2P Bandwidth attack
- log4rs: No space left on device (os error 28) HOT 1
- Config parsing error causes panic
- Very often node is PongMessage instead of HeadersMessage.
- TxHashsetDownload is starting in parallel with TxHashsetPibd HOT 4
- Prune Node sync more than 7 hours HOT 4
- Beta 5.2 Shutdown in step 4/7, many connected_peers: failed to get peers lock, Shutting down reader connection, waiting for thread exit, Shutdown
- bug in computing proof size rounded up to next higher 2-power
- grin 5.1.2 failed to build against rust 1.71.0 HOT 3
- Aborting PIBD error. restart fast sync v5.2.0-beta.3 HOT 6
- Add one extra layer to hide slatepack addresses.
- Foreign api get_blocks doesnโt return genesis block
- building Grin openbsd HOT 1
- Add chain type parameter into get_status rpc
- Compiling error Linux error[E0310]: the parameter type `T` may not live long enough HOT 2
- When run_tui is set to false it does not return to the cmd line once started HOT 2
- CPU consumption and DoS on calling get_outputs rpc HOT 4
- Update tokio to allow compilation for Windows ARM arch
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grin.