Commit 477a6d42 authored by obscuren's avatar obscuren

Added a query interface for world state

parent 0972bded
......@@ -16,6 +16,10 @@ import (
var chainlogger = logger.NewLogger("CHAIN")
type StateQuery interface {
GetAccount(addr []byte) *state.StateObject
}
/*
func AddTestNetFunds(block *types.Block) {
for _, addr := range []string{
......@@ -376,3 +380,8 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error {
return nil
}
// Satisfy state query interface
func (self *ChainManager) GetAccount(addr []byte) *state.StateObject {
return self.State().GetAccount(addr)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment