wallet: no need for duplicate storage for ABANDON_HASH constant

This commit is contained in:
Anthony Towns committed 2020-09-28 12:14:19 +10:00
1 parent 82cf4641f4
commit 4cc7171c98
2 files changed
+1 -3

No files matched your search

-2
View File
@@ -324,8 +324,6 @@ std::shared_ptr<CWallet> CreateWallet(interfaces::Chain& chain, const std::strin
return wallet;
}
const uint256 CWalletTx::ABANDON_HASH(uint256::ONE);
/** @defgroup mapWallet
*
* @{
+1 -1
View File
@@ -275,7 +275,7 @@ private:
/** Constant used in hashBlock to indicate tx has been abandoned, only used at
* serialization/deserialization to avoid ambiguity with conflicted.
*/
static const uint256 ABANDON_HASH;
static constexpr const uint256& ABANDON_HASH = uint256::ONE;
public:
/**