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

Implemented state #73

Merged
merged 14 commits into from
Nov 30, 2021
Merged

Implemented state #73

merged 14 commits into from
Nov 30, 2021

Conversation

Mikelle
Copy link
Contributor

@Mikelle Mikelle commented Nov 29, 2021

Closes #16
Closes #15

# Conflicts:
#	state/batch.go
#	state/block.go
#	state/state.go
# Conflicts:
#	aggregator/aggregator.go
#	mocks/state.go
#	sequencer/sequencer.go
#	state/state.go
@Mikelle Mikelle self-assigned this Nov 29, 2021
state/state.go Outdated Show resolved Hide resolved
state/state.go Outdated Show resolved Hide resolved
db/migrations/0001.sql Outdated Show resolved Hide resolved
Comment on lines +48 to +53
// init db
var err error
err = db.RunMigrations(cfg)
if err != nil {
panic(err)
}
Copy link
Member

Choose a reason for hiding this comment

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

I think we should move this inside dbutils.StartPostgreSQL

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 would move it in another PR. If I move it in my PR, I will have to update every place, that is usingStartPostgreSQL function

state/transaction.go Outdated Show resolved Hide resolved
@Mikelle Mikelle merged commit 4dbb714 into main Nov 30, 2021
@Mikelle Mikelle deleted the state-impl branch November 30, 2021 15:06
zfy0701 pushed a commit to sentioxyz/zkevm-node that referenced this pull request Mar 5, 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.

Implement database access methods Define the State Backend data model
3 participants