Make validatepegin default to true if has parent chain

This commit is contained in:
Steven Roose 2019-03-21 14:39:45 +00:00
parent 3c8206a36c
commit aba54b3f92
No known key found for this signature in database
GPG key ID: 7FC91380BB4CE800
8 changed files with 8 additions and 6 deletions

View file

@ -5128,7 +5128,7 @@ bool BitcoindRPCCheck(const bool init)
pblocktree->WriteInvalidBlockQueue(vblocksToReconsider);
// Next, check for working and valid rpc
if (gArgs.GetBoolArg("-validatepegin", DEFAULT_VALIDATE_PEGIN)) {
if (gArgs.GetBoolArg("-validatepegin", Params().GetConsensus().has_parent_chain)) {
// During init try until a non-RPC_IN_WARMUP result
while (true) {
try {