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/script | |
parent | 183f308fff4caad3e3ada654b6fdf597d262c4c1 (diff) |
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/script')
-rw-r--r-- | src/script/interpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index 7b2457a5e3..50a6192476 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -1375,7 +1375,7 @@ uint256 SignatureHash(const CScript& scriptCode, const T& txTo, unsigned int nIn if ((nHashType & 0x1f) == SIGHASH_SINGLE) { if (nIn >= txTo.vout.size()) { // nOut out of range - return UINT256_ONE(); + return uint256::ONE; } } |