make peginconfirmationdepth a chain param

This commit is contained in:
Gregory Sanders 2018-03-28 11:40:20 -04:00
parent 89bcd1b5ba
commit b628d91894
4 changed files with 4 additions and 2 deletions

View file

@ -129,6 +129,7 @@ protected:
consensus.nMinimumChainWork = uint256S(GetArg("-con_nminimumchainwork", "0x00"));
// By default assume that the signatures in ancestors of this block are valid.
consensus.defaultAssumeValid = uint256S(GetArg("-con_defaultassumevalid", "0x00"));
consensus.pegin_min_depth = GetArg("-peginconfirmationdepth", DEFAULT_PEGIN_CONFIRMATION_DEPTH);
// bitcoin regtest is the parent chain by default
parentGenesisBlockHash = uint256S(GetArg("-parentgenesisblockhash", "0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206"));