Neil Booth
52116539d4
Clean shutdown: wait for transports to close
We give 10 seconds for everything to be cleaned up, then close forcibly.
Fixes #30
9 years ago
Neil Booth
0b52376f23
Add subscription limits
9 years ago
Neil Booth
913d156786
Convert DaemonError to RPCError
To cleanly return errors to clients
getrawtransaction has the ugly API and still does its own thing
Fixes #32
9 years ago
Neil Booth
942d5d6b00
Fix import
9 years ago
Neil Booth
063a5469cc
Move mempool to be with BlockServer
BlockProcessor doesn't really need a mempool; mempools are
only useful for servers.
Set first_sync before flushing, so it goes into DB state.
Start servers immediately on catchup; mempool fills asynchronously.
Fixes #31
9 years ago
Neil Booth
3abddf4a51
Simplify sessions call
9 years ago
Neil Booth
88185b0daa
Bump log threshold up; tweak log
9 years ago
Neil Booth
beeb60f324
Implement blockchain.address.get_mempool
Fixes #26
9 years ago
Neil Booth
7f3551e435
tx_merkle: catch bad hashes and report properly
Fixes #27
9 years ago
Neil Booth
4c7f72fe68
RPCError is not a global variable
9 years ago
Neil Booth
c5c7b6f438
Have all expensive requests yield.
9 years ago
Neil Booth
f17ad2ddf4
Put notifications on the session queue
This keeps the network in-order and means slow clients get slow
notifications, which seems fairer.
Add some simple logging
9 years ago
Neil Booth
a1eb446af4
Tweak notify handling
9 years ago
Neil Booth
db187540d5
Have task coros handle cancelled exceptions
9 years ago
Neil Booth
a2280bbc93
Clean up futures handling
9 years ago
Neil Booth
8c55f41305
Accept more SSL protocols
9 years ago
Neil Booth
1830cae3de
Remove a redundant message
9 years ago
Neil Booth
83674b1b7b
Clarify peername() logic
9 years ago
Neil Booth
be45a9e228
Minor improvements to client handling
Don't create a task until ready to execute it
Log expensive tasks
Assume peers are for logging unless explicitly not stated
9 years ago
Neil Booth
14d3d85bd9
Need an array to take its len
9 years ago
Neil Booth
dc74c869a1
Await task after cancelling it.
9 years ago
Neil Booth
12ed9f7069
Have session_count return a dictionary
9 years ago
Neil Booth
1b8881800d
Move the RPC handlers to the manager
9 years ago
Johann Bauer
d45321927e
Add optional option to anonymise logs (remove IP addresses)
9 years ago
Neil Booth
57dd4ece9c
Avoid annoying exception on shutdown
9 years ago
Neil Booth
831225492e
Better RPC sessions stats
9 years ago
Neil Booth
7523735f99
Split out server and session management
9 years ago
Neil Booth
3b6ab77e47
Break out JSONRPC into own file
- improved handling of JSON 2.0 RPC protocol
- permits batched requests (not yet supported by Electrum client)
9 years ago
Neil Booth
14d8ece7c6
Return a version the Electrum client expects
If you don't do this you don't appear in the network dialog box
9 years ago
Neil Booth
751bb2d970
Remove debug code
9 years ago
Neil Booth
c93f6cb920
Final cleanup
9 years ago
Neil Booth
cb7b7dd1fe
Move pretty printing of sessions to client
Tweak logging
9 years ago
Neil Booth
501807bf1a
Implement IRC support and related queries from clients
9 years ago
Neil Booth
d8bb174f2b
Use correct daemon API
9 years ago
Neil Booth
244a0f2fab
Update release notes.
9 years ago
Neil Booth
8188f7e909
Catch exceptions when trying to listen
Fixes #11
9 years ago
Johann Bauer
1405057096
Fix getting the number of watched addresses
Resolves #13
9 years ago
Neil Booth
5c5e90d574
Move BlockServer to more appropriate location
9 years ago
Neil Booth
f05a5414c1
Make jobs truly asynchronous.
However we need to rate-limit the daemon...
9 years ago
Neil Booth
7f03b0fa73
Move job handling out of the controller
Controller on its last legs...
9 years ago
Neil Booth
00e9c5a31d
Add daemon debugging caught-up facility
9 years ago
Neil Booth
9fbbc8bfdb
Clean up daemon interface.
9 years ago
Neil Booth
b5d1f401fd
Fix bugs
9 years ago
Neil Booth
48b8b9332e
Initial attempt at mempool
9 years ago
Neil Booth
fb43712869
Controller clean up
9 years ago
Neil Booth
892e9524e5
Fix bugs handling client UTXO requests
Allow strings for ints - Electrum command line doesn't convert
Don't blow away hash168s from the DB
9 years ago
Neil Booth
be2475f617
Handle utxo.get_address
9 years ago
Neil Booth
ceecdc54ac
Server work
Avoid touching the block preprocessor hot loop for now
9 years ago
Neil Booth
3d11afbda2
Enable servers
9 years ago
Neil Booth
d2ebb80fac
Extend copyright notice; improve comments
9 years ago