• Felix Lange's avatar
    eth/downloader: fix negative balance issue in tests · 9be5d5cd
    Felix Lange authored
    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.
    9be5d5cd
Name
Last commit
Last update
..
downloader Loading commit data...
fetcher Loading commit data...
filters Loading commit data...
api.go Loading commit data...
backend.go Loading commit data...
backend_test.go Loading commit data...
cpu_mining.go Loading commit data...
gasprice.go Loading commit data...
gpu_mining.go Loading commit data...
handler.go Loading commit data...
handler_test.go Loading commit data...
helper_test.go Loading commit data...
metrics.go Loading commit data...
peer.go Loading commit data...
protocol.go Loading commit data...
protocol_test.go Loading commit data...
sync.go Loading commit data...
sync_test.go Loading commit data...