| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Signed-off-by: Chen Kai <281165273grape@gmail.com>
|
|
||
| func (flb *ForkedLightClientBootstrap) Deserialize(dr *codec.DecodingReader) error { | ||
| _, err := dr.Read(flb.ForkDigest[:]) | ||
| func (flcb *ForkedLightClientBootstrap) Deserialize(dr *codec.DecodingReader) error { |
There was a problem hiding this comment.
use spec *common.Spec as first arg, the same as Serialize, ByteLength etc. use arg spec replace the configs.Mainnet
Sorry, something went wrong.
|
|
||
| func (flb *ForkedLightClientBootstrap) FixedLength() uint64 { | ||
| func (flcb *ForkedLightClientBootstrap) Serialize(w *codec.EncodingWriter) error { | ||
| if err := w.Write(flcb.ForkDigest[:]); err != nil { |
There was a problem hiding this comment.
if the first arg is spec, maybe you can try this
return w.Container(&flcb.ForkDigest, spec.Wrap(&flcb.Bootstrap))
Sorry, something went wrong.
Signed-off-by: Chen Kai <281165273grape@gmail.com>
| Back | FazBrowse Home | New Git URL |
fix #73