eth/filters, ethereum: EIP-234 add blockHash param for eth_getLogs

This commit is contained in:
Domino Valdano
2018-05-12 02:20:46 -07:00
committed by Péter Szilágyi
parent e8824f6e74
commit 96339daf40
3 changed files with 71 additions and 13 deletions

View File

@ -131,6 +131,7 @@ type ContractCaller interface {
// FilterQuery contains options for contract log filtering.
type FilterQuery struct {
BlockHash *common.Hash // used by eth_getLogs, return logs only from block with this hash
FromBlock *big.Int // beginning of the queried range, nil means genesis block
ToBlock *big.Int // end of the range, nil means latest block
Addresses []common.Address // restricts matches to events created by specific contracts