mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Add Backend API
This commit is contained in:
parent
339aa42126
commit
4cf04bdb62
2 changed files with 8 additions and 0 deletions
|
|
@ -227,3 +227,7 @@ func (b *EthAPIBackend) ServiceFilter(ctx context.Context, session *bloombits.Ma
|
|||
go session.Multiplex(bloomRetrievalBatch, bloomRetrievalWait, b.eth.bloomRequests)
|
||||
}
|
||||
}
|
||||
|
||||
func (b *EthAPIBackend) TxStatusByHash(ctx context.Context, hash common.Hash) (core.TxStatus, error) {
|
||||
return core.TxStatusUnknown, errors.New("Not Support")
|
||||
}
|
||||
|
|
|
|||
|
|
@ -197,3 +197,7 @@ func (b *LesApiBackend) ServiceFilter(ctx context.Context, session *bloombits.Ma
|
|||
go session.Multiplex(bloomRetrievalBatch, bloomRetrievalWait, b.eth.bloomRequests)
|
||||
}
|
||||
}
|
||||
|
||||
func (b *LesApiBackend) TxStatusByHash(ctx context.Context, hash common.Hash) (core.TxStatus, error) {
|
||||
return light.GetTxStatus(ctx, b.eth.odr, hash)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue