diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index ddac8f782..c6afe15cc 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -843,6 +843,10 @@ bool EvalScript( } bool fSuccess = checker.CheckSig(vchSig, vchPubKey, script, consensusBranchId); + // comment below when not debugging + //printf("OP_CHECKSIG: scriptSig.%s\nscriptPubKey.%s\nbranchid.%x, success: %s\n", + // CScript(vchSig).ToString().c_str(), CScript(vchPubKey).ToString().c_str(), consensusBranchId, (fSuccess ? "true" : "false")); + popstack(stack); popstack(stack); stack.push_back(fSuccess ? vchTrue : vchFalse); @@ -1496,12 +1500,12 @@ bool VerifyScript( return false; if (stack.empty()) { - //printf("interpreter stack is empty, comment this debugging message\nscriptSig: %s\nscriptPubKey: %s",scriptSig.ToString().c_str(),scriptPubKey.ToString().c_str()); + //printf("interpreter stack is empty, comment this debugging message\nscriptSig: %s\nscriptPubKey: %s\n",scriptSig.ToString().c_str(),scriptPubKey.ToString().c_str()); return set_error(serror, SCRIPT_ERR_EVAL_FALSE); } if (CastToBool(stack.back()) == false) { - //printf("false return value, comment this debugging message\nscriptSig: %s\nscriptPubKey: %s",scriptSig.ToString().c_str(),scriptPubKey.ToString().c_str()); + //printf("false return value, comment this debugging message\nscriptSig: %s\nscriptPubKey: %s\n",scriptSig.ToString().c_str(),scriptPubKey.ToString().c_str()); return set_error(serror, SCRIPT_ERR_EVAL_FALSE); } @@ -1529,12 +1533,12 @@ bool VerifyScript( return false; if (stack.empty()) { - //printf("interpreter stack is empty #2, comment this debugging message\nscriptSig: %s\nscriptPubKey: %s",scriptSig.ToString().c_str(),scriptPubKey.ToString().c_str()); + //printf("interpreter stack is empty #2, comment this debugging message\nscriptSig: %s\nscriptPubKey: %s\n",scriptSig.ToString().c_str(),scriptPubKey.ToString().c_str()); return set_error(serror, SCRIPT_ERR_EVAL_FALSE); } if (!CastToBool(stack.back())) { - //printf("false return value #2, comment this debugging message\nscriptSig: %s\nscriptPubKey: %s",scriptSig.ToString().c_str(),scriptPubKey.ToString().c_str()); + //printf("false return value #2, comment this debugging message\nscriptSig: %s\nscriptPubKey: %s\n",scriptSig.ToString().c_str(),scriptPubKey.ToString().c_str()); return set_error(serror, SCRIPT_ERR_EVAL_FALSE); } } diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index af9ba05d7..bf29e4715 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1305,7 +1305,7 @@ int32_t CWallet::VerusStakeTransaction(CBlock *pBlock, CMutableTransaction &txNe return 0; // if we are staking with the extended format, add the opreturn data required - // TODO: uncomment the line below to save a little space after testing, remove this one + // if (extendedStake) { uint256 srcBlock = uint256();