From c8700efe638e635c72086435502f54cbc3bd5388 Mon Sep 17 00:00:00 2001 From: miketout Date: Sat, 13 Oct 2018 14:29:17 -0700 Subject: [PATCH] Change default note contents in Tx builder and cheat message change --- src/miner.cpp | 2 +- src/transaction_builder.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index 1f07c8365..7e7809b46 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -313,7 +313,7 @@ CBlockTemplate* CreateNewBlock(const CScript& _scriptPubKeyIn, int32_t gpucount, { std::list removed; mempool.removeConflicts(cheatSpend.value(), removed); - printf("CAUGHT STAKE CHEATER! Adding cheat spend for %.8f at block #%d, coinbase tx\n%s\n", + printf("Found cheating stake! Adding cheat spend for %.8f at block #%d, coinbase tx\n%s\n", (double)cheatSpend.value().vout[0].nValue / (double)COIN, nHeight, cheatSpend.value().vin[0].prevout.hash.GetHex().c_str()); } diff --git a/src/transaction_builder.h b/src/transaction_builder.h index 9e59cb9c6..d040ed06c 100644 --- a/src/transaction_builder.h +++ b/src/transaction_builder.h @@ -89,7 +89,7 @@ public: uint256 ovk, libzcash::SaplingPaymentAddress to, CAmount value, - std::array memo = {{0xF6}}); + std::array memo = {{0}}); // Assumes that the value correctly corresponds to the provided UTXO. void AddTransparentInput(COutPoint utxo, CScript scriptPubKey, CAmount value);