-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix: cdk603 error calculating previousLocalExitRoot #199
fix: cdk603 error calculating previousLocalExitRoot #199
Conversation
96c7e2d
to
1d4224c
Compare
Quality Gate passedIssues Measures |
@@ -6,6 +6,7 @@ CREATE TABLE certificate_info ( | |||
height INTEGER NOT NULL, | |||
certificate_id VARCHAR NOT NULL PRIMARY KEY, | |||
status INTEGER NOT NULL, | |||
previous_local_exit_root VARCHAR , |
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.
previous_local_exit_root VARCHAR , | |
previous_local_exit_root VARCHAR, |
|
||
return fmt.Sprintf("Height: %d, CertificateID: %s, NewLocalExitRoot: %s. Status: %s. Errors: [%s]", | ||
c.Height, c.CertificateID.String(), c.NewLocalExitRoot.String(), c.Status.String(), errors) | ||
previousLocalExitRoot := "nil" |
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.
use the nilStr
constant?
@@ -23,6 +23,8 @@ const ( | |||
Candidate | |||
InError | |||
Settled | |||
|
|||
nilStr = "nil" |
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.
Why is this needed, agglayer API?
@@ -283,7 +285,7 @@ func TestAggSenderStart(t *testing.T) { | |||
ctx, | |||
log.WithFields("test", "unittest"), | |||
Config{ | |||
StoragePath: "file::memory:?cache=shared", | |||
StoragePath: "file:TestAggSenderStart?mode=memory&cache=shared", |
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 100% sure this is using memory or a file with this name?
Support `agglayer:0.2.0-rc.15` the responses of ` CertificateHeader` add a new field: `PreviousLocalExitRoot` - Fixes error calculating previousLocalExitRoot on new certificate if a certificate is inError NOTE: **Database incompatibility with previous version!, require to delete it!**
Description
Since
agglayer:0.2.0-rc.15
the responses ofCertificateHeader
add a new field:PreviousLocalExitRoot
NOTE: Database incompatibility with previous version!, require to delete it!