@ -808,7 +808,7 @@ func (db *DB) Commit(deleteEmptyObjects bool) (root common.Hash, err error) {
}
}
var (
var (
e rrAddressNotPresent = errors . New ( "address not present in state" )
E rrAddressNotPresent = errors . New ( "address not present in state" )
)
)
// ValidatorWrapper retrieves the existing validator in the cache, if sendOriginal
// ValidatorWrapper retrieves the existing validator in the cache, if sendOriginal
@ -834,7 +834,7 @@ func (db *DB) ValidatorWrapper(
by := db . GetCode ( addr )
by := db . GetCode ( addr )
if len ( by ) == 0 {
if len ( by ) == 0 {
return nil , e rrAddressNotPresent
return nil , E rrAddressNotPresent
}
}
val := stk . ValidatorWrapper { }
val := stk . ValidatorWrapper { }
if err := rlp . DecodeBytes ( by , & val ) ; err != nil {
if err := rlp . DecodeBytes ( by , & val ) ; err != nil {
@ -897,7 +897,7 @@ func (db *DB) UpdateValidatorWrapperWithRevert(
// a copy of the existing store can be used for revert
// a copy of the existing store can be used for revert
// since we are replacing the existing with the new anyway
// since we are replacing the existing with the new anyway
prev , err := db . ValidatorWrapper ( addr , true , false )
prev , err := db . ValidatorWrapper ( addr , true , false )
if err != nil && err != e rrAddressNotPresent {
if err != nil && err != E rrAddressNotPresent {
return err
return err
}
}
if err := db . UpdateValidatorWrapper ( addr , val ) ; err != nil {
if err := db . UpdateValidatorWrapper ( addr , val ) ; err != nil {