reflect review

This commit is contained in:
Kuwon Sebastian Na 2025-02-20 10:26:52 +09:00 committed by Gary Rong
parent c00825fe75
commit d1fb337647

View file

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