Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jyap808/e0dd82914d8873a6bee1 to your computer and use it in GitHub Desktop.
Save jyap808/e0dd82914d8873a6bee1 to your computer and use it in GitHub Desktop.
mapCheckpoints and mapStakeModifierCheckpoints

Example is the coin Zimstake and this commit:

https://github.com/CryptoGir/Zimstake/commit/5cc7c8179bfe2fed239180e9e4f4f7acb50522b9#diff-c33d3ce1a2a004536aaf1b90f6458900

Using Block 16996

mapCheckpoints:

+        ( 16996,uint256("0x408084c7299169168ab371ff0e049c6bba09d03636c1618b924444260cc32edd"))

mapStakeModifierCheckpoints:

+        ( 16996, 0x640a038cu )

Deriving using daemon

$ zimstaked getblockhash 16996
408084c7299169168ab371ff0e049c6bba09d03636c1618b924444260cc32edd

mapStakeModifierCheckpoints value is modifierchecksum below:

$ zimstaked getblock 408084c7299169168ab371ff0e049c6bba09d03636c1618b924444260cc32edd
{
    "hash" : "408084c7299169168ab371ff0e049c6bba09d03636c1618b924444260cc32edd",
    "confirmations" : 53985,
    "size" : 752,
    "height" : 16996,
    "version" : 1,
    "merkleroot" : "2873942c099be5d99ba30398c3c4051604e3ada12a27904702017e597a8b078d",
    "mint" : 0.21931357,
    "time" : 1399306591,
    "nonce" : 0,
    "bits" : "1e00b28b",
    "difficulty" : 0.00560081,
    "blocktrust" : "16f0f62",
    "chaintrust" : "12b8545d1c3b37e71",
    "previousblockhash" : "c9344b1eec2830fe443c6d7fb391ac2712c5756669ffa8c10927dfa506764580",
    "nextblockhash" : "116f1b14be5b7c4fc0f55c043f961ecb14d1f14e6247e3063806d567cc85eff3",
    "flags" : "proof-of-stake",
    "proofhash" : "00009e977e7da49d419411c2bc8d38b4dbebe3e15eba073fbedb3fcda55717e2",
    "entropybit" : 1,
    "modifier" : "139574e0e96a123e",
    "modifierchecksum" : "640a038c",
    "tx" : [
        "7327590a6f4a3b97d3a0318a2bd90fd5595d0d7f8d3bb069070d7e116a8fa675",
        "a890d79e982a407113122558bcaef072574a5bd70165ce26f3ceb3f749602444",
        "b0f1bd62d4fb3780a9906aa5953437aa948e18c009169aecb11a4254c3252ab6"
    ],
    "signature" : "3044022073a303b45c196ce1aec75e91c6857fc9508c2160050b11bbce9a944942c013b002207daa670be072812310168f8d8e3ccdd8b86ced31b8052a29fb155b2380063f48"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment