Commit Graph

229 Commits

Author SHA1 Message Date
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
debris 961e4361cf pow validation in progress 2016-11-23 04:10:11 +01:00
NikVolf 7f5e5fb036 threshold to nbits 2016-11-23 00:13:51 +03:00
NikVolf 34a582b8e9 expected nbits method & support 2016-11-22 18:26:00 +03:00
NikVolf e6c182a904 nbits max check 2016-11-22 12:00:38 +03:00
NikVolf eb24c5aff6 coinbase verification at index > 0 2016-11-22 03:27:37 +03:00
NikVolf fff3c29e6d this is always wrong way first 2016-11-22 03:18:15 +03:00
NikVolf b2798841de refactored sigop counter 2016-11-22 02:50:27 +03:00
Nikolay Volf 40775cae82 Merge pull request #161 from ethcore/fixed_b41_b42_acceptence
b41 and b42 are correctly validated
2016-11-21 19:39:33 +03:00
debris edfc13f0ba fixed interpreter OP_DUP operation, converting integers to hashes, added more traces 2016-11-21 17:05:42 +01:00
NikVolf 8e975669c0 suppress trait that is not used so far 2016-11-21 16:08:40 +03:00
debris 6fa1ce326a Merge branch 'master' of github.com:ethcore/parity-bitcoin into test_scripts 2016-11-18 00:46:06 +01:00
debris 0c4a346c00 fixed enumerate skip order 2016-11-18 00:16:50 +01:00
NikVolf b9793e06dd refactor verification 2016-11-17 21:26:17 +03:00
debris 2fd794be97 applied clippy suggestions to make code more idiomatic 2016-11-16 18:30:30 +01:00
NikVolf cbd4227f35 use reversed hashes in logging 2016-11-16 17:49:36 +03:00
Svyatoslav Nikolsky 756bb10fcc Support BIP16 2016-11-16 11:52:00 +03:00
NikVolf f44bec4a57 don't use accurate sigop counter for regular scripts 2016-11-16 00:37:27 +03:00
NikVolf 0ecb184a31 redundant line 2016-11-15 23:46:22 +03:00
NikVolf 92f8ff7982 fix ge to g 2016-11-15 23:44:51 +03:00
NikVolf 2e7c535a7f redundant line 2016-11-15 23:23:30 +03:00
NikVolf 231604ea49 remove print 2016-11-15 23:23:01 +03:00
NikVolf 06341c16eb Merge branch 'master' into verification 2016-11-15 23:20:24 +03:00
NikVolf 9cbf68a8ad todo 2016-11-15 23:03:52 +03:00
NikVolf a9e0f8e318 block size 2016-11-15 23:01:45 +03:00
NikVolf dedad2de55 coinbase signature length 2-100 enforce 2016-11-15 22:39:56 +03:00
Svyatoslav Nikolsky e33aa81674 changed verify_clocktimeverify 2016-11-15 17:24:33 +03:00
NikVolf 14e043ce23 Merge branch 'master' into support_bip65 2016-11-15 14:44:01 +03:00
Svyatoslav Nikolsky b152c8178d introduced ConsensusParams + BIP65 support 2016-11-15 14:00:46 +03:00
NikVolf 7d6ee29e6b strict greater there 2016-11-15 13:23:49 +03:00
NikVolf 584ec20e1f count coinbase outputs also 2016-11-15 12:57:58 +03:00
NikVolf b7014f4ea5 invalid output script counts as 1 2016-11-15 12:37:20 +03:00
NikVolf efd6c7a143 refactoring of opcounting 2016-11-15 00:13:07 +03:00
NikVolf 3ad579ea29 proper tx sigopcounting 2016-11-14 23:56:43 +03:00
NikVolf 5fcba908f4 transaction & block sigops amount check 2016-11-14 21:18:30 +03:00
NikVolf b9a0cc9453 same block lookup & tests 2016-11-11 13:36:11 +03:00
NikVolf 0526de873e non-coinbase test 2016-11-11 11:45:40 +03:00
NikVolf 528c639c20 more tests 2016-11-11 00:27:25 +03:00
NikVolf b8f38ad121 proper tests and fixes 2016-11-11 00:15:12 +03:00
NikVolf 8aff04e306 ignore test for a while 2016-11-10 20:34:05 +03:00
NikVolf 56b7865f1f proper tests layout 2016-11-10 20:31:25 +03:00
NikVolf cb298ebe8e failing (so far) test for coinbase maturity check 2016-11-10 20:12:03 +03:00
NikVolf 1a553e2caf some verifications 2016-11-10 19:19:47 +03:00
NikVolf a77c986e11 test storage proper projection 2016-11-10 18:29:54 +03:00
Marek Kotewicz 1f4cf7e443 fixed clippy lints for miner, sync, test-data and verification (#103)
* fixed clippy lints for miner, sync, test-data and verification

* make verification check_nbtis more idiomatic
2016-11-09 11:36:52 +01:00
NikVolf 6b9173daff change lock order 2016-10-31 23:33:28 +03:00
NikVolf 59b4d10e62 some future todos 2016-10-31 21:07:28 +03:00
NikVolf 20e4ddd187 some tests 2016-10-31 21:02:34 +03:00
NikVolf 64d1a4c80c -1 here 2016-10-31 20:40:23 +03:00
NikVolf 10f7fe174c stalled verification until earlier blocks are not processed 2016-10-31 20:35:36 +03:00
NikVolf 5a20b9fe36 inconclusive result in transaction verification 2016-10-31 15:46:10 +03:00
Svyatoslav Nikolsky 89ef375467 fixed verification of transactions, which depend on outputs of transactions of the same block (#47) 2016-10-27 15:19:36 +02:00
NikVolf fa4994941e fix typo 2016-10-25 15:54:09 +03:00
NikVolf 387f9bc429 toh256 -> represeth256 2016-10-25 15:34:06 +03:00
NikVolf 108b4b6383 h256 represented entities 2016-10-24 18:18:02 +03:00
NikVolf 7ebd4c947a test storage to db 2016-10-24 17:08:25 +03:00
NikVolf c37589f38e first tx test 2016-10-24 12:30:39 +03:00
NikVolf 681ad5984b merkle root 2016-10-24 11:58:35 +03:00
NikVolf d1c83bc724 transaction verification 2016-10-24 02:34:32 +03:00
NikVolf 1176c62628 fix warnings 2016-10-23 22:22:02 +03:00
NikVolf 567facbe29 utils mod 2016-10-23 21:31:21 +03:00
NikVolf 903d2b8878 age & coinbase 2016-10-23 20:00:47 +03:00
NikVolf a5fb6e757f nbits check 2016-10-23 19:13:59 +03:00
NikVolf 5b1d94413f flush work 2016-10-23 17:41:54 +03:00
NikVolf 44213d1170 iteration test layout 2016-10-21 21:26:24 +03:00
NikVolf 2a98795485 test storage -a 2016-10-21 19:46:00 +03:00
NikVolf 526f2f023e test storage stub 2016-10-21 19:31:33 +03:00
NikVolf e3558fc269 chain verifier stub 2016-10-21 18:23:18 +03:00
NikVolf ebdb45409b processing status 2016-10-19 17:03:57 +03:00
NikVolf c3d854d848 pop & test 2016-10-19 15:02:28 +03:00
NikVolf cb7766ddd6 more tests 2016-10-19 14:39:58 +03:00
NikVolf be5801cb27 fix warnings 2016-10-18 17:54:53 +03:00
NikVolf 564f04011a test 2016-10-18 17:49:53 +03:00
NikVolf 08da5b831e block status 2016-10-18 17:39:34 +03:00
NikVolf 891f5e8e3f basic processing 2016-10-18 16:59:59 +03:00
NikVolf e50402fb14 basic processing 2016-10-18 16:53:59 +03:00
NikVolf 77fe3bf887 grammar fix 2016-10-18 10:41:41 +03:00
NikVolf 8e2bcbc788 errors std 2016-10-18 10:18:51 +03:00
NikVolf c650cfbe76 public spec 2016-10-18 10:13:02 +03:00
NikVolf 2991cc6193 crate layout 2016-10-17 22:27:45 +03:00