Neil Booth
1dcb31de9b
session:py: _recalc_concurrency tweaks
- aiorpcX's recalc_concurrency() no longer throws
- only for sessions with slow-moving cost; those increasing fast
are handled in aiorpcx
- as not urgent reduce to running loop every 5 minutes
6 years ago
Neil Booth
d2d82472ea
peers.py: better log peer discovery settings
6 years ago
Shane M
a2c4902c5e
aiorpcX 0.17 fixes ( #804 )
proxy_peername() to proxy_address() for is_tor()
also use NetAddress for on_add_peer()
6 years ago
Neil Booth
90d4e6f95b
BitcoinSV: update peers
6 years ago
Neil Booth
b478d778ad
Upgrade to aiorpcX 0.17
6 years ago
Neil Booth
12bd55fd2c
util.py: tighten protocol validation
6 years ago
Neil Booth
278a61ee7e
NetIdentity: remove nick_suffix
6 years ago
Neil Booth
991d09ea8d
Take is_valid_hostname from aiorpcx
Require aiorpcX 0.16.1
6 years ago
Neil Booth
4120596fb8
Upgrade to aiorpcX 0.16.0
6 years ago
Neil Booth
eb7cea5ecd
connection_made: call recalc_concurrency() here
Give connections a cost of 5.0
6 years ago
Neil Booth
0a279d2fe1
setup.py: use extras_require
6 years ago
Neil Booth
a12640f6ed
server_base.py: handle KeyboardInterrupt robustly
6 years ago
Neil Booth
a4ea34c6fb
connection_lost: work around uvloop bug
Closes #743
6 years ago
Neil Booth
108c4213a8
Placate pycodestyle
6 years ago
Neil Booth
7a624d31c1
Tweak docs and rpc log implementation
6 years ago
Neil Booth
425f40b907
Prepare 0.11.0
6 years ago
Neil Booth
6030252e89
Improve disconnect and log local RPC commands.
Remove lognew. Update docs.
6 years ago
Neil Booth
ef106c40fd
Change default REQUEST_TIMEOUT to 30
6 years ago
Neil Booth
4e46a207e9
Improve get_info stats
6 years ago
Neil Booth
10913fa9da
Add request method stats
6 years ago
Neil Booth
6adea4cb4d
History cache: add stats
Add cache invalidation for the merkle cache
6 years ago
Neil Booth
651219d775
Prefetcher: let cancellation through; just log it
Catch, log and ignore unexpected exceptions
6 years ago
ZhiKosta
ec778b4577
BTG bad RPC port fix + removal of dead service domain ( #800 )
6 years ago
Neil Booth
93e012c6a5
Clean up imports
6 years ago
Neil Booth
32e8ea2940
Handle ConnectionResetError
This is newly raised by aiohttp
6 years ago
Neil Booth
0b95badf5c
Remove aiohttp bug workaround; follow up to prior
6 years ago
Neil Booth
94322f4583
Require aiohttp 3.3 or higher
That release of aiohttp fixed their CancelledError bug
6 years ago
Neil Booth
98daf5417a
Fix prior
6 years ago
Neil Booth
d90d76cbdd
daemon.py: work around aiohttp bug
Also log unexpected exceptions in the prefetcher
6 years ago
Neil Booth
f6e0962262
Add protocol-ideas.rst
6 years ago
Neil Booth
374e8360b4
Add missing await
6 years ago
Neil Booth
c801cc0f40
Update protocol docs
6 years ago
Neil Booth
39817eec7e
Portocol: add blockchain.scripthash.unsubscribe
6 years ago
Neil Booth
04ead9b68a
Handle subscriptions whose history becomes too long
6 years ago
Neil Booth
2a8390abac
Ignore add_peer unless PEER_DISCOVERY is ON
Closes #731
6 years ago
Neil Booth
1d554ff579
Use normal loops
6 years ago
Neil Booth
56823805f1
Don't access _can_send base member.
6 years ago
Neil Booth
304e44d523
Handle subscriptions whose history becomes too long
6 years ago
Neil Booth
17519611bb
Remove dead code for address subs
6 years ago
Neil Booth
031d193d26
Save a subscription only if address_status succeeds.
6 years ago
Neil Booth
ddfc87ecc9
Strip the newlines form sys.version
6 years ago
Neil Booth
f651d166d2
Add LOG_LEVEL environment variable
Closes #605
6 years ago
Neil Booth
dc790fcdf2
limited_history: raise error on long histories
Requires aiorpcX 0.15.0
Fixes #566
6 years ago
zebra-lucky
cac452fbae
dash: add CbTx version 2 support ( #794 )
6 years ago
Neil Booth
eeb9c3e5b2
peers.py: use sent_request_timeout
6 years ago
Neil Booth
e41c3dc518
session.py: use MerkleCache, add a cache of them
6 years ago
Neil Booth
0c86a833c1
session.py: bump history cache to 1000
6 years ago
Neil Booth
dcd255b3b6
session.py: introduce an lrucache for block tx hashes
Adjust request costing based on whether cache is hit.
Add stats to RPC getinfo
6 years ago
Neil Booth
9b4a3c9dff
session.py: handle block tx hashes more efficiently
• only convert tx_hash from hex to bytes once
• keep the tx_hashes list in binary saving an expensive list
conversion from binary->hex->binary
6 years ago
Neil Booth
d7162311e5
session.py: don't bother showing the block hash
Don't sanity-check height twice
6 years ago