Dev commit. Squash in rebase.

This commit is contained in:
Gustav Simonsson 2015-09-10 15:24:36 +02:00
parent 90f1fe0ed2
commit a9b09291d6
3 changed files with 0 additions and 20 deletions

View file

@ -87,10 +87,6 @@ type StateObject struct {
dirty bool dirty bool
} }
func (self *StateObject) Reset() {
self.storage = make(Storage)
}
func NewStateObject(address common.Address, db common.Database) *StateObject { func NewStateObject(address common.Address, db common.Database) *StateObject {
object := &StateObject{db: db, address: address, balance: new(big.Int), gasPool: new(big.Int), dirty: true} object := &StateObject{db: db, address: address, balance: new(big.Int), gasPool: new(big.Int), dirty: true}
object.trie = trie.NewSecure((common.Hash{}).Bytes(), db) object.trie = trie.NewSecure((common.Hash{}).Bytes(), db)

View file

@ -315,18 +315,6 @@ func (s *StateDB) Trie() *trie.SecureTrie {
return s.trie return s.trie
} }
// Resets the trie and all siblings
func (s *StateDB) Reset() {
s.trie.Reset()
// Reset all nested states
for _, stateObject := range s.stateObjects {
stateObject.Reset()
}
s.Empty()
}
// Syncs the trie and all siblings // Syncs the trie and all siblings
func (s *StateDB) Sync() { func (s *StateDB) Sync() {
// Sync all nested states // Sync all nested states

View file

@ -33,10 +33,6 @@ import (
var ErrInvalidSig = errors.New("invalid v, r, s values") var ErrInvalidSig = errors.New("invalid v, r, s values")
func IsContractAddr(addr []byte) bool {
return len(addr) == 0
}
type Transaction struct { type Transaction struct {
data txdata data txdata
// caches // caches