Update consensus spec to v1.6.0-alpha.4 and implement data column support#15590
Update consensus spec to v1.6.0-alpha.4 and implement data column support#15590terencechain merged 2 commits intodevelopfrom
Conversation
…port for forkchoice spectests
d12eda8 to
8bbb5cd
Compare
| columnFiles = append(columnFiles, step.DataColumns...) | ||
| } | ||
| if len(columnFiles) == 0 { | ||
| return |
There was a problem hiding this comment.
Are there cases where there are not files? Could this be a false positive if the test runs on an empty directory but there were files expected? Perhaps this should fail here
There was a problem hiding this comment.
Ya good point, will change it to fail
Co-Authored-By: Preston Van Loon <pvanloon@offchainlabs.com>
ed913c5 to
764d8d4
Compare
| } | ||
| } | ||
|
|
||
| if err := dv.NotFromFutureSlot(); err != nil { |
There was a problem hiding this comment.
i think maybe i'm not familiar with the design, but maybe on the verifier we can have a function that returns the verification function based on the verification value instead of manually adding them below?
There was a problem hiding this comment.
i think that's a good idea, ill do it in another pr 🫡
| if !*step.Valid { | ||
| return func(t *testing.T, err error) { | ||
| require.ErrorIs(t, err, expect) | ||
| if expect.Error() == "data columns failed verification" { |
There was a problem hiding this comment.
this seems potentially fragile, we should have a named variables if it's suppose to be be special I think
There was a problem hiding this comment.
you added one on line 322 i guess
…port (OffchainLabs#15590) * Update consensus spec to v1.6.0-alpha.4 and implement data column support for forkchoice spectests * Apply suggestion from @prestonvanloon Co-Authored-By: Preston Van Loon <pvanloon@offchainlabs.com> --------- Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
…port (OffchainLabs#15590) * Update consensus spec to v1.6.0-alpha.4 and implement data column support for forkchoice spectests * Apply suggestion from @prestonvanloon Co-Authored-By: Preston Van Loon <pvanloon@offchainlabs.com> --------- Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
…port (OffchainLabs#15590) * Update consensus spec to v1.6.0-alpha.4 and implement data column support for forkchoice spectests * Apply suggestion from @prestonvanloon Co-Authored-By: Preston Van Loon <pvanloon@offchainlabs.com> --------- Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
v1.6.0-alpha.1tov1.6.0-alpha.4SpectestDataColumnSidecarRequirementsfor forkchoice spectest data column verificationrunDataColumnStep()function to handle data column sidecar processing