Separated block db from state db. Partial fix for #416
This commit is contained in:
@ -26,7 +26,7 @@ func (self *State) SafeGet(addr string) *Object {
|
||||
func (self *State) safeGet(addr string) *state.StateObject {
|
||||
object := self.state.GetStateObject(fromHex(addr))
|
||||
if object == nil {
|
||||
object = state.NewStateObject(fromHex(addr), self.xeth.eth.Db())
|
||||
object = state.NewStateObject(fromHex(addr), self.xeth.eth.StateDb())
|
||||
}
|
||||
|
||||
return object
|
||||
|
@ -32,7 +32,8 @@ type Backend interface {
|
||||
IsListening() bool
|
||||
Peers() []*p2p.Peer
|
||||
KeyManager() *crypto.KeyManager
|
||||
Db() ethutil.Database
|
||||
BlockDb() ethutil.Database
|
||||
StateDb() ethutil.Database
|
||||
EventMux() *event.TypeMux
|
||||
Whisper() *whisper.Whisper
|
||||
Miner() *miner.Miner
|
||||
|
Reference in New Issue
Block a user