eth/filters: added notifications for out of bound log events

Out of Bound log events are events that were removed due to a fork. When
logs are received the filtering mechanism should check for the `removed`
field on the json structure.
This commit is contained in:
Jeffrey Wilcke
2016-01-05 14:55:28 +01:00
parent a50bccc642
commit 68dda34905
4 changed files with 132 additions and 26 deletions

View File

@ -39,7 +39,7 @@ type Filter struct {
BlockCallback func(*types.Block, vm.Logs)
TransactionCallback func(*types.Transaction)
LogsCallback func(vm.Logs)
LogCallback func(*vm.Log, bool)
}
// Create a new filter which uses a bloom filter on blocks to figure out whether a particular block