Svyatoslav Nikolsky
f856e6bf01
uahf: return_replay_protection_works
2017-08-09 14:02:51 +03:00
Svyatoslav Nikolsky
6c5d431440
uahf: bitcoin_cash_req7 test
2017-08-09 10:33:14 +03:00
Svyatoslav Nikolsky
bcdc1e6813
uahf: REQ-7 difficulty adjustment
2017-08-08 18:33:55 +03:00
Svyatoslav Nikolsky
a769868139
uahf: SCRIPT_VERIFY_STRICTENC for post-HF transactions
2017-08-08 17:54:39 +03:00
Svyatoslav Nikolsky
5326a90243
uahf: forkid replay protection
2017-08-08 17:49:26 +03:00
Svyatoslav Nikolsky
d6b9445344
uahf: OP_RETURN replay protection
2017-08-08 14:41:00 +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
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
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