Ori Newman
8e1958c20b
[NOD-1168] Add context interfaces for flows ( #808 )
...
* [NOD-1168] Add context interfaces to flows
* [NOD-1168] Move IBD state to protocol manager
* [NOD-1168] Move ready peers to protocol manager
* [NOD-1168] Add comments
* [NOD-1168] Separate context interfaces for send and receive pings
* [NOD-1168] Add protocol shared state to FlowContext
* [NOD-1168] Fix comment
* [NOD-1168] Rename Context->HandleHandshakeContext
* [NOD-1168] Initialize readyPeers and transactionsToRebroadcast
* [NOD-1168] Rename readyPeers -> peers
2020-07-21 18:02:33 +03:00
Ori Newman
b797436884
[NOD-1127] Implement transaction propagation ( #803 )
...
* [NOD-1128] Add all flows to a directory names flows
* [NOD-1128] Make everything in protocol package a manager method
* [NOD-1128] Add AddTransaction mechanism to protocol manager
* [NOD-1128] Add mempool related flows
* [NOD-1128] Add mempool related flows
* [NOD-1128] Add mempool related flows
* [NOD-1127] Fix router message types
* [NOD-1127] Inline updateQueues
* [NOD-1127] Rename acceptedTxs->transactionsAcceptedToMempool
* [NOD-1127] Add TODOs to notify transactions to RPC
* [NOD-1127] Fix comment
* [NOD-1127] Rename acceptedTxs->transactionsAcceptedToMempool
* [NOD-1127] Rename MsgTxInv->MsgInvTransaction
* [NOD-1127] Rename MsgTxInv.TXIDs->TxIDS
* [NOD-1127] Change flow name
* [NOD-1127] Call m.addTransactionRelayFlow
* [NOD-1127] Remove redundant line
* [NOD-1127] Use common.DefaultTimeout
* [NOD-1127] Return early if len(idsToRequest) == 0
* [NOD-1127] Add NewBlockHandler to IBD
2020-07-20 16:01:35 +03:00
Svarog
b9a25c1141
[NOD-1163] Combine seperated flows into single packages ( #801 )
...
* [NOD-1163] Combine seperated flows into single packages
* [NOD-1163] Move handshake.go to handshake package
* [NOD-1163] Use single logger prefix for everything under protocol
* [NOD-1163] Add comment
* [NOD-1163] Fix refactor error
2020-07-19 11:24:25 +03:00