Commit Graph

41 Commits

Author SHA1 Message Date
debris f6b7876de2 block builder builds blocks with version 4 2017-04-09 14:32:03 +08: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
Svyatoslav Nikolsky 07d4f00241 implemented blocknotify option 2017-01-10 11:58:55 +03:00
Svyatoslav Nikolsky fe97161092 when_transaction_double_spends_during_reorg 2017-01-09 17:35:15 +03:00
Svyatoslav Nikolsky 9dad2a3eec Merge branch 'master' into sync_v2 2016-12-23 16:19:07 +03:00
Svyatoslav Nikolsky d696dcfdaf sync_v2 2016-12-23 16:13:18 +03:00
debris 76453c956e TransactionBuilder can build transaction with desired size and number of sigops 2016-12-23 12:04:04 +01:00
debris f1f68f497b P2shCoinbaseTransactionBuilder && Magic::Unitest && removed skip_pow from chain_verification 2016-12-15 14:27:36 +01:00
Svyatoslav Nikolsky 945c19a8eb replace non-final transactions in mempool 2016-12-14 00:14:07 +03:00
debris 8d7a45f2ca TransactionOutputGenerator always creates spendable transactions 2016-12-13 12:41:27 +01:00
debris 5a1041f72a change nbits: u32 -> bits: Compact, miner uses verification 2016-12-08 21:17:28 +01:00
Svyatoslav Nikolsky 563997e935 no double-spend transactions in mempool 2016-12-02 14:45:14 +03:00
NikVolf 57ce99c5ce use thread static instead of honest timestamps 2016-11-25 15:13:38 +03:00
NikVolf 9f4469e480 fix timestamp generation and check 2016-11-25 14:40:07 +03:00
NikVolf 8e975669c0 suppress trait that is not used so far 2016-11-21 16:08:40 +03:00
NikVolf dedad2de55 coinbase signature length 2-100 enforce 2016-11-15 22:39:56 +03:00
NikVolf 5fcba908f4 transaction & block sigops amount check 2016-11-14 21:18:30 +03:00
Nikolay Volf b2b2f5b3d7 Merge pull request #107 from ethcore/coinbase-verify
Missing ordered checks for verification
2016-11-10 22:55:25 +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
Svyatoslav Nikolsky 9d6f09889e Merge branch 'master' into sync_as_bitcoind 2016-11-10 14:56:58 +03:00
Svyatoslav Nikolsky 78cae830cc headers-first sync 2016-11-10 14:50:00 +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 e7b111fec9 root public 2016-10-31 23:59:31 +03:00
NikVolf 6a73a4d132 example 2016-10-31 23:58:24 +03:00
NikVolf 6fa869d894 block hash builder 2016-10-31 23:50:49 +03:00
NikVolf 439f88ec82 meta another bug 2016-10-28 15:48:53 +03:00
NikVolf 41efa976b8 meta bug 2016-10-28 14:35:21 +03:00
NikVolf 2e370ac0e5 outputs builder 2016-10-28 01:12:18 +03:00
NikVolf aa7e116295 input builders 2016-10-28 00:46:23 +03:00
NikVolf 1ef314eb11 some block builder routines 2016-10-28 00:13:44 +03:00
NikVolf 3bf81c4cf3 disable transaction meta update 2016-10-27 16:16:05 +03:00
NikVolf a7fb6f85c4 failing test for block 221 2016-10-27 15:48:14 +03:00
Nikolay Volf fa4cd03713 Basic chain verifier (#28)
* redundant spaces

* chain verifier stub

* test storage stub

* test storage -a

* iteration test layout

* flush work

* nbits check

* age & coinbase

* utils mod

* fix warnings

* transaction verification

* merkle root

* first tx test

* use all

* test storage to db
2016-10-24 17:58:38 +03:00
Nikolay Volf eb6c0aefa7 Merge pull request #20 from ethcore/test_data_framework
test_data::ChainBuilder for generating transactions in tests
2016-10-20 18:23:11 +03:00
Svyatoslav Nikolsky 403971b314 renamed as_input to to_input 2016-10-20 18:12:32 +03:00
Svyatoslav Nikolsky bca0ccc96f removed redundant reexport 2016-10-20 17:53:35 +03:00
Svyatoslav Nikolsky c98d19eb81 lost file 2016-10-20 17:25:05 +03:00
Svyatoslav Nikolsky e03cf06a16 test_data::ChainBuilder for generating transactions for tests 2016-10-20 17:21:28 +03:00
NikVolf cb7766ddd6 more tests 2016-10-19 14:39:58 +03:00
NikVolf 729c920cc4 test data crate 2016-10-18 18:23:40 +03:00