mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 06:23:47 +00:00
reflect review
This commit is contained in:
parent
c00825fe75
commit
d1fb337647
1 changed files with 6 additions and 6 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue