forked from cerc-io/plugeth
Added addBalance to wrapped state db
This commit is contained in:
parent
3d2f81a30c
commit
052b705632
@ -199,7 +199,10 @@ func (w *WrappedStateDB) SlotInAccessList(addr core.Address, slot core.Hash) (ad
|
|||||||
func (w *WrappedStateDB) IntermediateRoot(deleteEmptyObjects bool) core.Hash {
|
func (w *WrappedStateDB) IntermediateRoot(deleteEmptyObjects bool) core.Hash {
|
||||||
return core.Hash(w.s.IntermediateRoot(deleteEmptyObjects))
|
return core.Hash(w.s.IntermediateRoot(deleteEmptyObjects))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (w *WrappedStateDB) AddBalance(addr core.Address, amount *big.Int) {
|
||||||
|
w.s.AddBalance(common.Address(addr), amount)
|
||||||
|
}
|
||||||
|
|
||||||
type Node struct {
|
type Node struct {
|
||||||
n *node.Node
|
n *node.Node
|
||||||
|
Loading…
Reference in New Issue
Block a user