diff options
author | Anthony Towns <aj@erisian.com.au> | 2020-09-26 16:01:56 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2020-09-28 12:14:19 +1000 |
commit | 82cf4641f4a161834d07ce83c18982d9b143c040 (patch) | |
tree | 8fea48359235ca8a911346f1551e1b08e06daa8e /src/wallet | |
parent | 183f308fff4caad3e3ada654b6fdf597d262c4c1 (diff) | |
download | bitcoin-82cf4641f4a161834d07ce83c18982d9b143c040.tar.xz |
scripted-diff: Replace UINT256_ONE() with uint256::ONE
-BEGIN VERIFY SCRIPT-
sed -i '/inline.* UINT256_ONE() {/,+1d' src/uint256.h
sed -i 's/UINT256_ONE()/uint256::ONE/' $(git grep -l UINT256_ONE)
-END VERIFY SCRIPT-
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/scriptpubkeyman.cpp | 2 | ||||
-rw-r--r-- | src/wallet/wallet.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp index 51715462c5..435716e56a 100644 --- a/src/wallet/scriptpubkeyman.cpp +++ b/src/wallet/scriptpubkeyman.cpp @@ -655,7 +655,7 @@ std::unique_ptr<CKeyMetadata> LegacyScriptPubKeyMan::GetMetadata(const CTxDestin uint256 LegacyScriptPubKeyMan::GetID() const { - return UINT256_ONE(); + return uint256::ONE; } /** diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 66857dbb39..d7a13644df 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -324,7 +324,7 @@ std::shared_ptr<CWallet> CreateWallet(interfaces::Chain& chain, const std::strin return wallet; } -const uint256 CWalletTx::ABANDON_HASH(UINT256_ONE()); +const uint256 CWalletTx::ABANDON_HASH(uint256::ONE); /** @defgroup mapWallet * |