Commit Graph

51 Commits

Author SHA1 Message Date
debris 847cb36c6f chain verifier does not have hardcoded network constants 2016-11-25 18:38:21 +01:00
Svyatoslav Nikolsky 3a7aae5188 fix after merge 2016-11-22 18:11:46 +03:00
Svyatoslav Nikolsky 9f1fcec6e9 FilterLoad::flags is now enum 2016-11-22 15:57:19 +03:00
debris edfc13f0ba fixed interpreter OP_DUP operation, converting integers to hashes, added more traces 2016-11-21 17:05:42 +01:00
debris 35fec4ba15 minimal getaddr version is 0, not 60002, fixed #118 2016-11-17 00:07:11 +01:00
Svyatoslav Nikolsky 9b6f24849d Merge pull request #125 from ethcore/synchronizer
synchronizer
2016-11-16 17:09:09 +03:00
debris 90c6f6fdc3 ServerTask::Ignore 2016-11-16 11:18:13 +01:00
Svyatoslav Nikolsky 756bb10fcc Support BIP16 2016-11-16 11:52:00 +03:00
debris 1c1d342f73 Merge branch 'master' of github.com:ethcore/parity-bitcoin into synchronizer 2016-11-16 09:31:33 +01:00
debris 6713503add synchronous syncing almost finished 2016-11-15 12:48:12 +01:00
Svyatoslav Nikolsky 3897a9e419 fixed tests compilation 2016-11-15 14:17:39 +03:00
Svyatoslav Nikolsky b152c8178d introduced ConsensusParams + BIP65 support 2016-11-15 14:00:46 +03:00
Svyatoslav Nikolsky 9d6f09889e Merge branch 'master' into sync_as_bitcoind 2016-11-10 14:56:58 +03:00
Svyatoslav Nikolsky 78cae830cc headers-first sync 2016-11-10 14:50:00 +03:00
debris 6b38929222 cleanup session init and on_message 2016-11-09 22:36:29 +01:00
debris 68a3bb2d34 linting in progress 2016-11-08 16:37:06 +01:00
debris 436d925ba6 clippy lints enabled for crypto, message, p2p, pbtc, primitives and serialization 2016-11-08 11:51:34 +01:00
debris 54e2ae2a4b avoid redundant clone on header serialize 2016-11-07 12:38:52 +01:00
Svyatoslav Nikolsky 22bd2427bf adder txn_count (always zero) to headers message 2016-11-07 13:20:01 +03:00
Svyatoslav Nikolsky d30520c981 added support for regnet && testnet genesis blocks 2016-11-07 12:15:15 +03:00
debris 5b93c5dc40 regression tests support 2016-11-05 15:32:57 +01:00
debris 260986da9c merged with master 2016-10-31 01:07:13 +01:00
debris 08a2a93d9c Merge branch 'master' of github.com:ethcore/parity-bitcoin into generic_reader 2016-10-31 01:06:04 +01:00
debris e2245097d4 reader is generic over io::Read 2016-10-31 01:05:21 +01:00
debris 0d8c24fb7c intentory_type, fixed #39 2016-10-30 13:47:29 +01:00
Svyatoslav Nikolsky 4804ac5e42 Sync with multiple peers (#37)
* * started work multiple peers support in sync
* some tests for synchronization && sync peers

* fixed compilation after merge

* fixed compilation after merge

* fixed compilation after merge

* added TODOs + fixed documentation
2016-10-26 11:46:10 +02:00
Marek Kotewicz 1306a3905a disconnect from seednode 60 seconds after receiving addr message (#38) 2016-10-26 11:45:51 +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
Marek Kotewicz b4828294f5 impl PartialEq<&a str> for Command (#27)
* impl PartialEq<&a str> for Command

* additional test for Command PartialEq

* fixed comparing "ver" and "version"
2016-10-24 11:54:03 +03:00
Marek Kotewicz 02816aaa4e addr protocol && start of sync protocol (#25)
* 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

* send getaddr on connect

* fixed node_table insert, added insert_many

* addr protocol

* added TODO: remove
2016-10-24 10:42:11 +03:00
Marek Kotewicz 563f77c500 Merge pull request #23 from ethcore/session
session with working ping pong
2016-10-21 15:13:16 +02:00
Svyatoslav Nikolsky 49628a3d2c all fields of bitcoin messages -> public 2016-10-21 16:08:46 +03:00
debris 189fd37835 ping->pong exchange 2016-10-21 10:55:37 +02:00
debris 1349c3af4b p2p::Context, changed the way incomming messages read 2016-10-20 02:51:20 +02:00
debris 4fb1d04955 p2p in progress 2016-10-18 12:15:07 +02:00
debris e039068772 renamed Services 2016-10-18 01:44:52 +02:00
debris f7bfa16195 p2p in progress 2016-10-17 10:52:15 +02:00
debris f283197a8d renamed PayloadType -> Payload, added common reexports in messages 2016-10-14 11:44:51 +02:00
debris 25c7d20c1e p2p module in progress 2016-10-12 19:39:50 +02:00
debris ffc300f85a message cleanup in progress 2016-10-10 18:08:22 +02:00
debris 3873cf6b6b message cleanup 2016-10-10 11:56:01 +02:00
debris 4417a5d9c7 p2p error handling overhaul 2016-10-07 16:50:49 +02:00
debris b09708ca5b cleanup errors in message and p2p libs 2016-10-06 01:32:15 +02:00
debris 63ca383949 use H32 instead of [u8; 4] 2016-10-06 00:38:20 +02:00
debris 55c6584bcf few more functions producing messages 2016-10-04 16:49:41 +02:00
debris 3f06ab14ae connection ping pong 2016-10-04 16:29:33 +02: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 5f2c7545b8 p2p overhaul 2016-10-03 17:17:34 +02:00