Commit Graph

500 Commits

Author SHA1 Message Date
debris bdac1b825b handshake time limitied to 5 seconds 2016-10-27 14:57:14 +02:00
NikVolf a7fb6f85c4 failing test for block 221 2016-10-27 15:48:14 +03:00
NikVolf 4a6c0a173f more sophisticated spent marker 2016-10-27 15:26:06 +03:00
NikVolf f20a0f8d31 proper height save for main chain 2016-10-27 14:32:34 +03:00
NikVolf 58e9fccce2 proper tests 2016-10-27 14:28:24 +03:00
NikVolf a385333d3d none -> 0 for genesis 2016-10-27 14:24:59 +03:00
Svyatoslav Nikolsky 9fd98e9392 Merge pull request #43 from ethcore/db-up
Database upgrade
2016-10-27 10:42:28 +00:00
Svyatoslav Nikolsky b4d219176a Merge pull request #44 from ethcore/verify_high_s
fixed verify high_s signatures
2016-10-27 10:30:35 +00:00
NikVolf a05de379eb unified best lock 2016-10-27 13:27:18 +03:00
debris f5b2b47c92 fixed verify high_s signatures 2016-10-27 12:21:37 +02:00
NikVolf 3ca794ceca Merge branch 'master' into db-up 2016-10-27 12:13:31 +03:00
Nikolay Volf 0ba681de8b Merge pull request #41 from ethcore/sync
Sync <-> db + verification integration
2016-10-27 12:12:27 +03:00
Svyatoslav Nikolsky 653b250960 fixed style && unwraps 2016-10-27 12:06:24 +03:00
NikVolf 247c3bd516 sync u32 fixes 2016-10-27 02:39:37 +03:00
NikVolf 0ffe1a2233 transaction metadata update 2016-10-27 02:20:30 +03:00
NikVolf 709dd9e1f4 best number & hash in store 2016-10-27 01:50:44 +03:00
NikVolf 93b765d8ea u32 everywhere 2016-10-26 23:58:19 +03:00
Svyatoslav Nikolsky 1457d9d056 fixed compilation after merge 2016-10-26 17:46:47 +03:00
Svyatoslav Nikolsky 10f784a73b Merge branch 'master' into sync 2016-10-26 17:43:52 +03:00
Svyatoslav Nikolsky 964d013042 fixed sync tests 2016-10-26 17:33:28 +03:00
Svyatoslav Nikolsky 98803d6afe integrating sync module with db && verification 2016-10-26 15:56:52 +03:00
Svyatoslav Nikolsky e0f4a7a0b3 Merge pull request #40 from ethcore/deadline
deadline future
2016-10-26 10:45:54 +00:00
debris 5ea40e919b deadline future 2016-10-26 12:33:41 +02: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 cf4ab2e644 added TODOs + fixed documentation 2016-10-26 12:24:04 +03:00
Svyatoslav Nikolsky 2ab18a3ed4 fixed compilation after merge 2016-10-25 16:05:46 +03:00
Svyatoslav Nikolsky b7a188f68d fixed compilation after merge 2016-10-25 16:05:10 +03:00
Svyatoslav Nikolsky 917d18d6a5 Merge branch 'master' into sync 2016-10-25 16:03:34 +03:00
NikVolf 6e2a2c009c Merge branch 'h256-represent' 2016-10-25 15:54:28 +03:00
NikVolf fa4994941e fix typo 2016-10-25 15:54:09 +03:00
Svyatoslav Nikolsky dffa97de1e fixed compilation after merge 2016-10-25 15:52:13 +03:00
Svyatoslav Nikolsky 693f01393d Merge branch 'master' into sync 2016-10-25 15:48:28 +03:00
Nikolay Volf 7fcec6c908 Merge pull request #33 from ethcore/h256-represent
H256 represented entities
2016-10-25 15:45:29 +03:00
Svyatoslav Nikolsky d044acc3c9 * started work multiple peers support in sync
* some tests for synchronization && sync peers
2016-10-25 15:43:32 +03:00
NikVolf 387f9bc429 toh256 -> represeth256 2016-10-25 15:34:06 +03:00
Nikolay Volf b816b53d21 Merge pull request #36 from ethcore/p2p_handle_cleanup
clean up nested futures spawning in p2p connection
2016-10-25 15:31:52 +03:00
debris 4d573ce1b6 clean up nested nested futures spawning in p2p connection 2016-10-25 11:02:37 +02:00
Svyatoslav Nikolsky debb5eece6 Merge pull request #35 from ethcore/depsup
updated dependencies and graph
2016-10-25 11:09:06 +03:00
debris e1e532d5a6 updated dependencies and graph 2016-10-25 10:07:25 +02:00
Marek Kotewicz 6ac07659b6 seednodes dns lookup (#34)
* fixed compile error after merging 29 & 30

* dns lookup

* connect to seednode
2016-10-25 09:55:43 +02:00
NikVolf d87b2add25 Merge branch 'master' into h256-represent 2016-10-24 18:20:10 +03:00
NikVolf 108b4b6383 h256 represented entities 2016-10-24 18:18:02 +03:00
Nikolay Volf fa4cd03713 Basic chain verifier (#28)
* redundant spaces

* chain verifier stub

* test storage stub

* test storage -a

* iteration test layout

* flush work

* nbits check

* age & coinbase

* utils mod

* fix warnings

* transaction verification

* merkle root

* first tx test

* use all

* test storage to db
2016-10-24 17:58:38 +03:00
NikVolf ffd299f011 Merge branch 'master' into verification 2016-10-24 17:47:35 +03:00
Marek Kotewicz ec3aee6fab fixed compile error after merging 29 & 30 (#32) 2016-10-24 17:42:54 +03:00
Marek Kotewicz 36c61c0474 Improvements for `Session` (#29)
* Session::initialize does not return result

* SessionFactory
2016-10-24 16:39:20 +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 7ebd4c947a test storage to db 2016-10-24 17:08:25 +03:00
Marek Kotewicz 1c7bfc9a2e fixed on_message stackoverflow (#31) 2016-10-24 15:55:08 +03:00