mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-10 01:56:37 +00:00
Merge pull request #15275 from mcdee/master
core/types: fix test for TransactionsByPriceAndNonce
This commit is contained in:
commit
0ed4d76c79
1 changed files with 6 additions and 6 deletions
|
|
@ -147,12 +147,12 @@ func TestTransactionPriceNonceSort(t *testing.T) {
|
||||||
txset := NewTransactionsByPriceAndNonce(signer, groups)
|
txset := NewTransactionsByPriceAndNonce(signer, groups)
|
||||||
|
|
||||||
txs := Transactions{}
|
txs := Transactions{}
|
||||||
for {
|
for tx := txset.Peek(); tx != nil; tx = txset.Peek() {
|
||||||
if tx := txset.Peek(); tx != nil {
|
txs = append(txs, tx)
|
||||||
txs = append(txs, tx)
|
txset.Shift()
|
||||||
txset.Shift()
|
}
|
||||||
}
|
if len(txs) != 25*25 {
|
||||||
break
|
t.Errorf("expected %d transactions, found %d", 25*25, len(txs))
|
||||||
}
|
}
|
||||||
for i, txi := range txs {
|
for i, txi := range txs {
|
||||||
fromi, _ := Sender(signer, txi)
|
fromi, _ := Sender(signer, txi)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue