Commit d38ac65
Upgrade litep2p to v0.12.0 and handle Kademlia publish success events (#9685)
litep2p v0.12.0 adds ability to track whether publishing a DHT record or
provider was successful. This PR brings this functionality to substrate.
Particularly, this fixes authority-discovery unnecessarily republishing
DHT records due to litep2p not emitting
`KademliaEvent::PutRecordSuccess` before v0.12.0.
---------
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>1 parent ed00ea3 commit d38ac65
File tree
6 files changed
+208
-32
lines changed- prdoc
- substrate/client/network/src
- litep2p
6 files changed
+208
-32
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
911 | | - | |
| 911 | + | |
912 | 912 | | |
913 | 913 | | |
914 | 914 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
83 | 93 | | |
84 | 94 | | |
85 | 95 | | |
| |||
174 | 184 | | |
175 | 185 | | |
176 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
177 | 195 | | |
178 | 196 | | |
179 | 197 | | |
| |||
401 | 419 | | |
402 | 420 | | |
403 | 421 | | |
404 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
405 | 426 | | |
406 | 427 | | |
407 | 428 | | |
| |||
417 | 438 | | |
418 | 439 | | |
419 | 440 | | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
420 | 444 | | |
421 | 445 | | |
422 | 446 | | |
| |||
446 | 470 | | |
447 | 471 | | |
448 | 472 | | |
449 | | - | |
450 | | - | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
451 | 477 | | |
452 | 478 | | |
453 | 479 | | |
| |||
680 | 706 | | |
681 | 707 | | |
682 | 708 | | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
683 | 720 | | |
684 | 721 | | |
685 | 722 | | |
| |||
0 commit comments