diff options
| author | Anthony Towns <[email protected]> | 2020-09-26 16:01:56 +1000 |
|---|---|---|
| committer | Anthony Towns <[email protected]> | 2020-09-28 12:14:19 +1000 |
| commit | 82cf4641f4a161834d07ce83c18982d9b143c040 (patch) | |
| tree | 8fea48359235ca8a911346f1551e1b08e06daa8e /src/test/sighash_tests.cpp | |
| parent | uint256: Update constructors to c++11, make ONE static (diff) | |
| download | discoin-82cf4641f4a161834d07ce83c18982d9b143c040.tar.xz discoin-82cf4641f4a161834d07ce83c18982d9b143c040.zip | |
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/test/sighash_tests.cpp')
| -rw-r--r-- | src/test/sighash_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/sighash_tests.cpp b/src/test/sighash_tests.cpp index c0bb92258..bc862de78 100644 --- a/src/test/sighash_tests.cpp +++ b/src/test/sighash_tests.cpp @@ -28,7 +28,7 @@ uint256 static SignatureHashOld(CScript scriptCode, const CTransaction& txTo, un { if (nIn >= txTo.vin.size()) { - return UINT256_ONE(); + return uint256::ONE; } CMutableTransaction txTmp(txTo); @@ -58,7 +58,7 @@ uint256 static SignatureHashOld(CScript scriptCode, const CTransaction& txTo, un unsigned int nOut = nIn; if (nOut >= txTmp.vout.size()) { - return UINT256_ONE(); + return uint256::ONE; } txTmp.vout.resize(nOut+1); for (unsigned int i = 0; i < nOut; i++) |