Neil Booth
365c217031
header_mc might be None
7 years ago
Neil Booth
68dbf9fad2
Tweak task handling so all errors are logged
7 years ago
Neil Booth
3fbd4992ce
Rework prefetch logic
This also fixes a recent reorg bug...
7 years ago
Neil Booth
d008707330
Fix bug recently introduced in reorgs
Fixes #532
7 years ago
Neil Booth
5a42f79bb8
Require an exact aiorpcX version
The interface is changing; best to target a single codebase
7 years ago
Neil Booth
ae143703ae
Travis: test Python 3.7
7 years ago
Neil Booth
db8ee48c2e
await on send_request directly
7 years ago
Neil Booth
8d3f98d3fd
Don't check task exceptions ourselves
7 years ago
Neil Booth
fa84b0f54b
Use asyncio.gather to propogate exceptions
7 years ago
Neil Booth
918592fbff
Remove RequestError; clean up a bit
7 years ago
Neil Booth
e1309836ca
Fix typo in prior
7 years ago
Neil Booth
eac214e508
Rework peer discovery
Make it more naturally async
7 years ago
Neil Booth
ba607544b9
Avoid callback in peer manager
Spawn separate tasks for each peer we test
7 years ago
Neil Booth
12c024f3ac
Log proxy detection failure
7 years ago
Neil Booth
79b98b2b54
Distinguish private and public methods of peer mgr
Give private methods a leading _
Remove dead code
7 years ago
Neil Booth
92ddb52f63
Update various comments
7 years ago
joesixpack
83732af4fe
Support for Minexcoin ( #529 )
7 years ago
Neil Booth
221f1222a6
Defer peer discovery
7 years ago
Neil Booth
316f642a08
Reduce memory footprint
- Use tuples in preference to lists
They are always at least 11% smaller memory
footprint, rising to 35% for short arrays
7 years ago
Neil Booth
7485d0aaf0
Retain the prevouts with each MemPoolTx
7 years ago
ghost43
45ccf8a64e
fix mempool tx fee calculation typo ( #531 )
7 years ago
Neil Booth
7c01acdbf2
Remove comment
7 years ago
Neil Booth
b05cc4e78b
Clean up fee histogram implementation
Much more efficient to just calculate it outright than try
and maintain datastructures
7 years ago
Neil Booth
3e535e47f4
Start peer discovery whilst syncing the mempool
7 years ago
Neil Booth
0963ce5230
Completely overhaul mempool sync logic
- highly concurrent and a lot more efficient than previously
- initial mempool sync should be much faster (feedback please)
- mempool processing no longer blocks client session handling
- uses less memory to store the mempool
- fixes an obscure bug where sometimes txs were dropped
- more robust, clean and easy to understand
Fixes #433
7 years ago
Neil Booth
21604cad15
Create a MemPoolTx object and use it
7 years ago
Neil Booth
4b3ceff0d2
Deserialize mempool txs in a thread
7 years ago
Neil Booth
9bd9476a54
Make mempool processing more properly asynchronous
7 years ago
Neil Booth
4da95dd853
Simplify refresh hashes loop
7 years ago
Neil Booth
821f907971
Put stats logging into its own task
7 years ago
Neil Booth
2c51b127de
Clarify mempool's exported interface
7 years ago
Neil Booth
a9a69acaf3
Pass the daemon not chain_state to mempool constructor
The mempool as its own process would maintain its own daemon
7 years ago
Neil Booth
35506f6054
Make notifications properly async
7 years ago
Neil Booth
277e2447c0
Fix the package versions in setup.py
7 years ago
Neil Booth
e568ee2488
Improve comments
7 years ago
Neil Booth
c715ae6249
Rework mempool and notification code
Clarifies the mempool interface to look more like what it
would in its own process
7 years ago
Neil Booth
3e8c413b77
In ChainState prepend private members with an underscore
7 years ago
Neil Booth
6cf7b049fa
Require aiohttp >= 2.0
7 years ago
Neil Booth
74c5c3f817
Don't accept onion peers if we have no proxy
7 years ago
Neil Booth
f7c95986bf
Fix failing test
7 years ago
Neil Booth
0c28136739
Remove dead code
7 years ago
Neil Booth
8e99d076b6
Logging tweaks
7 years ago
Neil Booth
ca3ba2b2d8
Rework mempool and BP<->prefretcher communication
7 years ago
Neil Booth
431989f0ea
Label 1.6a
7 years ago
Neil Booth
530c7cac6f
Clean up shutdown process of the block processor
- enables removal of executor code
- clarify flush guarantees
7 years ago
Neil Booth
41e734caeb
Clean up controller interface with other parts
7 years ago
Neil Booth
bd636a75ad
Clean up the process of opening the DBs, make asynchronous
7 years ago
Neil Booth
a019656a5e
Make it clear where BlockProcessor is instantiated
7 years ago
Omar Cruz
227696636d
Added Motion Coin mainnet ( #528 )
* Motion added
7 years ago
Neil Booth
023e463748
Prepare 1.6
7 years ago