This commit is contained in:
Kuwon Sebastian Na 2025-02-19 09:42:33 +09:00 committed by GitHub
commit 0bcfa883d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 3 deletions

View File

@ -272,10 +272,13 @@ func (b *EthAPIBackend) SubscribeLogsEvent(ch chan<- []*types.Log) event.Subscri
}
func (b *EthAPIBackend) SendTx(ctx context.Context, signedTx *types.Transaction) error {
if locals := b.eth.localTxTracker; locals != nil {
locals.Track(signedTx)
err := b.eth.txPool.Add([]*types.Transaction{signedTx}, false)[0]
if err == nil {
if locals := b.eth.localTxTracker; locals != nil {
locals.Track(signedTx)
}
}
return b.eth.txPool.Add([]*types.Transaction{signedTx}, false)[0]
return err
}
func (b *EthAPIBackend) GetPoolTransactions() (types.Transactions, error) {