diff options
| author | MarcoFalke <[email protected]> | 2020-09-28 09:16:47 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-09-28 09:16:56 +0200 |
| commit | c95784e3d31dc557b175181bc034339df22cb5fd (patch) | |
| tree | 957b097c6396295735753e02693444de8fb90f51 /src/script/interpreter.cpp | |
| parent | Merge #20026: test: typo in a functional test doc (diff) | |
| parent | wallet: no need for duplicate storage for ABANDON_HASH constant (diff) | |
| download | discoin-c95784e3d31dc557b175181bc034339df22cb5fd.tar.xz discoin-c95784e3d31dc557b175181bc034339df22cb5fd.zip | |
Merge #20016: uint256: 1 is a constant
4cc7171c9887e88027642927c979e507d7b78dda wallet: no need for duplicate storage for ABANDON_HASH constant (Anthony Towns)
82cf4641f4a161834d07ce83c18982d9b143c040 scripted-diff: Replace UINT256_ONE() with uint256::ONE (Anthony Towns)
183f308fff4caad3e3ada654b6fdf597d262c4c1 uint256: Update constructors to c++11, make ONE static (Anthony Towns)
Pull request description:
`UINT256_ONE()` returns a reference to a global; mark it as const to be sure someone doesn't accidently modify it.
ACKs for top commit:
promag:
ACK 4cc7171c9887e88027642927c979e507d7b78dda
MarcoFalke:
re ACK 4cc7171c98, only change is some constexpr shuffling 🛁
kallewoof:
ACK 4cc7171c9887e88027642927c979e507d7b78dda
Tree-SHA512: 7f399658bfd9ffa4075bc2349049476d842b9579a67518fb7151f56eab36907ef24b1474ee1e89bdc69fe181abe7295dfe19e33b3623d43cec71fc00e356e347
Diffstat (limited to 'src/script/interpreter.cpp')
| -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 7b2457a5e..50a619247 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; } } |