-
Notifications
You must be signed in to change notification settings - Fork 129
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
chore (pkg/scale) integrate scale into dot/network and dot/digest #1685
Conversation
Codecov Report
@@ Coverage Diff @@
## development #1685 +/- ##
===============================================
- Coverage 58.92% 58.89% -0.03%
===============================================
Files 182 182
Lines 18615 18589 -26
===============================================
- Hits 10968 10948 -20
Misses 5737 5737
+ Partials 1910 1904 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Still trying to get docker stress test to pass, but besides that should be ready for review |
@@ -40,22 +40,17 @@ func (l *LightRequest) SubProtocol() string { | |||
} | |||
|
|||
// Encode encodes a LightRequest message using SCALE and appends the type byte to the start | |||
// TODO Remove encode/decode receiver functions |
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.
woudl this require updating the Message
interface?
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.
Yes I believe so, I don't have to change it if I shouldn't. Was just thinking less receivers the better
dot/network/message_test.go
Outdated
// ParentHash: Hash: 0x4545454545454545454545454545454545454545454545454545454545454545 | ||
// Number: *big.Int // block number: 1 | ||
// StateRoot: Hash: 0xb3266de137d20a5d0ff3a6401eb57127525fd9b2693701f0bf5a8a853fa3ebe0 | ||
// ExtrinsicsRoot: Hash: 0x03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314 | ||
// Digest: []byte | ||
|
||
// mtparenthash bnstateroot extrinsicsroot di | ||
expected, err := common.HexToBytes("0x454545454545454545454545454545454545454545454545454545454545454504b3266de137d20a5d0ff3a6401eb57127525fd9b2693701f0bf5a8a853fa3ebe003170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c1113140000") | ||
expected, err := common.HexToBytes("0x01454545454545454545454545454545454545454545454545454545454545454504b3266de137d20a5d0ff3a6401eb57127525fd9b2693701f0bf5a8a853fa3ebe003170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c1113140000") |
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.
why is this changed? it should be the same as before (in fact it must be, or interop will break)
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.
I believe it is because it was encoded as an optional so had a leading byte appended. Will look into working around this
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.
the encoding of the BlockAnnounceMessage
or any message type shouldn't change, can you update it to be the same as before? likely why the stress tests are failing also
…ssamer into jimmy/integrateScaleNetwork
Changes
Tests
Issues