neo-go/pkg/peer/stall
decentralisedkev dc5de1fa6d
[Peer] Refactor (#240)
[Peer]

- Closes #239

- moved response handlers to their own functions

- removed DefaultConfig from LocalConfig file

- passed peer as a parameter to all response handlers

- added peer start height

- refactored NewPeer function to be more concise and clear

- removed empty lines at end of functions

- Added AddMessage/RemoveMessage for Detector in outgoing and ingoing
requests for Block and Headers
2019-03-28 19:09:55 +00:00
..
stall.go [Peer] Refactor (#240) 2019-03-28 19:09:55 +00:00
stall_test.go [Peer] Refactor (#240) 2019-03-28 19:09:55 +00:00