7 Commits

Author SHA1 Message Date
Anca Zamfir
8e4b25008c send errors to FSM in a different channel than blocks
send errors (RemovePeer) from switch on a different channel than the
one receiving blocks
renamed channels
added more pool tests
2019-04-07 09:04:42 -04:00
Anca Zamfir
4fcd7b86ac changes to the design
added block requests under peer

moved the request trigger in the reactor poolRoutine, triggered now by a ticker

in general moved everything required for making block requests smarter in the poolRoutine

added a simple map of heights to keep track of what will need to be requested next

added a few more tests
2019-04-04 00:13:32 +02:00
Anca Zamfir
70c703860e added pool tests 2019-03-27 19:54:08 +01:00
Anca Zamfir
6b109881c6 pulled some fsm code into pool.go 2019-03-27 14:33:11 +01:00
Anca Zamfir
9f25600b1d Fix the test loggers 2019-03-26 22:43:50 +01:00
Anca Zamfir
fd9b10f6fe cleanup 2019-03-26 14:51:37 +01:00
Anca Zamfir
6428cba446 Initial commit 2019-03-26 09:58:30 +01:00