mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
Dev commit. Squash in rebase.
This commit is contained in:
parent
a9b09291d6
commit
c4ddebe78a
1 changed files with 0 additions and 12 deletions
|
|
@ -180,14 +180,6 @@ func (self *StateObject) Update() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *StateObject) GetInstr(pc *big.Int) *common.Value {
|
|
||||||
if int64(len(c.code)-1) < pc.Int64() {
|
|
||||||
return common.NewValue(0)
|
|
||||||
}
|
|
||||||
|
|
||||||
return common.NewValueFromBytes([]byte{c.code[pc.Int64()]})
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *StateObject) AddBalance(amount *big.Int) {
|
func (c *StateObject) AddBalance(amount *big.Int) {
|
||||||
c.SetBalance(new(big.Int).Add(c.balance, amount))
|
c.SetBalance(new(big.Int).Add(c.balance, amount))
|
||||||
|
|
||||||
|
|
@ -264,10 +256,6 @@ func (self *StateObject) Copy() *StateObject {
|
||||||
return stateObject
|
return stateObject
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *StateObject) Set(stateObject *StateObject) {
|
|
||||||
*self = *stateObject
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Attribute accessors
|
// Attribute accessors
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue