Commit Graph

131 Commits

Author SHA1 Message Date
debris 42f94e0921 updated author section in cli 2017-04-27 16:09:59 +02:00
debris 09f25c4f2f db refactor finished 2017-04-21 15:26:19 +02:00
debris a2d74615ed applied review suggestions 2017-04-14 16:41:14 +02:00
debris 57fd472db8 updated dependencies 2017-04-14 12:45:04 +02:00
Svyatoslav Nikolsky 6726c04f8b Merge pull request #397 from paritytech/cli_fix
fixed cli --db-cache option
2017-04-14 09:34:28 +03:00
Svyatoslav Nikolsky ee509fd696 Sync queue improvements: maintaining proper number of active connections on p2p level [WIP] (#396)
* autoconnect on start

* proper # of outbound connections in autoconnect

* close connection to seednode after receiving addr

* fixed seednodes list

* do not connect to same IPv4 && IPv6

* disconnect from seednode when >1 addr received
2017-04-14 08:28:41 +02:00
debris 3f7aa2ab34 fixed cli --db-cache option 2017-04-14 08:25:25 +02:00
Svyatoslav Nikolsky 4cb65e3409 Added couple of debug helpers to deal with panics and segfaults (#302)
* added couple of debug helpers to deal with panics

* trying to fix compilation

* trying to fix compilation

* test

* Revert "test"

This reverts commit 6169f7e1eb5cc7b43ea2e538686cb0144bf64712.
2017-04-05 21:19:10 +07:00
Marek Kotewicz 77cfd9e8f7 db refactor (#385)
* db refactor in progress, refactored kvdb

* kvdb refactor

* removed unused RwLock

* removed unused RwLock

* BlockChainDatabase

* db refactor in progress

* implemented BlockProvider for newdb

* fixed compiling

* newdb TransactionMeta

* newdb tests

* reopen tests for newdb

* replaced old db with new db

* chain_verifier uses new db

* sync module uses refactored db

* check double spends in verification layer

* added Forkable trait to satisfy resolving recursive types by compiler

* new db regtests in progress

* fixed verification and sync unit tests

* fixed miner and rpc unit tests

* implemented fmt::Debug for few structs

* removed commented out code

* fixed bencher target

* removing commented out code, polishing db_refactor pr
2017-04-05 16:37:58 +07:00
Svyatoslav Nikolsky d005307db9 get rid of custom cpu pool in sync 2017-01-11 16:36:33 +03:00
Svyatoslav Nikolsky 07d4f00241 implemented blocknotify option 2017-01-10 11:58:55 +03:00
Svyatoslav Nikolsky 9dad2a3eec Merge branch 'master' into sync_v2 2016-12-23 16:19:07 +03:00
Svyatoslav Nikolsky d696dcfdaf sync_v2 2016-12-23 16:13:18 +03:00
debris 10c9b2e546 jsonrpc v1 enabled 2016-12-20 11:51:50 +01:00
debris 2beb3aa7d2 updated jsonrpc libraries to latest version, support for jsonrpc v1 2016-12-20 11:42:51 +01:00
debris 8c0a8d4c6d fixed compiling 2016-12-15 14:36:18 +01:00
debris 7baaa47b8c import is hashing blocks when reading, added --skip-verification flag 2016-12-13 20:49:41 +01:00
Svyatoslav Nikolsky f14f809401 Merge branch 'master' into rpc_blockchain 2016-12-13 13:39:46 +03:00
NikVolf aa3dd9e700 api default & curl-example 2016-12-12 21:25:46 +01:00
Svyatoslav Nikolsky 9e1932e7f9 finished gettxout implementation 2016-12-12 21:49:01 +03:00
NikVolf c19740d3eb finalizing api 2016-12-12 19:18:43 +01:00
Svyatoslav Nikolsky d706a8300d implemented getblocktemplate RPC method 2016-12-09 17:34:04 +03:00
Svyatoslav Nikolsky b5035d6092 added MinerClient to apis list 2016-12-09 16:43:00 +03:00
Svyatoslav Nikolsky 2f0b42a5b5 Merge branch 'master' into sync_sendrawtransaction 2016-12-08 18:33:37 +03:00
Svyatoslav Nikolsky 23da291f95 accept_transaction 2016-12-08 14:48:00 +03:00
Marek Kotewicz e2afb545d3 Merge pull request #264 from ethcore/rpc_framework_copypaste
Copypasted RPC framework from Parity
2016-12-08 10:08:03 +01:00
Svyatoslav Nikolsky 6e87350a6f changed relay to true in version message 2016-12-07 16:40:57 +03:00
Svyatoslav Nikolsky 7598747b2c added missing JSON RPC options handling 2016-12-07 16:24:54 +03:00
Svyatoslav Nikolsky 99aa1c2330 another porion of parity RPC copypaste 2016-12-07 16:14:52 +03:00
debris 066b59a304 replaced unwrap with expect 2016-12-01 10:46:03 +01:00
debris d7daed26cf basic print-to-console 2016-12-01 10:40:56 +01:00
debris 67635a9336 Merge branch 'master' into onlynet 2016-11-30 17:08:49 +01:00
debris ca49061df0 command line option to limit connections only to ipv4 or ipv6 2016-11-30 16:01:11 +01:00
debris eaf396b3cb default seednodes 2016-11-30 14:37:17 +01:00
Svyatoslav Nikolsky 9a6c5c8579 support semi-unordered blocks import 2016-11-30 12:16:29 +03:00
debris 847cb36c6f chain verifier does not have hardcoded network constants 2016-11-25 18:38:21 +01:00
debris e1a2915a90 do not wait idiotic 30 seconds when running regtests 2016-11-25 12:39:51 +01:00
Svyatoslav Nikolsky 0164ac95cb panic -> expect 2016-11-25 12:39:14 +03:00
Svyatoslav Nikolsky ce8f896efb custom data dir option 2016-11-25 09:58:04 +03:00
NikVolf 1737c2deaa cli config 2016-11-21 12:06:55 +03:00
NikVolf 0da1fb184c configurable cache size 2016-11-21 11:52:27 +03:00
NikVolf 77c01c41e0 refactor sync and bin 2016-11-17 21:37:45 +03:00
Svyatoslav Nikolsky 035583fac1 Merge branch 'master' into respect_minimal_protocol_version 2016-11-17 08:23:01 +03:00
debris fe9828dbdc respect minimal protocol version, fixed #141 2016-11-17 01:02:43 +01:00
debris 56e2dc02b1 limit number of inbound and outbound connections for regtests 2016-11-17 00:33:35 +01:00
debris e07dfbb6c1 p2p thread pool for regtest has only 1 thread 2016-11-17 00:18:04 +01:00
Svyatoslav Nikolsky fce53cdc8b removed --diskdb option 2016-11-16 09:58:26 +03:00
Svyatoslav Nikolsky b152c8178d introduced ConsensusParams + BIP65 support 2016-11-15 14:00:46 +03: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 9e501fe5d0 shutdown gracefully on incompatible db open 2016-11-07 11:20:41 +01: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
Marek Kotewicz efa100a253 Merge pull request #87 from ethcore/sync_manager
Initial sync manager version
2016-11-04 13:08:09 +01:00
debris fc32423017 save node_table to $APP_DIR/p2p/nodes.csv 2016-11-04 12:08:58 +01:00
Svyatoslav Nikolsky fedb8581d2 initial sync manager version 2016-11-04 12:36:58 +03:00
debris 521482f2ec work on import command in progress 2016-11-03 17:19:35 +01:00
debris b4719b1bac import is main subcommand 2016-11-03 11:53:39 +01:00
Svyatoslav Nikolsky 36e30ef5ce support connect to given port via command line 2016-11-02 10:25:09 +03:00
Svyatoslav Nikolsky 44c2faab59 added LocalNode tests 2016-10-31 18:22:02 +03:00
Svyatoslav Nikolsky 4f9d68cd99 Moved sync::BestBlock to db::BestBlock (#65)
* * moved BestBlock to db package
* use u32 as block index in sync package

* fixed compilation after merge
2016-10-31 14:58:48 +01:00
debris e8f4c054bb make import::blk fields public 2016-10-31 03:30:49 +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 98803d6afe integrating sync module with db && verification 2016-10-26 15:56:52 +03: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
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 6f6ad59113 removed unused code from p2p, clean up exported structs (#26)
* removed unused code from p2p module

* exposed p2p::NetConfig
2016-10-24 11:14:01 +03:00
debris 49bb034bbd added logger to p2p, fixed reading messages 2016-10-19 14:17:18 +02:00
debris e039068772 renamed Services 2016-10-18 01:44:52 +02:00
debris 3625fb06c2 updated dependency graph 2016-10-16 11:55:42 +02:00
debris 850ad58e5d p2p listen 2016-10-13 09:17:29 +02: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 362bfc6539 fixed pbtc imports 2016-10-03 17:20:36 +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 b365ec90ff connecting to a node in progress 2016-10-03 03:01:46 +02:00
debris 5aacf6ea38 cli port option and parsing to config 2016-09-30 16:25:28 +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