core,state: finish implementing Eip 1283

This commit is contained in:
Martin Holst Swende
2018-08-12 14:47:03 +02:00
committed by Péter Szilágyi
parent 58374e28d9
commit caa2c23a38
6 changed files with 41 additions and 16 deletions

View File

@ -255,6 +255,14 @@ func (self *StateDB) GetState(addr common.Address, bhash common.Hash) common.Has
return common.Hash{}
}
func (self *StateDB) GetStateOriginal(addr common.Address, bhash common.Hash) common.Hash {
stateObject := self.getStateObject(addr)
if stateObject != nil {
return stateObject.GetOriginalStateValue(self.db, bhash)
}
return common.Hash{}
}
// Database retrieves the low level database supporting the lower level trie ops.
func (self *StateDB) Database() Database {
return self.db