Skip to content

Commit

Permalink
legacypool: fix BenchmarkListCapOneTx in list_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanxyg committed Mar 7, 2024
1 parent 5b87467 commit 5e2816d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/txpool/legacypool/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func BenchmarkListCapOneTx(b *testing.B) {
list := newList(true)
// Insert the transactions in a random order
for _, v := range rand.Perm(len(txs)) {
list.Add(txs[v], DefaultConfig.PriceBump)
list.Add(txs[v], DefaultConfig.PriceBump, nil)
}
b.StartTimer()
list.Cap(list.Len() - 1)
Expand Down

0 comments on commit 5e2816d

Please sign in to comment.