From d0feca3dca3f68f11f6f074fb6809a9bea130a9a Mon Sep 17 00:00:00 2001 From: Warren Togami Date: Wed, 20 Apr 2016 17:33:40 -0700 Subject: [PATCH] Rename `blindtrust` to `validatepegin` and invert boolean `validatepegin=0` default means the sidechain will not verify incoming peg transactions against the bitcoind via CallRPC(). No change to default behavior. This only clarifies the meaning of the parameter. --- src/script/interpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index 498cd3d0bd..be3c5d4877 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -1231,7 +1231,7 @@ bool EvalScript(vector >& stack, const CScript& script, un return set_error(serror, SCRIPT_ERR_WITHDRAW_VERIFY_OUTPUT); #ifndef BITCOIN_SCRIPT_NO_CALLRPC - if (!GetBoolArg("-blindtrust", true) && !checker.IsConfirmedBitcoinBlock(genesishash, merkleBlock.header.GetHash(), flags & SCRIPT_VERIFY_INCREASE_CONFIRMATIONS_REQUIRED)) + if (GetBoolArg("-validatepegin", false) && !checker.IsConfirmedBitcoinBlock(genesishash, merkleBlock.header.GetHash(), flags & SCRIPT_VERIFY_INCREASE_CONFIRMATIONS_REQUIRED)) return set_error(serror, SCRIPT_ERR_WITHDRAW_VERIFY_BLOCKCONFIRMED); #endif } catch (std::exception& e) {