summaryrefslogtreecommitdiffstats
path: root/src/node.rs
Commit message (Collapse)AuthorAgeFilesLines
* add clock moduletv19 hours1-1/+5
| | | | | The Clock module is the system clock that every unix timestamp new goes through. It comes with an offset that only tests can set.
* avoid stalled sourcetv19 hours1-0/+1
| | | | | | | | | | | | | A source given up for not answering our sync messages could become the source again straight away. Whoever asks first after the reset takes the role, and that's often the same peer, which would then stall for another delivery limit. Now, a stalled source isn't chosen again for one more delivery_limit. If it's the only candidate, catching up waits that long and then tries it again. Before, a retry with that peer couldn't have helped any sooner anyway: a source is only given up after a whole delivery limit without a sync message, and that clock restarts when it is chosen again.
* make sync reply timeout part of timingtv20 hours1-2/+3
| | | | This enables upcoming lossy-links tests.
* recompute neighbours whenever topology changestv20 hours1-0/+4
|
* build node in separate moduletv21 hours1-0/+168