File tree 1 file changed +6
-2
lines changed 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -272,15 +272,19 @@ func (b *EthAPIBackend) SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscri
272
272
}
273
273
274
274
func (b * EthAPIBackend ) SendTx (ctx context.Context , signedTx * types.Transaction ) error {
275
- if locals := b .eth .localTxTracker ; locals != nil {
275
+ locals := b .eth .localTxTracker
276
+ if locals != nil {
276
277
if err := locals .Track (signedTx ); err != nil {
277
278
return err
278
279
}
279
280
}
280
281
// No error will be returned to user if the transaction fails stateful
281
282
// validation (e.g., no available slot), as the locally submitted transactions
282
283
// may be resubmitted later via the local tracker.
283
- b .eth .txPool .Add ([]* types.Transaction {signedTx }, false )
284
+ err := b .eth .txPool .Add ([]* types.Transaction {signedTx }, false )[0 ]
285
+ if err != nil && locals == nil {
286
+ return err
287
+ }
284
288
return nil
285
289
}
286
290
You can’t perform that action at this time.
0 commit comments