Skip to content

Commit 4cc7171

Browse files
committed
wallet: no need for duplicate storage for ABANDON_HASH constant
1 parent 82cf464 commit 4cc7171

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/wallet/wallet.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,6 @@ std::shared_ptr<CWallet> CreateWallet(interfaces::Chain& chain, const std::strin
324324
return wallet;
325325
}
326326

327-
const uint256 CWalletTx::ABANDON_HASH(uint256::ONE);
328-
329327
/** @defgroup mapWallet
330328
*
331329
* @{

src/wallet/wallet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class CWalletTx
275275
/** Constant used in hashBlock to indicate tx has been abandoned, only used at
276276
* serialization/deserialization to avoid ambiguity with conflicted.
277277
*/
278-
static const uint256 ABANDON_HASH;
278+
static constexpr const uint256& ABANDON_HASH = uint256::ONE;
279279

280280
public:
281281
/**

0 commit comments

Comments
 (0)