Skip to content

Grandpa warp sync#294

Merged
tomaka merged 15 commits intomainfrom
ashley-grandpa-warp-sync
Jan 6, 2021
Merged

Grandpa warp sync#294
tomaka merged 15 commits intomainfrom
ashley-grandpa-warp-sync

Conversation

@expenses
Copy link
Contributor

Messy first draft of grandpa warp sync networking and verification code.

@expenses
Copy link
Contributor Author

expenses commented Dec 10, 2020

At the moment the code seems to switch between successfully verifying a justification and not:

0: Ok(())
1: Err(NotAuthority([57, 25, 19, 43, 133, 30, 240, 253, 45, 174, 66, 167, 231, 52, 254, 84, 122, 245, 166, 184, 9, 0, 97, 0, 244, 137, 68, 215, 250, 232, 232, 239]))
2: Ok(())
3: Err(NotAuthority([86, 51, 183, 11, 128, 166, 200, 187, 22, 39, 15, 130, 204, 166, 213, 107, 39, 237, 123, 118, 200, 253, 90, 242, 152, 106, 37, 164, 120, 140, 228, 64]))
4: Ok(())
5: Err(NotAuthority([86, 51, 183, 11, 128, 166, 200, 187, 22, 39, 15, 130, 204, 166, 213, 107, 39, 237, 123, 118, 200, 253, 90, 242, 152, 106, 37, 164, 120, 140, 228, 64]))
6: Err(NotAuthority([155, 236, 173, 3, 230, 220, 172, 3, 206, 224, 126, 222, 188, 165, 71, 83, 20, 134, 20, 146, 205, 252, 150, 162, 20, 74, 103, 187, 233, 105, 147, 50]))
7: Ok(())
8: Ok(())
9: Err(NotAuthority([155, 236, 173, 3, 230, 220, 172, 3, 206, 224, 126, 222, 188, 165, 71, 83, 20, 134, 20, 146, 205, 252, 150, 162, 20, 74, 103, 187, 233, 105, 147, 50]))
10: Ok(())
11: Ok(())
12: Err(NotAuthority([57, 25, 19, 43, 133, 30, 240, 253, 45, 174, 66, 167, 231, 52, 254, 84, 122, 245, 166, 184, 9, 0, 97, 0, 244, 137, 68, 215, 250, 232, 232, 239]))
13: Err(NotAuthority([121, 50, 207, 244, 49, 231, 72, 137, 47, 164, 142, 16, 198, 60, 23, 211, 15, 128, 202, 66, 228, 222, 57, 33, 230, 65, 36, 156, 215, 250, 60, 47]))
14: Err(NotAuthority([86, 51, 183, 11, 128, 166, 200, 187, 22, 39, 15, 130, 204, 166, 213, 107, 39, 237, 123, 118, 200, 253, 90, 242, 152, 106, 37, 164, 120, 140, 228, 64]))
15: Ok(())
16: Err(NotAuthority([121, 50, 207, 244, 49, 231, 72, 137, 47, 164, 142, 16, 198, 60, 23, 211, 15, 128, 202, 66, 228, 222, 57, 33, 230, 65, 36, 156, 215, 250, 60, 47]))
17: Err(NotAuthority([86, 51, 183, 11, 128, 166, 200, 187, 22, 39, 15, 130, 204, 166, 213, 107, 39, 237, 123, 118, 200, 253, 90, 242, 152, 106, 37, 164, 120, 140, 228, 64]))
18: Err(NotAuthority([121, 50, 207, 244, 49, 231, 72, 137, 47, 164, 142, 16, 198, 60, 23, 211, 15, 128, 202, 66, 228, 222, 57, 33, 230, 65, 36, 156, 215, 250, 60, 47]))
19: Err(NotAuthority([155, 236, 173, 3, 230, 220, 172, 3, 206, 224, 126, 222, 188, 165, 71, 83, 20, 134, 20, 146, 205, 252, 150, 162, 20, 74, 103, 187, 233, 105, 147, 50]))
20: Ok(())
21: Err(NotAuthority([86, 51, 183, 11, 128, 166, 200, 187, 22, 39, 15, 130, 204, 166, 213, 107, 39, 237, 123, 118, 200, 253, 90, 242, 152, 106, 37, 164, 120, 140, 228, 64]))
22: Err(NotAuthority([57, 25, 19, 43, 133, 30, 240, 253, 45, 174, 66, 167, 231, 52, 254, 84, 122, 245, 166, 184, 9, 0, 97, 0, 244, 137, 68, 215, 250, 232, 232, 239]))
23: Ok(())
24: Ok(())
25: Err(NotAuthority([155, 236, 173, 3, 230, 220, 172, 3, 206, 224, 126, 222, 188, 165, 71, 83, 20, 134, 20, 146, 205, 252, 150, 162, 20, 74, 103, 187, 233, 105, 147, 50]))
26: Ok(())
27: Err(NotAuthority([121, 50, 207, 244, 49, 231, 72, 137, 47, 164, 142, 16, 198, 60, 23, 211, 15, 128, 202, 66, 228, 222, 57, 33, 230, 65, 36, 156, 215, 250, 60, 47]))
28: Ok(())
29: Ok(())
30: Err(NotAuthority([121, 50, 207, 244, 49, 231, 72, 137, 47, 164, 142, 16, 198, 60, 23, 211, 15, 128, 202, 66, 228, 222, 57, 33, 230, 65, 36, 156, 215, 250, 60, 47]))
31: Err(NotAuthority([57, 25, 19, 43, 133, 30, 240, 253, 45, 174, 66, 167, 231, 52, 254, 84, 122, 245, 166, 184, 9, 0, 97, 0, 244, 137, 68, 215, 250, 232, 232, 239]))
32: Err(NotAuthority([86, 51, 183, 11, 128, 166, 200, 187, 22, 39, 15, 130, 204, 166, 213, 107, 39, 237, 123, 118, 200, 253, 90, 242, 152, 106, 37, 164, 120, 140, 228, 64]))
33: Err(NotAuthority([121, 50, 207, 244, 49, 231, 72, 137, 47, 164, 142, 16, 198, 60, 23, 211, 15, 128, 202, 66, 228, 222, 57, 33, 230, 65, 36, 156, 215, 250, 60, 47]))
34: Ok(())
35: Ok(())
36: Err(NotAuthority([121, 50, 207, 244, 49, 231, 72, 137, 47, 164, 142, 16, 198, 60, 23, 211, 15, 128, 202, 66, 228, 222, 57, 33, 230, 65, 36, 156, 215, 250, 60, 47]))
37: Ok(())
38: Ok(())
39: Err(NotAuthority([121, 50, 207, 244, 49, 231, 72, 137, 47, 164, 142, 16, 198, 60, 23, 211, 15, 128, 202, 66, 228, 222, 57, 33, 230, 65, 36, 156, 215, 250, 60, 47]))
40: Err(NotAuthority([57, 25, 19, 43, 133, 30, 240, 253, 45, 174, 66, 167, 231, 52, 254, 84, 122, 245, 166, 184, 9, 0, 97, 0, 244, 137, 68, 215, 250, 232, 232, 239]))
41: Ok(())
42: Ok(())
43: Err(NotAuthority([121, 50, 207, 244, 49, 231, 72, 137, 47, 164, 142, 16, 198, 60, 23, 211, 15, 128, 202, 66, 228, 222, 57, 33, 230, 65, 36, 156, 215, 250, 60, 47]))
44: Ok(())
45: Err(NotAuthority([121, 50, 207, 244, 49, 231, 72, 137, 47, 164, 142, 16, 198, 60, 23, 211, 15, 128, 202, 66, 228, 222, 57, 33, 230, 65, 36, 156, 215, 250, 60, 47]))
46: Err(NotAuthority([86, 51, 183, 11, 128, 166, 200, 187, 22, 39, 15, 130, 204, 166, 213, 107, 39, 237, 123, 118, 200, 253, 90, 242, 152, 106, 37, 164, 120, 140, 228, 64]))
47: Ok(())
48: Err(NotAuthority([155, 236, 173, 3, 230, 220, 172, 3, 206, 224, 126, 222, 188, 165, 71, 83, 20, 134, 20, 146, 205, 252, 150, 162, 20, 74, 103, 187, 233, 105, 147, 50]))
49: Err(NotAuthority([121, 50, 207, 244, 49, 231, 72, 137, 47, 164, 142, 16, 198, 60, 23, 211, 15, 128, 202, 66, 228, 222, 57, 33, 230, 65, 36, 156, 215, 250, 60, 47]))
50: Err(NotAuthority([86, 51, 183, 11, 128, 166, 200, 187, 22, 39, 15, 130, 204, 166, 213, 107, 39, 237, 123, 118, 200, 253, 90, 242, 152, 106, 37, 164, 120, 140, 228, 64]))

Not sure what's going on here.

@expenses expenses marked this pull request as ready for review January 5, 2021 12:21
expenses and others added 2 commits January 5, 2021 14:20
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
@expenses expenses requested a review from tomaka January 5, 2021 13:26
@expenses expenses requested a review from tomaka January 5, 2021 14:59
@tomaka tomaka enabled auto-merge (squash) January 6, 2021 07:01
@tomaka tomaka merged commit 06e60d5 into main Jan 6, 2021
@tomaka tomaka deleted the ashley-grandpa-warp-sync branch January 6, 2021 07:18
stiiifff pushed a commit to stiiifff/smoldot-old that referenced this pull request Mar 20, 2023
Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.26 to 0.3.27.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](rust-lang/futures-rs@0.3.26...0.3.27)

---
updated-dependencies:
- dependency-name: futures
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

2 participants