mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
make peginconfirmationdepth a chain param
This commit is contained in:
parent
89bcd1b5ba
commit
b628d91894
4 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue