Commit Graph

57 Commits

Author SHA1 Message Date
Svyatoslav Nikolsky be53bbdc3e added some more tests 2016-12-14 14:22:02 +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
Marek Kotewicz 591a642121 Merge pull request #316 from ethcore/few_optimizations_with_borrow_and_as_ref
few optimizations with Borrow and AsRef
2016-12-13 14:11:30 +01:00
debris 6ecdfd78c5 few optimizations with Borrow and AsRef 2016-12-13 13:33:06 +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 64a3d4d080 verification refactor almost done 2016-12-12 12:04:19 +01:00
debris 0df90a85bd use rayon for parallel verification 2016-12-11 17:42:26 +01:00
debris 06971497ee Merge branch 'master' into block_assembler_tests 2016-12-10 23:05:14 +01:00
debris f669a27d06 PreviousTransactionOutputProvider refactor in progress 2016-12-10 19:47:02 +01:00
debris 5171ce9585 Merge branch 'generic_as_substore' into block_assembler_tests 2016-12-10 14:06:46 +01:00
debris 087c314fd1 AsSubstore trait 2016-12-10 14:00:34 +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 ee07970e19 BlockAssembler uses FittingTransactionsIterator 2016-12-10 11:57:34 +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 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
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 cc0ff97ba5 configurable BlockAssembler 2016-12-09 11:41:11 +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 fc41aba63d fixed a couple of TODOs in block assembler 2016-12-08 20:33:10 +01:00
debris f5b1d95d2d block assembler in progress 2016-12-08 16:45:37 +01:00
debris 986baa8685 MemoryPoolIterator 2016-12-08 11:47:38 +01:00
Svyatoslav Nikolsky 14cde7adf9 removed diagnostic println 2016-12-02 14:51:32 +03:00
Svyatoslav Nikolsky 83939e1380 removed debugging comment 2016-12-02 14:49:50 +03:00
Svyatoslav Nikolsky 563997e935 no double-spend transactions in mempool 2016-12-02 14:45:14 +03:00
NikVolf d79b2835aa fix warnings 2016-11-30 19:21:21 +03:00
NikVolf 51fe9b6e01 output proxy 2016-11-30 17:19:23 +03:00
debris 440dae5a8e use Vec::get instead if iter().nth 2016-11-29 16:19:54 +01:00
debris 65664556b6 initial work on b82, abstraction for verify_transaction, use PreviousTransactionOutputProvider 2016-11-29 14:40:55 +01:00
Svyatoslav Nikolsky 08330f635e serve transactions requests 2016-11-28 18:33:24 +03:00
Svyatoslav Nikolsky aff754dc86 replaced fold() with sum() 2016-11-25 19:17:08 +03:00
Svyatoslav Nikolsky e3f0878283 transaction_fee_rate now takes &TransactionProvider 2016-11-25 10:39:56 +03:00
Svyatoslav Nikolsky eb23a7d901 started work on feefilter message 2016-11-25 09:07:29 +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
debris f7a73f6520 fixed clippy lints for db, keys, miner, and script 2016-11-08 21:01:36 +01:00
Svyatoslav Nikolsky 3319e5e1f5 serving mempool request 2016-11-02 15:18:52 +03:00
Marek Kotewicz 02816aaa4e addr protocol && start of sync protocol (#25)
* p2p <-> sync interfaces proposal

* updated with example

* send errors will be handled in p2p module => no need to return to the sync

* poc of outbound sync connection

* simplified send_to_peer

* context has cpu pool and enent loop handles

* on_message won't return ProtocolAction anymore

* session initialized sync protocol, remove retain cycles on P2P::drop

* removed ProtocolAction

* uncommented ping protocol

* node_table sorts nodes also by recently used time

* send getaddr on connect

* fixed node_table insert, added insert_many

* addr protocol

* added TODO: remove
2016-10-24 10:42:11 +03:00
Svyatoslav Nikolsky 403971b314 renamed as_input to to_input 2016-10-20 18:12:32 +03:00
Svyatoslav Nikolsky e03cf06a16 test_data::ChainBuilder for generating transactions for tests 2016-10-20 17:21:28 +03:00
Svyatoslav Nikolsky 8c71468ab9 Merge branch 'master' into mempool 2016-10-19 17:15:34 +03:00
Marek Kotewicz 92ede43e16 Merge pull request #16 from ethcore/mempool_heapsize
Implemented HeapSizeOf trait for MemoryPool
2016-10-19 15:43:30 +02:00
Svyatoslav Nikolsky 535dca320a get rid of macros in MemoryPool 2016-10-19 15:02:13 +03:00
Svyatoslav Nikolsky efdd30da17 implemented HeapSizeOf for MemoryPool 2016-10-19 13:07:11 +03:00
Svyatoslav Nikolsky f5205fde92 removed bench_ prefix from benchmarks functions 2016-10-19 12:46:40 +03:00
Svyatoslav Nikolsky 43a71193a0 added several benchmarks for MemoryPool 2016-10-18 19:54:55 +03:00