Skip to content

Commit

Permalink
Make sure we reset blk
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopeereboom committed Oct 2, 2024
1 parent 4aff545 commit 09e286e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions database/tbcd/level/level.go
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,8 @@ func (l *ldb) BlockTxUpdate(ctx context.Context, direction int, txs map[tbcd.TxK
if _, ok := bm[string(k[33:65])]; !ok {
copy(block[1:], k[33:65])
blk = block
} else {
blk = nil
}
case 's':
key = k[:]
Expand Down

0 comments on commit 09e286e

Please sign in to comment.