Commit Graph

319 Commits

Author SHA1 Message Date
Svyatoslav Nikolsky 5d5a6d715c lost line 2017-08-11 11:48:26 +03:00
Svyatoslav Nikolsky b33e327d32 do not close connection on notfound if not synchronizing 2017-08-11 11:27:31 +03:00
Svyatoslav Nikolsky 28f4cda92d added hardocded (min, max) requested blocks switch 2017-08-11 11:12:47 +03:00
Svyatoslav Nikolsky 72c3408b8f fixed node penalizing 2017-08-11 11:05:34 +03:00
Svyatoslav Nikolsky 0e9b5fd89e merge good changes from sync_queue branch 2017-08-10 17:44:01 +03:00
Svyatoslav Nikolsky 46a7c4f7f2 --verification-level && --verification-edge 2017-08-10 14:54:06 +03:00
Svyatoslav Nikolsky 4a37e74444 uahf: renamed magic -> network 2017-08-09 14:40:03 +03:00
Svyatoslav Nikolsky bcdc1e6813 uahf: REQ-7 difficulty adjustment 2017-08-08 18:33:55 +03:00
Svyatoslav Nikolsky 6110d94544 uahf: block sigops check 2017-08-08 13:45:39 +03:00
Svyatoslav Nikolsky 7eccf8b888 per-fork min && max block size check 2017-08-08 11:23:21 +03:00
Svyatoslav Nikolsky e93e5ef35a propagate ConsensusParams with ConsensusFork 2017-08-08 09:52:54 +03:00
Svyatoslav Nikolsky 976dfea64e fixed bloom indexing 2017-05-18 10:11:03 +03:00
debris 09f25c4f2f db refactor finished 2017-04-21 15:26:19 +02:00
Svyatoslav Nikolsky 11c6411a41 Merge pull request #394 from paritytech/consolidate
Consolidate database traits
2017-04-10 08:03:28 +03:00
debris 0155c6e4ef revert is_double_spent -> is_spent 2017-04-09 14:10:40 +08:00
debris 21fdfabb0e consolidated TransactionOutputProvider and TransactionOutputObserver 2017-04-07 12:54:40 +07:00
debris 2074076c41 simplify verification code 2017-04-07 11:46:20 +07:00
debris fc3b2a13bf removed redundant StorageTransactionOutputProvider, clarified bip30 2017-04-06 22:37:57 +07:00
debris 16fc1c01af test-data is only a dev-dependency, closes #390 2017-04-06 01:19:19 +07:00
debris dd36a624fa updated dependencies and graph 2017-04-05 17:17:23 +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
debris cd5287bb2d updated parking_lot to 0.4 2017-03-26 15:17:28 +07:00
debris f193a03fd6 updated csv && byteorder libraries 2017-03-12 16:05:35 +01:00
Svyatoslav Nikolsky ba918625d5 temporary switched to github version of tokio-core 2017-01-12 00:38:14 +03:00
Svyatoslav Nikolsky 3bbd71009d removed unneeded config option 2017-01-11 16:39:54 +03: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 7be6013c89 remove debug print from sync 2017-01-10 11:15:17 +03:00
Svyatoslav Nikolsky 5852074a75 fix after merge 2017-01-09 18:39:31 +03:00
Svyatoslav Nikolsky 3d57c0c55e Merge branch 'master' into sync_clippy 2017-01-09 18:36:41 +03:00
Svyatoslav Nikolsky fe97161092 when_transaction_double_spends_during_reorg 2017-01-09 17:35:15 +03:00
Svyatoslav Nikolsky 2aa0aa6721 fixed clippy warnings after sync refactoring 2017-01-09 12:29:34 +03:00
Svyatoslav Nikolsky afc9c53df0 mempool double send is now checked during reorganizations 2017-01-09 11:49:04 +03:00
Svyatoslav Nikolsky 59378066b8 fixed TODOs 2016-12-27 09:33:08 +03:00
Svyatoslav Nikolsky c23b0f55a4 sort peers by response time before sending blocks requests 2016-12-26 17:21:04 +03:00
Svyatoslav Nikolsky 40ace5b0d4 ClientCoreRef 2016-12-26 11:39:59 +03:00
Svyatoslav Nikolsky de67bfdef6 cleaning up 2016-12-26 10:54:55 +03:00
Svyatoslav Nikolsky e82ff34eed fixed sync issues 2016-12-23 18:45:50 +03:00
Svyatoslav Nikolsky cee9ce38f9 deleted obsolete sync_v2 2016-12-23 16:14:49 +03:00
Svyatoslav Nikolsky d696dcfdaf sync_v2 2016-12-23 16:13:18 +03:00
Svyatoslav Nikolsky be53bbdc3e added some more tests 2016-12-14 14:22:02 +03:00
Svyatoslav Nikolsky a9dcc0d6f7 fix bad pattern 2016-12-14 02:08:07 +03:00
Svyatoslav Nikolsky 768912c759 fix after merhe 2016-12-14 00:23:23 +03:00
Svyatoslav Nikolsky f54b7691c4 Merge branch 'master' into fix_319 2016-12-14 00:17:47 +03:00
Svyatoslav Nikolsky 945c19a8eb replace non-final transactions in mempool 2016-12-14 00:14:07 +03:00
debris 7baaa47b8c import is hashing blocks when reading, added --skip-verification flag 2016-12-13 20:49:41 +01:00
debris c59e84ebe5 Merge branch 'master' of github.com:ethcore/parity-bitcoin into block_assembler_tests 2016-12-12 15:23:18 +01:00
Svyatoslav Nikolsky 0714037a3a Merge branch 'master' into rpc_blockchain 2016-12-12 15:33:12 +03:00
debris 2f7b940794 DoubleSpends verification 2016-12-12 13:11:00 +01:00
debris 64a3d4d080 verification refactor almost done 2016-12-12 12:04:19 +01:00
Svyatoslav Nikolsky fdf704f6ae check mempool::is_spent in ChainMemoryPoolTransactionOutputProvider::is_spent 2016-12-12 00:56:32 +03:00
Svyatoslav Nikolsky 408b5cda35 when_got_same_orphan_transaction_twice 2016-12-11 09:37:42 +03:00
debris 56e4e54074 Transaction Output Observer 2016-12-10 22:34:04 +01:00
debris f669a27d06 PreviousTransactionOutputProvider refactor in progress 2016-12-10 19:47:02 +01:00
Svyatoslav Nikolsky 4f7d44691a Merge branch 'master' into rpc_blockchain 2016-12-10 15:52:12 +03:00
Svyatoslav Nikolsky 416ac097b5 started getblock iplementation 2016-12-10 13:50:07 +03:00
debris 398d5d5836 fixes after merge with master 2016-12-09 19:06:33 +01:00
debris 9d0afa4592 Merge branch 'master' of github.com:ethcore/parity-bitcoin into indexed_block 2016-12-09 19:01:42 +01:00
debris 0811e876c0 finish indexed block refactor 2016-12-09 16:24:06 +01:00
Svyatoslav Nikolsky 038aba6553 fixed tests compilation 2016-12-09 18:03:42 +03:00
debris df65e29658 refactor indexed_block, avoid unnecessery copying 2016-12-09 15:44:34 +01:00
Svyatoslav Nikolsky b564770037 implemented get_block_template in local_node 2016-12-09 17:05:53 +03:00
Marek Kotewicz db0e4f3bd1 Merge pull request #267 from ethcore/sync_sendrawtransaction
`sendrawtransaction` RPC method implemented
2016-12-09 12:14:27 +01:00
Svyatoslav Nikolsky ef50b763d8 blocks_writer_append_to_existing_db 2016-12-08 22:20:36 +03:00
Svyatoslav Nikolsky a5e33c7a26 support blocks import to existing db 2016-12-08 22:14:32 +03:00
Svyatoslav Nikolsky f71fdfc556 fixed tests 2016-12-08 18:39:44 +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
Svyatoslav Nikolsky f6ca4ca61c final call for blocks 2016-12-06 08:57:50 +03:00
Svyatoslav Nikolsky f3be8450e6 forget unanswered blocks 2016-12-06 08:44:50 +03:00
debris 8a54d9168f fix tests 2016-12-05 16:03:13 +01:00
debris 2409eb293c share one chain verifier 2016-12-05 15:20:16 +01:00
Svyatoslav Nikolsky fa08d5b5f1 fixed compilation 2016-12-05 11:00:27 +03:00
Svyatoslav Nikolsky c9605c05bc config flag for passing regtests 2016-12-05 10:13:22 +03:00
Svyatoslav Nikolsky 2b1fecb286 close connection when block verification failed with error 2016-12-02 18:12:20 +03:00
Svyatoslav Nikolsky 74cd2569bd fixed panic after verification fail during sync 2016-12-02 15:12:00 +03:00
Svyatoslav Nikolsky 563997e935 no double-spend transactions in mempool 2016-12-02 14:45:14 +03:00
Nikolay Volf 1ddc962c42 Merge pull request #246 from ethcore/sync_ask_fast_peers
Dealing with slow peers + empty verification queue
2016-12-02 12:32:38 +03:00
Nikolay Volf 76aeb1f0ba Regtests on the CI (#244)
* submodule and test script

* proper grep pattern

* travis config

* build in advance

* remove error! and fix grep

* use intermediate file

* use package with java, not jdk

* use minimum cache

* add summary delimter

* fixed regtests broken in 9e53289

* clear output

* remove old submodule

* updating tool

* remove from .gitmodules also

* more convinient log output

* travis fold labels
2016-12-02 10:27:48 +01:00
Svyatoslav Nikolsky daacd3c710 fixed doc 2016-12-02 12:21:01 +03:00
Svyatoslav Nikolsky a714f9c172 dealing with slow peers + empty verification queue 2016-12-02 11:49:57 +03:00
Svyatoslav Nikolsky a0c5c2bbcc test_message_block_headers_provider 2016-12-01 15:08:13 +03:00
Svyatoslav Nikolsky fac3864f45 connected sync to verify_block_header 2016-12-01 14:55:21 +03:00
Svyatoslav Nikolsky 9e53289b5a fixing sync TODOs 2016-12-01 11:22:41 +03:00
Svyatoslav Nikolsky 45e148781e fixed test 2016-11-30 21:28:33 +03:00
Svyatoslav Nikolsky 464a3b74a5 regtests last sync fixes 2016-11-30 20:58:33 +03:00
NikVolf d79b2835aa fix warnings 2016-11-30 19:21:21 +03:00
NikVolf 51fe9b6e01 output proxy 2016-11-30 17:19:23 +03:00
Svyatoslav Nikolsky b160f85e5f Merge branch 'master' into sync_connect_transaction_verifier 2016-11-30 16:40:07 +03:00
Svyatoslav Nikolsky 2fa409dc4a sync is now connected to transactions verifier 2016-11-30 16:38:44 +03:00
debris 03f91bfad8 Merge branch 'master' of github.com:ethcore/parity-bitcoin into sync_block_writer_up 2016-11-30 13:55:29 +01:00
debris a969a04127 small fixes for importing unordered blocks 2016-11-30 13:55:03 +01:00
Svyatoslav Nikolsky 4c85a3c3b4 actually schedule verification tasks for decanonized transactions 2016-11-30 14:29:19 +03:00
debris 4713c1797c Merge branch 'master' of github.com:ethcore/parity-bitcoin into sync_block_writer_up 2016-11-30 11:51:26 +01:00
Svyatoslav Nikolsky 1b7850e31e serve compact blocks requests in getdata 2016-11-30 13:06:43 +03:00
Svyatoslav Nikolsky 3daad00dc3 removed debug println 2016-11-30 12:21:53 +03:00
Svyatoslav Nikolsky 9a6c5c8579 support semi-unordered blocks import 2016-11-30 12:16:29 +03:00
Svyatoslav Nikolsky bd07583fb9 Merge pull request #223 from ethcore/sync_small_todos
Fixing sync TODOs
2016-11-29 21:18:13 +03:00
Svyatoslav Nikolsky a967e7960c fixing sync TODOs 2016-11-29 19:39:00 +03:00
debris 331d50fca8 added unreachable!() 2016-11-29 17:24:44 +01:00