Skip to content

Commit

Permalink
wallet: no need for duplicate storage for ABANDON_HASH constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtowns committed Sep 28, 2020
1 parent 82cf464 commit 4cc7171
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
* @{
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class CWalletTx
/** 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:
/**
Expand Down

0 comments on commit 4cc7171

Please sign in to comment.