Small changes.

This commit is contained in:
Arijit Das 2021-12-13 20:42:02 +05:30
parent ba8e32ce97
commit 20d6b1dc64
2 changed files with 7 additions and 18 deletions

View File

@ -1,13 +1,12 @@
[database] [database]
name = "vulcanize_testing" name = "vulcanize_public"
hostname = "localhost" hostname = "localhost"
port = 8077 port = 5432
user = "vdbm" user = "postgres"
password = "password"
[leveldb] [leveldb]
path = "/Users/arijitdas/Library/Ethereum/rinkeby/geth/chaindata" path = "/Users/user/Library/Ethereum/geth/chaindata"
ancient = "/Users/arijitdas/Library/Ethereum/rinkeby/geth/chaindata/ancient" ancient = "/Users/user/Library/Ethereum/geth/chaindata/ancient"
[snapshot] [snapshot]
blockHeight = 58176 blockHeight = 58176

View File

@ -98,12 +98,7 @@ func (s *Service) CreateLatestSnapshot() error {
} }
trieDB := s.stateDB.TrieDB() trieDB := s.stateDB.TrieDB()
err = s.createSnapshot(t.NodeIterator([]byte{}), trieDB, headerID) return s.createSnapshot(t.NodeIterator([]byte{}), trieDB, headerID)
if err != nil {
return err
}
return nil
} }
func (s *Service) CreateSnapshot(height uint64) error { func (s *Service) CreateSnapshot(height uint64) error {
@ -127,12 +122,7 @@ func (s *Service) CreateSnapshot(height uint64) error {
} }
trieDB := s.stateDB.TrieDB() trieDB := s.stateDB.TrieDB()
err = s.createSnapshot(t.NodeIterator([]byte{}), trieDB, headerID) return s.createSnapshot(t.NodeIterator([]byte{}), trieDB, headerID)
if err != nil {
return err
}
return nil
} }
func (s *Service) createSnapshot(it trie.NodeIterator, trieDB *trie.Database, headerID int64) error { func (s *Service) createSnapshot(it trie.NodeIterator, trieDB *trie.Database, headerID int64) error {