Add Backend API

This commit is contained in:
CocoaHuke 2018-06-21 16:31:07 -07:00
parent 339aa42126
commit 4cf04bdb62
2 changed files with 8 additions and 0 deletions

View file

@ -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")
}

View file

@ -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)
}