aboutsummaryrefslogtreecommitdiffstats
path: root/trie
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-12-17 21:13:30 +0800
committerFelix Lange <fjl@twurst.com>2015-12-18 19:09:10 +0800
commit9be5d5cd90517244b239c6af4e602d898fafeaf7 (patch)
tree1c5b5ce8b26e2b5cbb399cd9d03e19e3307e9f6d /trie
parent2baf1de00df56dee47161ad763788a92693b9c29 (diff)
downloadgo-tangerine-9be5d5cd90517244b239c6af4e602d898fafeaf7.tar
go-tangerine-9be5d5cd90517244b239c6af4e602d898fafeaf7.tar.gz
go-tangerine-9be5d5cd90517244b239c6af4e602d898fafeaf7.tar.bz2
go-tangerine-9be5d5cd90517244b239c6af4e602d898fafeaf7.tar.lz
go-tangerine-9be5d5cd90517244b239c6af4e602d898fafeaf7.tar.xz
go-tangerine-9be5d5cd90517244b239c6af4e602d898fafeaf7.tar.zst
go-tangerine-9be5d5cd90517244b239c6af4e602d898fafeaf7.zip
eth/downloader: fix negative balance issue in tests
The test chain generated by makeChainFork included invalid uncle headers, crashing the generator during the state commit. The headers were invalid because they used the iteration counter as the block number, even though makeChainFork uses a block with number > 0 as the parent. Fix this by introducing BlockGen.Number, which allows accessing the actual number of the block being generated.
Diffstat (limited to 'trie')
0 files changed, 0 insertions, 0 deletions