Commit Graph

1537 Commits

Author SHA1 Message Date
Neil Booth
f0a2f128dc Merge branch 'devel' 2018-08-14 12:58:52 +09:00
Neil Booth
c5bb61fed2 Merge branch 'daemon-tests' into devel 2018-08-14 12:44:18 +09:00
Neil Booth
374ec8f26c Add daemon tests 2018-08-14 12:43:33 +09:00
Neil Booth
6950fca7cb Make WarmingUpError file-scope 2018-08-14 11:35:08 +09:00
Neil Booth
1b618d19d4 Remove dead code
At least, I believe it is
2018-08-14 11:35:08 +09:00
Neil Booth
ab0e9eb123 Improve retry logic 2018-08-14 11:35:08 +09:00
Neil Booth
b087d1492b Controller tests daemon connectivity and auth first
Server base doesn't need a task group
2018-08-14 11:35:08 +09:00
Neil Booth
ab2691563f Improve daemon error handling 2018-08-14 11:35:08 +09:00
Neil Booth
3f69595fbd Improve estimatefee API 2018-08-14 11:35:08 +09:00
Neil Booth
92e8cff770 Improve daemon API for broadcasting a tx 2018-08-14 11:35:08 +09:00
Neil Booth
61711fcfd7 Clean up daemon URL handling and interface 2018-08-14 11:35:08 +09:00
Neil Booth
08347fe275 Simplify _is_rpc_available 2018-08-14 11:35:08 +09:00
Neil Booth
4e40e26ac4 Move from .format to f'' strings 2018-08-14 11:35:08 +09:00
Neil Booth
6dafbfd455 Make down and last_error_time locals 2018-08-14 11:35:08 +09:00
Neil Booth
9ebd2e86e8 Use a counter for ID counting 2018-08-14 11:35:08 +09:00
Neil Booth
13a8b62d8c Daemon constructor passed coin and URLs directly 2018-08-14 11:35:08 +09:00
Neil Booth
a108817dd4 Merge branch 'master' into devel 2018-08-14 11:34:18 +09:00
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
e8a025e428 Merge branch 'better-notifications' into devel 2018-08-11 22:16:49 +09:00
Neil Booth
5524bd3daf Session manager coordinates header subscriptions
- caches both raw and deserialized headers
- session manager holds the notified height, not each session
2018-08-11 22:03:54 +09:00
Neil Booth
429c6264f2 Move raw_header and electrum_header to session manager 2018-08-11 21:11:19 +09:00
Neil Booth
f0f5aa3ee7 Get rid of chain state 2018-08-11 20:46:39 +09:00
Neil Booth
c69a740dda Tag as 1.8.4-dev 2018-08-11 19:00:49 +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