mapCheckpoints and mapStakeModifierCheckpoints

Developer Talk
Post Reply
User avatar
GOSSIP-TEAM
Site Admin
Site Admin
Posts: 57
Joined: Sun Aug 12, 2018 12:19 pm
Location: Europe
Contact:

Tue Jan 15, 2019 5:32 pm

stake modifiers = kernel.cpp
mapCheckpoints = checkpoints.cpp

Using Block 16996

mapCheckpoints:

Code: Select all

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

Code: Select all

+        ( 16996, 0x640a038cu )
Deriving using daemon

Code: Select all

$ coind getblockhash 16996
408084c7299169168ab371ff0e049c6bba09d03636c1618b924444260cc32edd
mapStakeModifierCheckpoints value is modifierchecksum below:

Code: Select all

$ coind 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"
}

Code: Select all

Source: 
https://gist.github.com/jyap808/e0dd82914d8873a6bee1
https://github.com/CryptoGir/Zimstake/commit/5cc7c8179bfe2fed239180e9e4f4f7acb50522b9#diff-c33d3ce1a2a004536aaf1b90f6458900
Post Reply