Skip to content
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

Merged
merged 8 commits into from
Jun 8, 2019

Conversation

AlexeyAkhunov
Copy link
Contributor

No description provided.

@b00ris b00ris self-requested a review June 8, 2019 10:11
@@ -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")
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor Author

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we skipping it?

Copy link
Contributor Author

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it stub?

Copy link
Contributor Author

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

@AlexeyAkhunov AlexeyAkhunov merged commit 6a8f926 into master Jun 8, 2019
racytech pushed a commit to racytech/erigon that referenced this pull request Apr 1, 2023
pcw109550 pushed a commit to testinprod-io/erigon that referenced this pull request May 19, 2023
Change repository name & docker image tag
battlmonstr pushed a commit that referenced this pull request Sep 14, 2023
revitteth referenced this pull request in 0xPolygonHermez/cdk-erigon Dec 12, 2023
* feat(zk): l1 verifications download and store

* feat(zk): chainconfig util and stateroot storage on vbatch
revitteth referenced this pull request in 0xPolygonHermez/cdk-erigon Dec 14, 2023
* feat(zk): l1 verifications download and store

* feat(zk): chainconfig util and stateroot storage on vbatch
cffls pushed a commit to cffls/erigon that referenced this pull request Jan 12, 2024
* calculate effective gas percentage after mordor

* removed commented code
taratorio pushed a commit that referenced this pull request Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants