-
Notifications
You must be signed in to change notification settings - Fork 78
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
consensus: added partial message decoding #859
Conversation
e5568f3
to
bb991b2
Compare
ww := io.NewBufBinWriter() | ||
p.message.EncodeBinary(ww.BinWriter) | ||
w.WriteVarBytes(ww.Bytes()) | ||
w.WriteVarBytes(p.data) |
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.
Maybe something like
if p.message != nil {
ww := io.NewBufBinWriter()
p.message.EncodeBinary(ww.BinWriter)
p.data = ww.Bytes()
}
w.WriteVarBytes(p.data)
And then you don't need to update p.data
in every Set
method.
08a0857
to
8d31e26
Compare
8d31e26
to
3d4a1d4
Compare
Codecov Report
@@ Coverage Diff @@
## master #859 +/- ##
=======================================
Coverage 63.43% 63.43%
=======================================
Files 183 183
Lines 15733 15744 +11
=======================================
+ Hits 9980 9987 +7
- Misses 5272 5275 +3
- Partials 481 482 +1
Continue to review full report at Codecov.
|
fd6eb87
to
b83af55
Compare
We also need to fix |
aa1f803
to
e0d13b6
Compare
Did you mean
? |
Yep, |
e0d13b6
to
9dd5ab5
Compare
closes #849