forked from cerc-io/plugeth
Updates to support blockupdates plugin
This makes several updates to support the blockupdates plugin. I had to update several hooks that were using the wrong types, and provide a way to get event.Feed objects into plugins without importing event.Feed (which I did by having the plugin loader make them available).
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
func PluginStateUpdate(pl *plugins.PluginLoader, blockRoot, parentRoot common.Hash, destructs map[common.Hash]struct{}, accounts map[common.Hash][]byte, storage map[common.Hash]map[common.Hash][]byte) {
|
||||
fnList := pl.Lookup("StateUpdate", func(item interface{}) bool {
|
||||
_, ok := item.(func(common.Hash, common.Hash, map[common.Hash]struct{}, map[common.Hash][]byte, map[common.Hash]map[common.Hash][]byte))
|
||||
_, ok := item.(func(core.Hash, core.Hash, map[core.Hash]struct{}, map[core.Hash][]byte, map[core.Hash]map[core.Hash][]byte))
|
||||
return ok
|
||||
})
|
||||
coreDestructs := make(map[core.Hash]struct{})
|
||||
|
||||
Reference in New Issue
Block a user