Ori Newman
83a3c30d01
[NOD-1176] Implement a struct for each flow to share flow data ( #811 )
...
* [NOD-1176] Implement a struct for each flow to share flow data
* [NOD-1178] Add empty contexts to flow structs for consistency
2020-07-22 15:12:54 +03:00
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
3e6c1792ef
[NOD-1170] Return a custom error when a route is closed ( #805 )
...
* [NOD-1170] Return a custom error when a route is closed
* [NOD-1170] Return ErrRouteClosed directly from route methods
* [NOD-1170] Fix comment location
2020-07-21 12:06:11 +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