FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat:add lc bootstrap and update range by GrapeBaBa · Pull Request #72 · optimism-java/shisui · GitHub

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 commented Apr 6, 2024
edited
Loading

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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 merged commit bf6dd12 into optimism-java:portal Apr 7, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL