Neil Booth
e56f188816
Implement peer subscriptions
Incremental updates are passed.
Also implement a server.features RPC
8 years ago
Neil Booth
551c04a3bc
Remove all uses of "except:"
8 years ago
Neil Booth
76b6899cf2
Try to avoid asyncio log spew on shutdown
Closes #106 .
This is a hacky workaround to an issue that needs to be
fixed in Python's asyncio library (where I filed issue 487
on github)
8 years ago
Neil Booth
cb0160901f
Unify executor and futures logic
8 years ago
Neil Booth
9b5cb105d5
Prepare 0.10.12
8 years ago
Neil Booth
0ac36aeca0
Make a copy of sessions to loop over
8 years ago
Neil Booth
1a48ad136c
Prepare 0.10.11
8 years ago
Neil Booth
32eee5cd54
Merge branch 'jsonrpc' into develop
8 years ago
Neil Booth
a7462a6ea3
Complete rewrite of JSON RPC infrastructure
Aim to be easier for clients to use, because to do peer
discovery we must act as a client to other servers.
Split out JSON session concept from the asyncio protocol
concept. This makes the JSON RPC support more easily
testable and usable as a stand-alone library.
In addition, support JSON RPC v1 and v2, and auto-detection
of peer's version.
8 years ago
Neil Booth
d0d4c0d75f
Prepare 0.10.10
8 years ago
Petr Kracík
5343c1a286
Changed litecoin genesis block hash ( #109 )
8 years ago
Neil Booth
05a6da1920
Move peer management to peers.py from irc
It's cleaner and will be useful for peer-to-peer comms later
8 years ago
Neil Booth
ed0646efbf
Tidy up request and notification sending
8 years ago
Neil Booth
766da5ed79
Don't maintain a sub_count in controller
Just do a tally occasionally.
It's too tricky to keep it accurate as it double-counts resubscribing to
the same address, for example
8 years ago
Neil Booth
112e0a12a9
Prepare 0.10.9
8 years ago
Neil Booth
4729ba2e21
Tweak the shutdown process
Clean it up a bit and make it harder to do wrongly.
8 years ago
Neil Booth
9a8c598fa8
The session needs to handle the version command.
8 years ago
Neil Booth
b03a44ca5a
Prepare 0.10.8
8 years ago
Neil Booth
23c4616711
Fix testcase
8 years ago
Neil Booth
0dfdfaba7e
Prepare 0.10.7
8 years ago
Neil Booth
f05dd6c2a3
Use snappy compression
Seems to make ~4.5% faster (5281 tx/s -> 5516 tx/s)
Shrinks UTXO DB by ~15% and hist DB by ~5%
8 years ago
Neil Booth
5f9e337457
Improve RocksDB iterator
8 years ago
Neil Booth
5abe4faa8d
JSON results are returned with HTTP status 500
8 years ago
Neil Booth
c958b3af49
Remove LMDB
Performance of history writes was very poor even with
the code rewritten to accommodate the environment concept
(see db_abstraction branch)
8 years ago
Neil Booth
ffb4d4f158
Don't print response; might have auth info
8 years ago
Neil Booth
1a9ac22fa0
Prepare 0.10.6
8 years ago
Neil Booth
65f927122b
daemon: properly check for HTTP status codes
8 years ago
Neil Booth
131601a7b2
Rework clean shutdown logic
So that the main block processor future is cancellable.
We wait for the executor and then flush anything unflushed.
Resolves the rest of the second part of #100
8 years ago
Neil Booth
73945c51d1
Prepare 0.10.5
8 years ago
Neil Booth
b01933913f
Add traceback for daemon errors
8 years ago
Neil Booth
5aaee6b608
Update docs
8 years ago
Neil Booth
8d58d2a0e7
Clean up shutdown logic and logging
Add RPC "stop" command, and document it.
Fixes the 2nd part of #100
8 years ago
Neil Booth
0845f26ec2
Prepare 0.10.4
8 years ago
Neil Booth
9e6de7a554
Merge branch 'json-named-args' into develop
8 years ago
Neil Booth
d2da494120
Clarify README; no need to resync.
Update HOWTO and docs
8 years ago
Neil Booth
4eed43accb
Add named-argument handling as per JSON RPC 2.0
This involved a rewrite of the JSON RPC layer.
I took the opportunity to clean up the handling of requests
in general. It should now be easy to return nice help from
the docstrings.
Closes issue #99
8 years ago
Neil Booth
057ec09b9e
Update docs
8 years ago
Neil Booth
13aa2cc731
Update HOWTO
8 years ago
Neil Booth
c0cd452252
Clarify README; no need to resync.
8 years ago
Neil Booth
5784412393
Write out undo info with the UTXO flushes
Cleaner and slightly more efficient.
Closes #101
8 years ago
Neil Booth
a8a82224e7
Prepare 0.10.3
8 years ago
Neil Booth
2ad64f6243
Add an RPC call to force a reorg at run-time
This required a large rework block processor and prefetcher
interaction, and led to various cleanups
Closes #103
8 years ago
Neil Booth
15051124af
Make flushes and reorgs async
Apart from the flush on shutdown and the flush when caught up,
neither of which matter, this makes flushes asynchronous.
Also, block processing for reorgs is now asynchronous.
This also removes the FORCE_REORG debug envvar; I want to
put that into the RPC interface.
Closes #102
8 years ago
Neil Booth
89209632ae
Clean up daemon.py
8 years ago
Neil Booth
540479ad23
Tweaks for prior; update README.
8 years ago
protonn
1aa55f2976
add digibyte and argentum ( #96 )
* add DigiByte and Argentum
8 years ago
Neil Booth
defadc580d
Merge branch 'develop'
8 years ago
Neil Booth
80845fc208
Update README.
8 years ago
Neil Booth
4bd474bf57
Prepare 0.10.2
8 years ago
Neil Booth
dcc2c92bd6
Rename NETWORK envvar to NET
For consistency with lib/coins.py
SegWit testnet needs its own NET
8 years ago