Dev commit. Squash in rebase.

This commit is contained in:
Gustav Simonsson 2015-09-10 15:33:50 +02:00
parent a9b09291d6
commit c4ddebe78a

View file

@ -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
// //