mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-04 17:15:55 +00:00
deep-mining-log: need ring buffer to be one bigger for all-blocks-mined case
This commit is contained in:
parent
6019f1bb0a
commit
de12183d38
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ out:
|
|||
|
||||
func newLocalMinedBlock(blockNumber uint64, prevMinedBlocks *uint64RingBuffer) (minedBlocks *uint64RingBuffer) {
|
||||
if prevMinedBlocks == nil {
|
||||
minedBlocks = &uint64RingBuffer{next: 0, ints: make([]uint64, miningLogAtDepth)}
|
||||
minedBlocks = &uint64RingBuffer{next: 0, ints: make([]uint64, miningLogAtDepth + 1)}
|
||||
} else {
|
||||
minedBlocks = prevMinedBlocks
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue