ledgerloops / snap-checker

Network Ledger, based on ledgerloops-0.8 messages over Hubbie.
https://ledgerloops.com
4 stars 0 forks source link

BBFS routing #12

Closed michielbdejong closed 5 years ago

michielbdejong commented 5 years ago
michielbdejong commented 5 years ago

BBFS stands for bi-directional breadth-first search.

michielbdejong commented 5 years ago

the person sending the ADD sends a single fwd probe along with it, and sends rev probes to all lower neighbors. They store it as if a rev was received over the new link. Before forwarding a probe, see if it's stored for the opposite direction. Eventually, probesSeen will just be lists of reachable links.

michielbdejong commented 5 years ago

done