Commit Graph

229 Commits

Author SHA1 Message Date
Svyatoslav Nikolsky e93e5ef35a propagate ConsensusParams with ConsensusFork 2017-08-08 09:52:54 +03:00
debris bdf62b7bb4 updated dependencies 2017-06-06 12:18:41 +02:00
debris f99c369e87 block finality check uses median time past instead of block time after csv is activated (bip113) 2017-05-04 10:32:54 +02:00
debris 9a389f9746 bip9, bip112, bip113 2017-05-03 14:34:02 +02:00
debris 95255d0f58 versionbits in progress 2017-04-27 15:58:16 +02:00
debris 5f7b42c80f versionbits in progress 2017-04-25 19:09:02 +02:00
debris 09f25c4f2f db refactor finished 2017-04-21 15:26:19 +02:00
debris 9a96168869 tests and fix for block coinbase script validation 2017-04-11 13:23:53 +08:00
debris abb4771770 Merge branch 'consolidate' into bip90 2017-04-09 14:12:05 +08:00
debris 0155c6e4ef revert is_double_spent -> is_spent 2017-04-09 14:10:40 +08:00
debris 178c3e565a fixed bip34 2017-04-08 21:52:30 +07:00
debris 195b8d8b6d fixed bip90 2017-04-08 21:17:58 +07:00
debris 8242db0428 Merge branch 'consolidate' into bip90 2017-04-08 21:04:02 +07:00
debris eef94cc65f fixed bip66 2017-04-08 20:59:10 +07: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 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 98a82ea779 updated futures and rayon crate 2017-03-20 08:37:28 +01:00
NikVolf b9dd932983 align with crate 2016-12-26 16:00:44 +03:00
debris a87ddbc2fc erge branch 'master' of github.com:ethcore/parity-bitcoin into docs 2016-12-15 16:07:51 +01:00
debris 721a31577b cleanup docs 2016-12-15 16:03:59 +01:00
debris f1f68f497b P2shCoinbaseTransactionBuilder && Magic::Unitest && removed skip_pow from chain_verification 2016-12-15 14:27:36 +01:00
NikVolf 57858a059a verbose difficulty error 2016-12-14 15:43:10 +01:00
NikVolf 66ab6f3727 Merge branch 'master' into fix-overflow 2016-12-14 14:11:49 +01:00
NikVolf 8ba14c028c fix hardcorded error 2016-12-14 13:27:02 +01:00
NikVolf 9ebbb252bd trailing comma 2016-12-14 13:25:24 +01:00
NikVolf 91206defc1 proper counting block fees and rewards 2016-12-14 13:20:09 +01:00
Svyatoslav Nikolsky a0193c024d Merge pull request #327 from ethcore/verification-bench
Verification benchmark
2016-12-14 15:17:45 +03:00
NikVolf 9fc5583fa3 Merge branch 'master' into fix-overflow 2016-12-14 13:08:45 +01:00
NikVolf c6858c64ae wip 2016-12-14 13:08:19 +01:00
Svyatoslav Nikolsky ab1e9311ff Merge pull request #329 from ethcore/verification-overflow
Move overflow checks into separate error type
2016-12-14 11:03:52 +03:00
NikVolf 4fdf56ccf4 move overflow into separate error type 2016-12-13 23:27:12 +01:00
NikVolf 5017956dbc move overflow into separate error type 2016-12-13 23:26:39 +01:00
NikVolf c0e134a36e verification of 1000-transaction blocks 2016-12-13 22:01:15 +01:00
debris 7baaa47b8c import is hashing blocks when reading, added --skip-verification flag 2016-12-13 20:49:41 +01:00
debris 8d7a45f2ca TransactionOutputGenerator always creates spendable transactions 2016-12-13 12:41:27 +01:00
debris d0c480565d applying suggestions from review and adding comments 2016-12-13 10:50:56 +01:00
debris c5bb32f931 fixed median_timestamp function 2016-12-12 23:31:17 +01:00
debris 0f7348e139 fixes after merge with master 2016-12-12 15:49:32 +01:00
debris 7d7498b35c add logs to verification 2016-12-12 14:32:47 +01: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
debris 552b7b2468 Merge branch 'master' of github.com:ethcore/parity-bitcoin into block_assembler_tests 2016-12-12 10:33:24 +01:00
debris a4e64c0fec TransactionEval rule 2016-12-11 23:26:22 +01:00
debris 74817084ab memory pool transaction acceptor 2016-12-11 23:00:42 +01:00
debris 1d2e0ce495 TransactionAcceptor 2016-12-11 22:31:10 +01:00
NikVolf 4d178961f2 using background writes 2016-12-11 20:15:44 +01:00
debris 95c2fa7d8d HeaderAcceptor finished 2016-12-11 19:10:00 +01:00
debris 0df90a85bd use rayon for parallel verification 2016-12-11 17:42:26 +01:00
debris f8c71c6c37 moved verification Canon structs to their own file 2016-12-11 16:12:28 +01:00
debris b17e466af8 ChainVerifier refactor in progress 2016-12-11 16:03:16 +01:00
debris f1475696c8 ChainVerifier refactor in progress 2016-12-11 04:01:48 +01:00
debris 06971497ee Merge branch 'master' into block_assembler_tests 2016-12-10 23:05:14 +01: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
debris bfd236a632 fixed block assembler iterator when one of previous transactions was ignored, iterator is also generic over entries 2016-12-10 12:24:46 +01:00
debris f76ab12e06 Merge branch 'master' of github.com:ethcore/parity-bitcoin into indexed_block 2016-12-09 19:44:14 +01:00
Marek Kotewicz 9a3c8de606 Merge pull request #273 from ethcore/tx-cache
Transaction & meta lru cache (WiP)
2016-12-09 19:40:43 +01:00
NikVolf dc6b874ab7 fix bug with work distribution 2016-12-09 18:47:01 +01:00
NikVolf e707fd73cb update review 2016-12-09 17:49:02 +01:00
debris df65e29658 refactor indexed_block, avoid unnecessery copying 2016-12-09 15:44:34 +01:00
debris 033d423686 verification share some constants with miner module, block assemlber takes into account size of block header 2016-12-09 12:38:18 +01:00
debris 3ca513d88f finished block assembler 2016-12-09 11:40:42 +01:00
debris 3080ade4bd sigops counting separated to its own module 2016-12-09 11:16:50 +01:00
debris 5a1041f72a change nbits: u32 -> bits: Compact, miner uses verification 2016-12-08 21:17:28 +01:00
debris f5b1d95d2d block assembler in progress 2016-12-08 16:45:37 +01:00
debris 9f17f8a525 fixed difficulty calculcation on testnet 2016-12-05 13:50:08 +01:00
debris b3c9c30edb verify work and skip timestamp verification on testnet 2016-12-02 12:01:30 +01:00
Svyatoslav Nikolsky fac3864f45 connected sync to verify_block_header 2016-12-01 14:55:21 +03:00
Svyatoslav Nikolsky 11e1f8d5c8 BlockHeaderProvider 2016-12-01 14:04:40 +03:00
Svyatoslav Nikolsky bd3bea760d verify_block_header 2016-12-01 13:44:48 +03:00
NikVolf 9416c28f76 fix doc comment 2016-11-30 17:20:59 +03:00
NikVolf 51fe9b6e01 output proxy 2016-11-30 17:19:23 +03:00
debris c7983a57ac make consensus params a property of verifier 2016-11-29 17:06:15 +01:00
debris 7270bba43c verification flags 2016-11-29 17:03:59 +01:00
debris 65664556b6 initial work on b82, abstraction for verify_transaction, use PreviousTransactionOutputProvider 2016-11-29 14:40:55 +01:00
NikVolf a57271c8f9 parallel threshold 2016-11-29 15:24:02 +03:00
NikVolf a17c2fe82a using task-splitter in block 2016-11-29 14:07:11 +03:00
NikVolf cfaa6fadbf fix warnings 2016-11-28 16:40:22 +03:00
NikVolf 24803433b3 Merge branch 'master' into indexed-blocks 2016-11-28 15:32:56 +03:00
debris b877b1398a Merge branch 'master' of github.com:ethcore/parity-bitcoin into sigops 2016-11-27 22:38:40 +01:00
debris e839b8b499 sigops_count fixes 2016-11-27 22:38:30 +01:00
NikVolf 67e64a5391 verificatino uses indexed blokcs 2016-11-27 23:49:51 +03:00
NikVolf 84e322735c fix typo 2016-11-27 19:19:31 +03:00
debris 42ce57e6a8 fixed bip30 tests, tx finality reg tests passing 2016-11-27 15:05:49 +01:00
debris 9d0d251a37 few functions are more idiomatic, initial support for bip30 2016-11-26 15:05:54 +01:00
debris 847cb36c6f chain verifier does not have hardcoded network constants 2016-11-25 18:38:21 +01:00
NikVolf 2cdf526ee9 using sorted list of timestamps to evaluate median 2016-11-25 16:54:56 +03:00
NikVolf c4ab5e70ac use 11 blocks, not 10 2016-11-25 16:29:37 +03:00
NikVolf 57ce99c5ce use thread static instead of honest timestamps 2016-11-25 15:13:38 +03:00
NikVolf a4de321cc7 median time verfication might be unordered? 2016-11-25 14:54:22 +03:00
NikVolf 9f4469e480 fix timestamp generation and check 2016-11-25 14:40:07 +03:00
debris e167b3350a few more simplifications 2016-11-25 02:07:46 +01:00
debris 3143ff75d0 simplified few more lines 2016-11-25 02:05:49 +01:00
debris 40682073ab more idiomatic enumeration over transactions 2016-11-25 01:58:51 +01:00
debris 98b514b256 median timestamp 2016-11-25 01:07:38 +01:00
debris 355306e747 retarget 2016-11-24 23:33:51 +01:00
debris 43dcd741d1 Merge branch 'verification-target' of github.com:ethcore/parity-bitcoin into pow_validation 2016-11-23 10:30:39 +01:00