Small changes.
This commit is contained in:
parent
ba8e32ce97
commit
20d6b1dc64
@ -1,13 +1,12 @@
|
||||
[database]
|
||||
name = "vulcanize_testing"
|
||||
name = "vulcanize_public"
|
||||
hostname = "localhost"
|
||||
port = 8077
|
||||
user = "vdbm"
|
||||
password = "password"
|
||||
port = 5432
|
||||
user = "postgres"
|
||||
|
||||
[leveldb]
|
||||
path = "/Users/arijitdas/Library/Ethereum/rinkeby/geth/chaindata"
|
||||
ancient = "/Users/arijitdas/Library/Ethereum/rinkeby/geth/chaindata/ancient"
|
||||
path = "/Users/user/Library/Ethereum/geth/chaindata"
|
||||
ancient = "/Users/user/Library/Ethereum/geth/chaindata/ancient"
|
||||
|
||||
[snapshot]
|
||||
blockHeight = 58176
|
@ -98,12 +98,7 @@ func (s *Service) CreateLatestSnapshot() error {
|
||||
}
|
||||
|
||||
trieDB := s.stateDB.TrieDB()
|
||||
err = s.createSnapshot(t.NodeIterator([]byte{}), trieDB, headerID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return s.createSnapshot(t.NodeIterator([]byte{}), trieDB, headerID)
|
||||
}
|
||||
|
||||
func (s *Service) CreateSnapshot(height uint64) error {
|
||||
@ -127,12 +122,7 @@ func (s *Service) CreateSnapshot(height uint64) error {
|
||||
}
|
||||
|
||||
trieDB := s.stateDB.TrieDB()
|
||||
err = s.createSnapshot(t.NodeIterator([]byte{}), trieDB, headerID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return s.createSnapshot(t.NodeIterator([]byte{}), trieDB, headerID)
|
||||
}
|
||||
|
||||
func (s *Service) createSnapshot(it trie.NodeIterator, trieDB *trie.Database, headerID int64) error {
|
||||
|
Loading…
Reference in New Issue
Block a user