xeth, core, event/filter, rpc: new block and transaction filters

This commit is contained in:
obscuren
2015-05-06 17:51:32 +02:00
parent 97c37356fd
commit 7e160a677d
5 changed files with 202 additions and 87 deletions

View File

@ -22,9 +22,9 @@ type Filter struct {
max int
topics [][]common.Hash
BlockCallback func(*types.Block, state.Logs)
PendingCallback func(*types.Transaction)
LogsCallback func(state.Logs)
BlockCallback func(*types.Block, state.Logs)
TransactionCallback func(*types.Transaction)
LogsCallback func(state.Logs)
}
// Create a new filter which uses a bloom filter on blocks to figure out whether a particular block