Commit Graph

25 Commits

Author SHA1 Message Date
NikVolf 8e975669c0 suppress trait that is not used so far 2016-11-21 16:08:40 +03:00
NikVolf 7cf8d09444 pre-hashed indexed block 2016-11-21 15:36:25 +03:00
debris 9b535155bc fixing style 2016-11-18 00:42:31 +01:00
debris 2fd794be97 applied clippy suggestions to make code more idiomatic 2016-11-16 18:30:30 +01:00
NikVolf 1a553e2caf some verifications 2016-11-10 19:19:47 +03:00
debris 8d580471fa updated chain module to use new reader 2016-10-31 00:28:50 +01:00
NikVolf fa4994941e fix typo 2016-10-25 15:54:09 +03:00
NikVolf 387f9bc429 toh256 -> represeth256 2016-10-25 15:34:06 +03:00
NikVolf 108b4b6383 h256 represented entities 2016-10-24 18:18:02 +03:00
NikVolf ffd299f011 Merge branch 'master' into verification 2016-10-24 17:47:35 +03: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
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