Small changes.
This commit is contained in:
parent
ba8e32ce97
commit
20d6b1dc64
@ -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
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user