Commit Graph

30 Commits

Author SHA1 Message Date
debris 521482f2ec work on import command in progress 2016-11-03 17:19:35 +01:00
debris 05ed9567e9 import module 2016-10-31 03:12:44 +01:00
Svyatoslav Nikolsky 6f94a91b82 added option to sync with disk database (#45) 2016-10-27 16:26:12 +02: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 cc8f90fc3b Merge branch 'master' into verification 2016-10-20 17:10:19 +03:00
debris 49bb034bbd added logger to p2p, fixed reading messages 2016-10-19 14:17:18 +02:00
NikVolf eaf2240e6b Merge branch 'master' into verification 2016-10-18 17:55:52 +03:00
NikVolf 2991cc6193 crate layout 2016-10-17 22:27:45 +03:00
Svyatoslav Nikolsky e3968cfa46 Merge branch 'master' into mempool 2016-10-16 21:38:04 +03:00
Svyatoslav Nikolsky 40b1241ccf initial commit for MemoryPool 2016-10-16 21:32:11 +03:00
debris 3625fb06c2 updated dependency graph 2016-10-16 11:55:42 +02:00
NikVolf deefe60a13 key-value database initial 2016-10-13 14:13:50 +03:00
debris ffcb4d5a20 improved p2p interface 2016-10-04 12:33:23 +02:00
debris 742e9a6fff improved connect in main.rs 2016-10-04 02:06:45 +02:00
debris dc21039182 net lib renamed to message 2016-10-03 16:29:07 +02:00
debris c1184e4a9b listening for incomming connections and -connect works 2016-10-03 15:44:35 +02:00
debris 0f73927e51 added testnet and seednode cli options 2016-09-30 14:59:16 +02:00
debris 2bad1fdada created [[bin]] 2016-09-30 14:44:50 +02:00
debris 2f90b65454 tokio p2p init 2016-09-21 08:54:08 +02:00
debris b8b9235c4e net lib 2016-09-19 16:13:50 +02:00
debris fdc4bfe2d7 script lib 2016-09-19 16:09:05 +02:00
debris 0edcc08ab1 keys lib 2016-09-19 15:39:57 +02:00
debris e1a9f70429 chain structures separated from core 2016-09-19 15:23:37 +02:00
debris 744c53202e serialization separated to its own lib 2016-09-19 15:15:56 +02:00
debris ed12866f2b crypto separated to its own library 2016-09-19 15:09:22 +02:00
debris 1aed7c71c5 primitives moved to standalone lib 2016-09-19 15:02:10 +02:00
debris d7f650db51 keypair 2016-08-17 15:00:47 +02:00
debris 6e310a68ac bunch of small improvements and crypto stuff 2016-08-16 18:00:26 +02:00
debris 84803655a7 SHA-256 2016-08-16 10:49:35 +02:00
debris b51f3b4c6b basic serialization 2016-08-15 14:50:20 +02:00