Skip to content

Commit

Permalink
Merge branch 'rpcxeth' into rpcfrontier
Browse files Browse the repository at this point in the history
Conflicts:
	rpc/api.go
  • Loading branch information
tgerring committed Mar 20, 2015
2 parents 41c493a + 0cde7a4 commit 28e1971
Show file tree
Hide file tree
Showing 7 changed files with 555 additions and 668 deletions.
2 changes: 1 addition & 1 deletion core/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func NewFilter(eth Backend) *Filter {

// SetOptions copies the filter options to the filter it self. The reason for this "silly" copy
// is simply because named arguments in this case is extremely nice and readable.
func (self *Filter) SetOptions(options FilterOptions) {
func (self *Filter) SetOptions(options *FilterOptions) {
self.earliest = options.Earliest
self.latest = options.Latest
self.skip = options.Skip
Expand Down
4 changes: 3 additions & 1 deletion event/filter/eth_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ func (self *FilterManager) InstallFilter(filter *core.Filter) (id int) {
func (self *FilterManager) UninstallFilter(id int) {
self.filterMu.Lock()
defer self.filterMu.Unlock()
delete(self.filters, id)
if _, ok := self.filters[id]; ok {
delete(self.filters, id)
}
}

// GetFilter retrieves a filter installed using InstallFilter.
Expand Down
Loading

0 comments on commit 28e1971

Please sign in to comment.