14 Commits

Author SHA1 Message Date
Anca Zamfir
ac004e49a0
review comments 2019-06-02 19:03:51 +02:00
Anca Zamfir
0bfc3724f7
Move block execution in separate goroutine 2019-05-20 23:20:18 -04:00
Anca Zamfir
60799a4a2c
some cleanup, renaming, comments 2019-05-15 23:33:19 -04:00
Anca Zamfir
c4bfa73358
Don't allow peers to update with lower height 2019-05-15 10:04:29 -04:00
Anca Zamfir
27bc69c180
Use distinct err codes for peer timeout and FSM timeouts 2019-05-15 09:39:25 -04:00
Anca Zamfir
c752d27c14
Fix bug in sendRequest()
If we tried to send a request to a peer not present in the switch, a
missing continue statement caused the request to be blackholed in a peer
that was removed and never retried.

While this bug was manifesting, the reactor kept asking for other
blocks that would be stored and never consumed. Added the number of
unconsumed blocks in the math for requesting blocks ahead of current
processing height so eventually there will be no more blocks requested
until the already received ones are consumed.
2019-05-15 09:08:02 -04:00
Anca Zamfir
299a7f3c0a
Added termination scenarios, tests and more cleanup 2019-05-08 18:28:18 -04:00
Anca Zamfir
af90cb4f2d
cleanup 2019-05-07 21:06:43 -04:00
Anca Zamfir
02c34994fc updating docs and cleanup 2019-04-30 21:46:27 -04:00
Anca Zamfir
8ef2f6b5f2 Added timeout on next block needed to advance 2019-04-28 22:03:26 -04:00
Anca Zamfir
f9f481902f finished fsm tests 2019-04-17 22:41:28 -04:00
Anca Zamfir
bb36184aa2 cleanup 2019-04-15 23:26:07 -04:00
Anca Zamfir
0541ecb243 fixed data race in tests 2019-04-14 22:53:24 -04:00
Anca Zamfir
0c84d780d7 switch fast sync to new implementation 2019-04-13 09:23:43 -04:00