diff options
author | Martin Holst Swende <martin@swende.se> | 2017-05-04 18:53:42 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-05-04 18:53:42 +0800 |
commit | 14cc40a31a3f3aa229e6770911324daa2928ef57 (patch) | |
tree | ef0795701a68240e685437f7a6ccc371e2a4e358 /common | |
parent | 881df0e6296520c2a230c5aaad96f2e1ba721d87 (diff) | |
download | go-tangerine-14cc40a31a3f3aa229e6770911324daa2928ef57.tar go-tangerine-14cc40a31a3f3aa229e6770911324daa2928ef57.tar.gz go-tangerine-14cc40a31a3f3aa229e6770911324daa2928ef57.tar.bz2 go-tangerine-14cc40a31a3f3aa229e6770911324daa2928ef57.tar.lz go-tangerine-14cc40a31a3f3aa229e6770911324daa2928ef57.tar.xz go-tangerine-14cc40a31a3f3aa229e6770911324daa2928ef57.tar.zst go-tangerine-14cc40a31a3f3aa229e6770911324daa2928ef57.zip |
Hive-test fixes (#14419)
* core: Fix for consensus test gasLimit > 2^63-1 https://github.com/ethereum/tests/blob/develop/BlockchainTests/bcInvalidHeaderTest.json#L238
* core: fix testcase for uncle gasUsage > gasLimit : https://github.com/ethereum/tests/blob/develop/BlockchainTests/EIP150/bcUncleHeaderValiditiy.json#L986
* math/big: rename TTM63m1 -> MaxBig63, + go fmt
* core: documentation
Diffstat (limited to 'common')
-rw-r--r-- | common/math/big.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/math/big.go b/common/math/big.go index 5255a88e9..fd0174b36 100644 --- a/common/math/big.go +++ b/common/math/big.go @@ -27,6 +27,8 @@ var ( tt256 = BigPow(2, 256) tt256m1 = new(big.Int).Sub(tt256, big.NewInt(1)) MaxBig256 = new(big.Int).Set(tt256m1) + tt63 = BigPow(2, 63) + MaxBig63 = new(big.Int).Sub(tt63, big.NewInt(1)) ) const ( |