Use groupcache based ethdb/validator. (#12)

* Use groupcache based ethdb/validator.

* Use latest ipfs-ethdb version
This commit is contained in:
Ashwin Phatak
2021-08-25 13:50:31 +05:30
committed by GitHub
parent 12ee1f4947
commit 91cd784baa
4 changed files with 38 additions and 10 deletions
+5 -2
View File
@@ -24,7 +24,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/vulcanize/eth-ipfs-state-validator/pkg"
validator "github.com/vulcanize/eth-ipfs-state-validator/pkg"
)
// validateTrieCmd represents the validateTrie command
@@ -35,7 +35,7 @@ var validateTrieCmd = &cobra.Command{
If an ipfs-path is provided it will use a blockservice, otherwise it expects Postgres db configuration in a linked config file.
It can operate at three levels:
It can operate at three levels:
"full" validates completeness of the entire state corresponding to a provided state root, including both state and storage tries
@@ -99,6 +99,9 @@ func validateTrie() {
}
logWithCommand.Infof("Storage trie for contract %s and root %s is complete", addr.String(), storageRoot.String())
}
stats := v.GetCacheStats()
logWithCommand.Debugf("groupcache stats %+v", stats)
}
func newValidator() (*validator.Validator, error) {