Commit Graph

8 Commits

Author SHA1 Message Date
debris 2646059c47 chain uses serialization_derive 2017-07-22 02:53:02 +02:00
debris 5a1041f72a change nbits: u32 -> bits: Compact, miner uses verification 2016-12-08 21:17:28 +01:00
Svyatoslav Nikolsky 02aa1dcf12 lost file 2016-11-29 13:48:14 +03:00
debris 8d580471fa updated chain module to use new reader 2016-10-31 00:28:50 +01:00
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
Svyatoslav Nikolsky 49628a3d2c all fields of bitcoin messages -> public 2016-10-21 16:08:46 +03: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