Commit Graph

1515 Commits

Author SHA1 Message Date
Neil
265751c3fd
Merge pull request #572 from erasmospunk/struct-refactoring
Struct refactoring
2018-08-14 08:54:32 +09:00
Neil Booth
33535ae325 Add test for BCH electrum header 2018-08-14 08:53:38 +09:00
John L. Jegutanis
47d9fb4b30 Use compiled structs and some code cleanup 2018-08-14 01:32:40 +02:00
John L. Jegutanis
31dbbe0ba5 Use precompiled structs for header parsing 2018-08-14 01:32:36 +02:00
John L. Jegutanis
5a01312454 Add big endian precompiled structs for 16 & 32 uints 2018-08-14 01:20:26 +02:00
John L. Jegutanis
fa0a58a280 Rename struct pack/unpack to reflect endianess 2018-08-14 01:20:26 +02:00
ghost43
ea627db837 fix block_header_13 (#571) 2018-08-14 00:01:31 +09:00
John L. Jegutanis
00815442a9 Rename is_coinbase to is_generation and make it efficient (#569) 2018-08-12 20:43:08 +09:00
John L. Jegutanis
05c9e6b38f Pivx support (#568)
* Correct function doc string

* Add PIVX support
2018-08-12 07:50:32 +09:00
Neil Booth
8d745f0483 Prepare 1.8.3 2018-08-11 18:38:13 +09:00
Neil Booth
785f302149 Note 1.5 protocol as draft 2018-08-11 18:38:13 +09:00
Neil Booth
9e5b939dc6 Merge branch 'devel' 2018-08-11 18:21:22 +09:00
Neil Booth
878976dbee Merge branch 'mempool-tests' into devel 2018-08-11 16:19:12 +09:00
Neil Booth
39f97cef90 Add comprehensive mempool tests 2018-08-11 16:15:55 +09:00
Neil Booth
279ca32e3a Break out some abstractions in coins.py 2018-08-11 16:15:55 +09:00
Neil Booth
f781d74ed5 Take sleep intervals as arguments
- make histogram refresh its own task
- make _update_histogram take bin_size argument
- synchronize the mempool refresh and hisogram calc with a lock
2018-08-11 16:15:55 +09:00
Neil Booth
f20fe9d7a5 Tweak mempool logging 2018-08-11 16:15:55 +09:00
Neil Booth
564449e223 Introduce MemPoolTxSummary 2018-08-11 16:15:55 +09:00
Neil Booth
90dcf87536 Create MemPoolAPI and use it 2018-08-11 16:15:55 +09:00
Neil Booth
4329724b98 Implement TX serialization
This will be used in other tests
2018-08-11 16:15:34 +09:00
Neil Booth
8b34de53f9 Add some utility functions and tests 2018-08-11 16:15:34 +09:00
Neil Booth
8861ebac8f Placate pycodestyle 2018-08-11 16:15:34 +09:00
Neil Booth
2304e943d4 Add pytest-asyncio to travis 2018-08-11 16:15:34 +09:00
Neil Booth
54e8b032d1 Implement TX serialization
This will be used in other tests
2018-08-10 18:20:43 +09:00
Neil Booth
450eec89fb Add some utility functions and tests 2018-08-10 18:20:43 +09:00
Neil Booth
0bbfb0b2e7 Implement TX serialization
This will be used in other tests
2018-08-10 17:56:24 +09:00
Neil Booth
471f50787f Add some utility functions and tests 2018-08-10 17:56:24 +09:00
Neil Booth
01806501e4 Placate pycodestyle 2018-08-10 15:39:29 +09:00
Neil Booth
b4b378ed31 Add pytest-asyncio to travis 2018-08-10 15:22:38 +09:00
Neil Booth
eeb76b0f3f Merge branch 'separate-db-bp' into devel 2018-08-10 11:48:54 +09:00
Neil Booth
635ffed42b flush_data() must be called with the lock held 2018-08-10 11:41:02 +09:00
Neil Booth
967b2de60d Separate the block processor from the DB
- BP no longer inherits from the DB, but is passed it
2018-08-10 11:10:13 +09:00
Neil Booth
27b31746f8 Remove remaining flush-related logic to db.py 2018-08-10 11:10:13 +09:00
Neil Booth
a50d17c5b9 Clear data by reference as it's flushed 2018-08-10 11:10:13 +09:00
Neil Booth
dc445e2a54 Move catch-up stats to db.py 2018-08-10 11:10:13 +09:00
Neil Booth
891730e78f Move flush_backup() to db.py 2018-08-10 11:10:13 +09:00
Neil Booth
42c3a308db Move to flush_dbs in db.py 2018-08-10 11:10:13 +09:00
Neil Booth
d3f9ba386c Move flush_state() to db.py 2018-08-10 11:10:13 +09:00
Neil Booth
d1510b1192 Move bulk of UTXO flush logic to db.py 2018-08-10 11:10:13 +09:00
Neil Booth
9515e1a1e4 Improve flow for opening DBs 2018-08-10 11:10:13 +09:00
Neil Booth
aac84ade75 Sleep at shutdown 2018-08-10 11:10:13 +09:00
Neil Booth
c9631f3438 Move history flushing to DB.flush_history() 2018-08-10 11:10:13 +09:00
Neil Booth
11c6c919a6 Move fs_flush to db.py and merge with fs_update 2018-08-10 11:10:13 +09:00
Neil Booth
d87c3dedcf Move assert_flushed DB logic to db.py 2018-08-10 11:10:13 +09:00
Neil Booth
70319bb22d Merge branch 'master' into devel 2018-08-10 11:06:49 +09:00
Neil Booth
dd67b57c30 Catch and log failures in the main peers task
Closes #565
2018-08-10 09:52:49 +09:00
Neil Booth
afae1b4a42 Fix rare race condition
Closes #567
2018-08-10 09:20:56 +09:00
Neil Booth
83813ff1ac Extend SUPPRESS_MESSAGE_REGEX
Fixes #521
2018-08-10 06:25:27 +09:00
Neil Booth
7f28677549 Merge branch 'master' into devel 2018-08-09 18:19:16 +09:00
Neil Booth
9dff85c027 Prepare 1.8.2 2018-08-09 18:16:18 +09:00