Commit 375ce2e
committed
fix(gossipsub): resolve empty mesh issue by removing add_explicit_peer calls
- Remove all add_explicit_peer calls that were converting peers to 'direct peers'
which bypass the gossipsub mesh entirely (caused 'GRAFT: ignoring request from
direct peer' errors)
- Adjust gossipsub config: mesh_n_low=1, mesh_outbound_min=0 to support
hub-and-spoke topology where bootnode has only inbound connections
- Mesh now forms correctly via standard GRAFT/PRUNE protocol1 parent 81524af commit 375ce2e
2 files changed
+14
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
433 | 431 | | |
434 | 432 | | |
435 | 433 | | |
| |||
449 | 447 | | |
450 | 448 | | |
451 | 449 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
| 450 | + | |
456 | 451 | | |
457 | 452 | | |
458 | 453 | | |
459 | 454 | | |
460 | 455 | | |
461 | 456 | | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | 457 | | |
467 | 458 | | |
468 | 459 | | |
| |||
510 | 501 | | |
511 | 502 | | |
512 | 503 | | |
513 | | - | |
514 | | - | |
515 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
516 | 510 | | |
517 | 511 | | |
518 | 512 | | |
| |||
0 commit comments