aboutsummaryrefslogtreecommitdiffstats
path: root/les
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-02-22 18:48:14 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-02-23 01:12:43 +0800
commit5cf1d354704cd2cbc5c64c96d4aaabeeec7dd161 (patch)
tree10c38cbf3cd5a0e796d6df6c667cc84ce57e2a34 /les
parent45352477933d71ec5055504da74547b0cdf0274b (diff)
downloadgo-tangerine-5cf1d354704cd2cbc5c64c96d4aaabeeec7dd161.tar
go-tangerine-5cf1d354704cd2cbc5c64c96d4aaabeeec7dd161.tar.gz
go-tangerine-5cf1d354704cd2cbc5c64c96d4aaabeeec7dd161.tar.bz2
go-tangerine-5cf1d354704cd2cbc5c64c96d4aaabeeec7dd161.tar.lz
go-tangerine-5cf1d354704cd2cbc5c64c96d4aaabeeec7dd161.tar.xz
go-tangerine-5cf1d354704cd2cbc5c64c96d4aaabeeec7dd161.tar.zst
go-tangerine-5cf1d354704cd2cbc5c64c96d4aaabeeec7dd161.zip
eth, les, light: filter on logs only, derive receipts on demand
Diffstat (limited to 'les')
-rw-r--r--les/api_backend.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/les/api_backend.go b/les/api_backend.go
index 56f617a7d..3fc5c33a4 100644
--- a/les/api_backend.go
+++ b/les/api_backend.go
@@ -87,6 +87,10 @@ func (b *LesApiBackend) GetReceipts(ctx context.Context, blockHash common.Hash)
return light.GetBlockReceipts(ctx, b.eth.odr, blockHash, core.GetBlockNumber(b.eth.chainDb, blockHash))
}
+func (b *LesApiBackend) GetLogs(ctx context.Context, blockHash common.Hash) ([][]*types.Log, error) {
+ return light.GetBlockLogs(ctx, b.eth.odr, blockHash, core.GetBlockNumber(b.eth.chainDb, blockHash))
+}
+
func (b *LesApiBackend) GetTd(blockHash common.Hash) *big.Int {
return b.eth.blockchain.GetTdByHash(blockHash)
}