grin/servers/tests
Ignotus Peverell 9554f93e1d
Run header sync only when stalled or complete (#1393)
Header sync used to run when complete (right count of blocks
received) or every 10 sec regardless. Sometimes 10 secs is not
enough, especially when a big batch of blocks bodies is arriving
at the same time.

This tweaks the time-based heuristic just a bit to only ask for
headers when stalled, meaning that the header head has not
*progressed* for 10 seconds.

* Fix bad header sync timeout logic

* Improve stability of fast sync test
Adds regular pings so that the 2 test servers know each others'
heights (necessary to find most work peer). Stop mining on the
first server once the 2nd kicks in. Avoids chasing a fast moving
target on Cuckoo10.
2018-08-22 19:51:25 -04:00
..
framework Tx (change) output splitter (#1369) 2018-08-18 22:38:48 +01:00
api.rs Remove Iron dependency and update hyper to version 0.12 (#1241) 2018-08-01 10:44:07 +01:00
dandelion.rs Remove Iron dependency and update hyper to version 0.12 (#1241) 2018-08-01 10:44:07 +01:00
simulnet.rs Run header sync only when stalled or complete (#1393) 2018-08-22 19:51:25 -04:00
stratum.rs fix misbehaving simulnet fastsync test (#1227) 2018-07-08 17:37:09 +01:00
wallet.rs Remove Iron dependency and update hyper to version 0.12 (#1241) 2018-08-01 10:44:07 +01:00