Homu
0ba07d5842
Auto merge of #4056 - rex4539:fix-rpc-undefined-behavior, r=ebfull
...
Fix RPC undefined behavior
Closes https://github.com/zcash/zcash/issues/3792
2019-07-26 15:19:07 -07:00
Dimitris Apostolou
ff40531607
Fix RPC undefined behavior.
...
Co-Authored-By: Dimitris Apostolou <dimitris.apostolou@icloud.com>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2019-07-23 21:36:53 +01:00
Daira Hopwood
bc909a7a7f
Replace http with https: in links to the MIT license.
...
Also change MIT/X11 to just MIT, since no distinction was intended.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2019-07-18 15:26:01 +01:00
Wladimir J. van der Laan
f4e6487219
src/arith_256.cpp: bigendian compatibility
2015-03-06 17:21:59 +01:00
Wladimir J. van der Laan
6bd0dc2a84
arith_uint256: remove initialization from byte vector
...
Remove initialization from vector (as this is only used in the tests).
Also implement SetHex and GetHex in terms of uint256, to avoid
duplicate code as well as avoid endianness issues (as they
work in term of bytes).
2015-01-05 15:45:36 +01:00
Wladimir J. van der Laan
30007fda76
Remove now-unused methods from arith_uint256 and base_uint
...
- Methods that access the guts of arith_uint256 are removed,
as these are incompatible between endians. Use uint256 instead
- Serialization is no longer needed as arith_uint256's are never
read or written
- GetHash is never used on arith_uint256
2015-01-05 15:45:36 +01:00
Wladimir J. van der Laan
edc720479d
Remove arith_uint160
...
We never do 160-bit arithmetic.
2015-01-05 15:45:36 +01:00
Wladimir J. van der Laan
92cdb1aace
Add conversion functions arith_uint256<->uint_256
2015-01-05 15:45:35 +01:00
Wladimir J. van der Laan
bfc6070342
uint256->arith_uint256 blob256->uint256
...
Introduce new opaque implementation of `uint256`, move old
"arithmetic" implementation to `arith_uint256.
2015-01-05 15:45:35 +01:00