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
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
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
Neil Booth
4d62019b07
Check Genesis hash
Testnet RPC_PORT is 18332
8 years ago
Neil Booth
852753cb94
Implement deserialization of SegWit transactions
tx_hash needs to be that of the prior serialization, so
need to change internal read_block API.
Bitcoin core 0.13.1 broke backwards compat of the RPC interface.
Closes #92
8 years ago
Neil Booth
7392306e68
Prepare 0.10.1
8 years ago
Neil Booth
18af57059f
Improve group handling.
I believe this fixes #94
8 years ago
Neil Booth
fe70a6db30
Prepare 0.10.0
8 years ago
Neil Booth
91ca5fc14a
Split out history into its own DB.
8 years ago
Neil Booth
7f9cb9cd9d
Generic header length
If header lengths change in the future, only one function needs
to change in coins.py.
8 years ago
Neil Booth
c8c4199503
New VirtualFile abstraction
Use for headers, tx counts and tx hashes.
8 years ago
Neil Booth
427183ae01
Place metadata files in meta/, db in db/
8 years ago
Neil Booth
2b2909f1c4
Move to hashX
The hashX of a script is the first 11 bytes of its sha256 hash.
Closes #72 .
8 years ago
Neil Booth
de201a247f
Double fetch size of mempool.
Set testnet genesis hash.
8 years ago
Neil Booth
0f43ce564a
Fix log message
8 years ago
Neil Booth
4b0ba2fcd3
Prepare 0.9.22
Documentation updates only
8 years ago
Neil Booth
7d899e07ae
Fix version
8 years ago
Neil Booth
533c97a575
Clean up DB open handling
Closes #89
8 years ago
Neil Booth
ddfefd7f36
Prepare 0.9.20
8 years ago
Neil Booth
517f78858c
Fix IRC flood issues
Tweaked version of suggestions from Valesi, petrkr, and bauerj.
Fixes #93
8 years ago
Neil Booth
5cbe878cb8
Move ServerManager to controller.py
rename Controller
8 years ago
Neil Booth
67908b3541
Slightly cleaner semaphore fix
8 years ago
shsmith
62eded55bb
move sleep outside semaphore (issue 88)
8 years ago
Neil Booth
b1e8012b56
Prepare 0.9.18
8 years ago
Neil Booth
a81b8917d8
Logging tweaks
8 years ago
Neil Booth
d45e174e03
Prepare 0.9.17
8 years ago
Neil Booth
4c4cd92c54
Banner: add $DONATION_ADDRESS meta variable
Replaced with the DONATION_ADDRESS environment variable
8 years ago
Neil Booth
7a3b0830e1
Make all storage use fsync
Hopefully costs little and increases robustness.
Closes #75
8 years ago
Neil Booth
99d8cbfbf6
Permit RPC requests up to 1MB
Fixes #85
Prepare 0.9.16
8 years ago
Neil Booth
622f61e943
Don't do an initial sessions log
8 years ago
Neil Booth
50f02747de
Throttle abusive logging
8 years ago
Neil Booth
01c2fad534
Log paused or low-priority sessions on exit
8 years ago
Neil Booth
6a6bbaa07b
Tweak mempool logging
8 years ago
Neil Booth
a9b1bc16dd
Prepare 0.9.15
8 years ago
Neil Booth
efe3ebd9ee
Remove None from touched when backing up.
Fixes #84
8 years ago
Neil Booth
8b87a837b8
Prepare 0.9.14
8 years ago
Neil Booth
e91f49101b
Don't start processing mempool until caught up
Print server manager settings once servers start
8 years ago
Neil Booth
7b8119d787
Prepare 0.9.13
8 years ago
Neil Booth
813d8ee7e3
Reduce logging verbosity for delayed requests
Only log when the delay changes
8 years ago
Neil Booth
6c7cf34bcd
Prepare 0.9.12
8 years ago
Neil Booth
0dccb795dc
Add pid to RPC getinfo
Closes #77
8 years ago
Neil Booth
3cf23c88bd
Start up RPC server immediately
Don't wait for catch-up
Closes #78
8 years ago
Neil Booth
6679eea04c
getinfo RPC: change height reporting
Also rename watched to subs
Closes #80
8 years ago
Neil Booth
ef54413054
Prepare 0.9.11
8 years ago
Neil Booth
645e60eaee
Put peer at RHS of sessions log.
Then IPv6 addresses don't mess up the formatting.
8 years ago