@@ -200,7 +200,7 @@ func TestStateChangeDuringTransactionPoolReset(t *testing.T) {
200
200
t .Fatalf ("Invalid nonce, want 0, got %d" , nonce )
201
201
}
202
202
203
- pool .addRemotesSync ([]* types.Transaction {tx0 , tx1 })
203
+ pool .AddRemotesSync ([]* types.Transaction {tx0 , tx1 })
204
204
205
205
nonce = pool .Nonce (address )
206
206
if nonce != 2 {
@@ -587,7 +587,7 @@ func TestTransactionPostponing(t *testing.T) {
587
587
txs = append (txs , tx )
588
588
}
589
589
}
590
- for i , err := range pool .addRemotesSync (txs ) {
590
+ for i , err := range pool .AddRemotesSync (txs ) {
591
591
if err != nil {
592
592
t .Fatalf ("tx %d: failed to add transactions: %v" , i , err )
593
593
}
@@ -683,7 +683,7 @@ func TestTransactionGapFilling(t *testing.T) {
683
683
defer sub .Unsubscribe ()
684
684
685
685
// Create a pending and a queued transaction with a nonce-gap in between
686
- pool .addRemotesSync ([]* types.Transaction {
686
+ pool .AddRemotesSync ([]* types.Transaction {
687
687
transaction (0 , 100000 , key ),
688
688
transaction (2 , 100000 , key ),
689
689
})
@@ -800,7 +800,7 @@ func testTransactionQueueGlobalLimiting(t *testing.T, nolocals bool) {
800
800
nonces [addr ]++
801
801
}
802
802
// Import the batch and verify that limits have been enforced
803
- pool .addRemotesSync (txs )
803
+ pool .AddRemotesSync (txs )
804
804
805
805
queued := 0
806
806
for addr , list := range pool .queue {
@@ -988,7 +988,7 @@ func TestTransactionPendingGlobalLimiting(t *testing.T) {
988
988
}
989
989
}
990
990
// Import the batch and verify that limits have been enforced
991
- pool .addRemotesSync (txs )
991
+ pool .AddRemotesSync (txs )
992
992
993
993
pending := 0
994
994
for _ , list := range pool .pending {
@@ -1068,7 +1068,7 @@ func TestTransactionPendingMinimumAllowance(t *testing.T) {
1068
1068
}
1069
1069
}
1070
1070
// Import the batch and verify that limits have been enforced
1071
- pool .addRemotesSync (txs )
1071
+ pool .AddRemotesSync (txs )
1072
1072
1073
1073
for addr , list := range pool .pending {
1074
1074
if list .Len () != int (config .AccountSlots ) {
@@ -1124,7 +1124,7 @@ func TestTransactionPoolRepricing(t *testing.T) {
1124
1124
ltx := pricedTransaction (0 , 100000 , big .NewInt (1 ), keys [3 ])
1125
1125
1126
1126
// Import the batch and that both pending and queued transactions match up
1127
- pool .addRemotesSync (txs )
1127
+ pool .AddRemotesSync (txs )
1128
1128
pool .AddLocal (ltx )
1129
1129
1130
1130
pending , queued := pool .Stats ()
@@ -1404,7 +1404,7 @@ func TestTransactionPoolStableUnderpricing(t *testing.T) {
1404
1404
for i := uint64 (0 ); i < config .GlobalSlots ; i ++ {
1405
1405
txs = append (txs , pricedTransaction (i , 100000 , big .NewInt (1 ), keys [0 ]))
1406
1406
}
1407
- pool .addRemotesSync (txs )
1407
+ pool .AddRemotesSync (txs )
1408
1408
1409
1409
pending , queued := pool .Stats ()
1410
1410
if pending != int (config .GlobalSlots ) {
@@ -1658,7 +1658,7 @@ func TestTransactionStatusCheck(t *testing.T) {
1658
1658
txs = append (txs , pricedTransaction (2 , 100000 , big .NewInt (1 ), keys [2 ])) // Queued only
1659
1659
1660
1660
// Import the transaction and ensure they are correctly added
1661
- pool .addRemotesSync (txs )
1661
+ pool .AddRemotesSync (txs )
1662
1662
1663
1663
pending , queued := pool .Stats ()
1664
1664
if pending != 2 {
0 commit comments