-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup of trie.Trie type (decoupling from database and resolver) #36
Conversation
@@ -836,23 +764,25 @@ func testStartup() { | |||
func testResolve() { | |||
startTime := time.Now() | |||
//ethDb, err := ethdb.NewBoltDatabase("/home/akhounov/.ethereum/geth/chaindata") | |||
//ethDb, err := ethdb.NewBoltDatabase("/Users/alexeyakhunov/Library/Ethereum/geth/chaindata") | |||
ethDb, err := ethdb.NewBoltDatabase("statedb") | |||
ethDb, err := ethdb.NewBoltDatabase("/Users/alexeyakhunov/Library/Ethereum/geth/chaindata") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to change the path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is my "hacking" toolkit, which I think will need to be transformed into a proper debugging toolkit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I will also add more tests for these things rather
@@ -144,7 +144,7 @@ func TestIntermediateLeaks(t *testing.T) { | |||
// TestCopy tests that copying a statedb object indeed makes the original and | |||
// the copy independent of each other. This test is a regression test against | |||
// https://github.com/ethereum/go-ethereum/pull/15549. | |||
func TestCopy(t *testing.T) { | |||
func testCopy(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we skipping it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, for now because it causes that concurrent map writing bug. I will remove the ability to copy TrieDbState altogether
// Updates a node to the current timestamp | ||
// contract is effectively address of the smart contract | ||
// hex is the prefix of the key | ||
func (tp *TriePruning) touch(contract []byte, hex []byte, parent, n node) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it stub?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should not have included this, it is to be extended
… latest (erigontech#36) Co-authored-by: Roberto Bayardo <>
Change repository name & docker image tag
* feat(zk): l1 verifications download and store * feat(zk): chainconfig util and stateroot storage on vbatch
* feat(zk): l1 verifications download and store * feat(zk): chainconfig util and stateroot storage on vbatch
* calculate effective gas percentage after mordor * removed commented code
No description provided.