good morning!!!!

Skip to content
Snippets Groups Projects
Commit de12183d authored by Jason Carver's avatar Jason Carver
Browse files

deep-mining-log: need ring buffer to be one bigger for all-blocks-mined case

parent 6019f1bb
Branches
Tags
No related merge requests found
...@@ -219,7 +219,7 @@ out: ...@@ -219,7 +219,7 @@ out:
func newLocalMinedBlock(blockNumber uint64, prevMinedBlocks *uint64RingBuffer) (minedBlocks *uint64RingBuffer) { func newLocalMinedBlock(blockNumber uint64, prevMinedBlocks *uint64RingBuffer) (minedBlocks *uint64RingBuffer) {
if prevMinedBlocks == nil { if prevMinedBlocks == nil {
minedBlocks = &uint64RingBuffer{next: 0, ints: make([]uint64, miningLogAtDepth)} minedBlocks = &uint64RingBuffer{next: 0, ints: make([]uint64, miningLogAtDepth + 1)}
} else { } else {
minedBlocks = prevMinedBlocks minedBlocks = prevMinedBlocks
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment