Skip to content

feat:add lc bootstrap and update range - #72

Merged
GrapeBaBa merged 2 commits into
optimism-java:portalfrom
GrapeBaBa:lc_type1
Apr 7, 2024
Merged

feat:add lc bootstrap and update range#72
GrapeBaBa merged 2 commits into
optimism-java:portalfrom
GrapeBaBa:lc_type1

Conversation

@GrapeBaBa

@GrapeBaBa GrapeBaBa commented Apr 6, 2024

Copy link
Copy Markdown
Member

fix #73

Signed-off-by: Chen Kai <281165273grape@gmail.com>
Comment thread portalnetwork/beacon/types.go Outdated

func (flb *ForkedLightClientBootstrap) Deserialize(dr *codec.DecodingReader) error {
_, err := dr.Read(flb.ForkDigest[:])
func (flcb *ForkedLightClientBootstrap) Deserialize(dr *codec.DecodingReader) error {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

use spec *common.Spec as first arg, the same as Serialize, ByteLength etc. use arg spec replace the configs.Mainnet

Comment thread portalnetwork/beacon/types.go Outdated

func (flb *ForkedLightClientBootstrap) FixedLength() uint64 {
func (flcb *ForkedLightClientBootstrap) Serialize(w *codec.EncodingWriter) error {
if err := w.Write(flcb.ForkDigest[:]); err != nil {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

if the first arg is spec, maybe you can try this
return w.Container(&flcb.ForkDigest, spec.Wrap(&flcb.Bootstrap))

Signed-off-by: Chen Kai <281165273grape@gmail.com>
@GrapeBaBa
GrapeBaBa merged commit bf6dd12 into optimism-java:portal Apr 7, 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.

Add lightclientupdaterange

2 participants