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

@ -3687,7 +3687,7 @@ UniValue createrawpegin(const JSONRPCRequest& request)
// Additional block lee-way to avoid bitcoin block races
if (GetBoolArg("-validatepegin", DEFAULT_VALIDATE_PEGIN)) {
ret.push_back(Pair("mature", IsConfirmedBitcoinBlock(merkleBlock.header.GetHash(), GetArg("-peginconfirmationdepth", DEFAULT_PEGIN_CONFIRMATION_DEPTH)+2)));
ret.push_back(Pair("mature", IsConfirmedBitcoinBlock(merkleBlock.header.GetHash(), Params().GetConsensus().pegin_min_depth+2)));
}
return ret;