Commit Graph

65 Commits

Author SHA1 Message Date
Svyatoslav Nikolsky b081ca3d70 Continue synchronization protocol impl (#30)
* p2p <-> sync interfaces proposal

* updated with example

* send errors will be handled in p2p module => no need to return to the sync

* poc of outbound sync connection

* simplified send_to_peer

* context has cpu pool and enent loop handles

* on_message won't return ProtocolAction anymore

* session initialized sync protocol, remove retain cycles on P2P::drop

* removed ProtocolAction

* uncommented ping protocol

* node_table sorts nodes also by recently used time

* started work on sync package

* send getaddr on connect

* fixed node_table insert, added insert_many

* addr protocol

* sync headers response

* continue sync

* continue sync protocol

* separated sync connection start from sync connection creation

* switched to getblocks (instead of getheaders)

* starting to receive blocks in sync

* deal with orphaned blocks in sync::local_chain

* continue sync

* fix warnings

* removed TODOs

* protocol::sync is back to private state

* fixed grumbes
2016-10-24 16:38:33 +02:00
NikVolf 903d2b8878 age & coinbase 2016-10-23 20:00:47 +03:00
NikVolf 2a98795485 test storage -a 2016-10-21 19:46:00 +03:00
Svyatoslav Nikolsky 49628a3d2c all fields of bitcoin messages -> public 2016-10-21 16:08:46 +03:00
Svyatoslav Nikolsky e03cf06a16 test_data::ChainBuilder for generating transactions for tests 2016-10-20 17:21:28 +03:00
Svyatoslav Nikolsky efdd30da17 implemented HeapSizeOf for MemoryPool 2016-10-19 13:07:11 +03:00
debris d87626884d Serializable trair extended with serialized_size function 2016-10-17 11:17:00 +02:00
debris aa6139b824 use primitives::Bytes instead of typename 2016-10-16 11:48:45 +02:00
NikVolf aa2e1f64d0 tests & various routines 2016-10-15 17:48:06 +03:00
NikVolf fda5334a2b flush work 2016-10-14 14:26:17 +03:00
debris 876c589f5c all messages types implemented 2016-10-04 01:48:27 +02:00
debris 4d71c801f3 few more message types 2016-10-04 00:47:18 +02:00
debris e8de78bc0b few more message types 2016-10-03 23:36:22 +02:00
debris d8a9ebfb1b serialize returns bytes 2016-09-19 18:06:43 +02:00
debris e1a9f70429 chain structures separated from core 2016-09-19 15:23:37 +02:00