• F
    eth/downloader: fix negative balance issue in tests · 9be5d5cd
    Felix Lange 提交于
    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
chain_makers.go 9.0 KB