0
// The best chain should have at least this much work.
        consensus.nMinimumChainWork = uint256S("0x000000000000000000000000000000000000000000000005c13f99f6d0b1a908");

how to calculate this parameter, i little not understand. It's not block in blockchain, how find this value if altcoin exist end i update sources with exist blockchain end for new blockchain.

consensus.powLimit = uint256S("00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); 

end about this value , how it convert to diff xxx for understand what diff is it. example diff 1, 20, 1000 etc...

1 Answer 1

1

how to calculate this parameter, i little not understand. It's not block in blockchain, how find this value if altcoin exist end i update sources with exist blockchain end for new blockchain.

Because this is a new chain, the minimum should be zero.

end about this value , how it convert to diff xxx for understand what diff is it. example diff 1, 20, 1000 etc...

It is diff 1, by definition.

2
  • if it's not new , if exist 2000+ blocks , or you mean this ? you can write example of zero ? end how calculate it in future , how this value find I do not understand. :/
    – tseries
    Commented Jul 29, 2017 at 19:22
  • 1
    You can use the getblockchaininfo RPC to find chainwork in the future.
    – Nick ODell
    Commented Jul 29, 2017 at 20:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.