mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-24 20:47:16 +00:00
mist: adapt to API changes in ethereum/eth-go#57
This commit is contained in:
parent
83a4b8b49b
commit
c1f8a640d3
@ -193,21 +193,21 @@ func (self *UiLib) StartDebugger() {
|
||||
dbWindow.Show()
|
||||
}
|
||||
|
||||
func (self *UiLib) NewFilter(object map[string]interface{}) int {
|
||||
filter, id := self.eth.InstallFilter(object)
|
||||
func (self *UiLib) NewFilter(object map[string]interface{}) (id int) {
|
||||
filter := ethchain.NewFilterFromMap(object, self.eth)
|
||||
filter.MessageCallback = func(messages ethstate.Messages) {
|
||||
self.win.Root().Call("invokeFilterCallback", ethpipe.ToJSMessages(messages), id)
|
||||
}
|
||||
|
||||
id = self.eth.InstallFilter(filter)
|
||||
return id
|
||||
}
|
||||
|
||||
func (self *UiLib) NewFilterString(typ string) int {
|
||||
filter, id := self.eth.InstallFilter(nil)
|
||||
func (self *UiLib) NewFilterString(typ string) (id int) {
|
||||
filter := ethchain.NewFilter(self.eth)
|
||||
filter.BlockCallback = func(block *ethchain.Block) {
|
||||
self.win.Root().Call("invokeFilterCallback", "{}", id)
|
||||
}
|
||||
|
||||
id = self.eth.InstallFilter(filter)
|
||||
return id
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user