Code Monkey home page Code Monkey logo

Comments (5)

yeastplume avatar yeastplume commented on August 15, 2024

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.

pinkvoid avatar pinkvoid commented on August 15, 2024

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.

antiochp avatar antiochp commented on August 15, 2024

@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.

yeastplume avatar yeastplume commented on August 15, 2024

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.

yeastplume avatar yeastplume commented on August 15, 2024

Solved now, genesis block can be mined with configured miner and works in whatever mode is configured

from grin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.