Commit Graph

345 Commits

Author SHA1 Message Date
Svyatoslav Nikolsky 7e47bd3b28 flush 2018-05-18 12:04:36 +03:00
Wei Tang d994feabbd
Merge pull request #501 from paritytech/bch_monolith_activation
Bitcoin Cash: monolith activation
2018-05-11 17:55:51 +08:00
Svyatoslav Nikolsky 70b08a7ca0 monolith_height -> monolith_time (until block# is known) 2018-04-26 10:49:03 +03:00
5chdn 8fbdf6021d
Rename ConsensusFork::NoFork to ::BitcoinCore 2018-04-16 12:25:35 +02:00
Aleksey Sidorov f120076cab Make parity-bitcoin usable for spv validation
- In this PR I extract from the crate `db` to the new `storage` crate all traits that is not specifically related to the concrete implementation of database. So I now can use `verification` crate without `rocksdb` dependency.

- Also I modify the `HeaderAcceptor` so that can be constructed without the private `BlockDeployments`.
2018-03-09 15:45:07 +03:00
Tomas Korcak b84f4dcc29
Update log 0.3 -> 0.4, env_logger 0.4 -> 0.5 2018-02-09 16:50:28 +01:00
Tomas Korcak 03a99de2f3
Update rand 0.3 -> 0.4 2018-02-05 15:25:36 +01:00
Svyatoslav Nikolsky c46b21ed7a BitcoinCash: hardcoded DAA HF height 2018-01-08 19:26:06 +03:00
Svyatoslav Nikolsky f019ad62ac fixed BoxFuture-related warnings 2017-12-27 15:33:05 +03:00
Svyatoslav Nikolsky d9e260c218 fixed warnings in tests 2017-11-06 18:33:24 +03:00
Svyatoslav Nikolsky 47bb353a05 fixed new compiler version warnings 2017-11-06 18:06:12 +03:00
Svyatoslav Nikolsky 261bd518fd BitcoinCash: difficulty adjustment fork 2017-11-02 17:02:16 +03:00
Svyatoslav Nikolsky 6db8c5e235 changed magic for BCH network 2017-11-01 12:30:15 +03:00
Svyatoslav Nikolsky 765680a521 use deployments cache in sync 2017-08-31 15:30:47 +03:00
Nikolay Volf d7035e235e Merge pull request #444 from paritytech/support_segwit
Support SegWit && SegWit2x
2017-08-28 15:37:33 +03:00
Svyatoslav Nikolsky 65e1ec068c moved inv_type out of the loop 2017-08-28 09:14:55 +03:00
Svyatoslav Nikolsky 6486cc77d6 only cleanup orphaned blocks when not in synchronization state 2017-08-24 16:33:37 +03:00
Svyatoslav Nikolsky b791b92414 add script error to TransactionError::Signature 2017-08-23 17:26:19 +03:00
Svyatoslav Nikolsky 062a68204c segwit: sync changes 2017-08-22 14:40:04 +03:00
Svyatoslav Nikolsky bda2277b71 segwit: added sync TODOs 2017-08-22 14:40:04 +03:00
Svyatoslav Nikolsky d4a191aec1 segwit: initial flush 2017-08-22 14:39:10 +03:00
Svyatoslav Nikolsky d2acccd1bc Merge pull request #434 from paritytech/support_uahf
Support Bitcoin Cash
2017-08-22 14:38:22 +03:00
Svyatoslav Nikolsky 2d801d504e fix panic in orphan transaction pool 2017-08-21 13:07:42 +03:00
Afri b2faa05ee7 Improved logging to console (#440)
* Remove redundant timestamp.

* Measure block processing in the logs

* Use tabs to separate status.

* Show updates every 1000 blocks.

* Reword some warnings.

* Add some color to log level.

* Reduce code redundancy

* No need to specify the type for blocks_speed

* Utilize the return value of match.

* Count all peers.

* Add whitespaces

* Remove another redundant timestamp

* One item per line

* Use tabs not spaces

* Remove unused import

* Remove redundant time imports

* Paint it black.
2017-08-17 22:45:36 +02:00
Svyatoslav Nikolsky b60d431314 lost files 2017-08-14 10:24:57 +03:00
Svyatoslav Nikolsky d59d67ecd5 Merge branch 'master' into support_uahf 2017-08-14 10:15:34 +03:00
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