TheLazieR Yip
828727d41a
Remove unneccessary local variables
8 years ago
TheLazieR Yip
e987510432
Replace double_sha256 with header_hash from coin
8 years ago
TheLazieR Yip
b3623f5455
replace header_hashes with header_prevhash , header_hash
8 years ago
Neil Booth
9f2bd981f0
Prepare 0.7.9
8 years ago
Neil Booth
42c00d32d2
Rewrite lib/jsonrpc.py to be a useful client too
Use for an improved electrumx_rpc.py, so it now handles responses spread
over several packets. Also added a timeout of 5 seconds.
Fixes #43
8 years ago
Neil Booth
2dbb9f44f6
Prepare release 0.7.8
8 years ago
Neil Booth
ef2703177e
Fix another assertion error during reorgs
Fixes #44
8 years ago
Neil Booth
86b0f7fa72
Prepare 0.7.7
8 years ago
Neil Booth
de4930b96d
Introduce MAX_HIST environment variable.
8 years ago
Neil Booth
70ee7eebd8
Prepare 0.7.6
8 years ago
Neil Booth
956d1b8039
Fix IRC regression
8 years ago
Neil Booth
86086cac63
Prepare 0.7.5
8 years ago
Neil Booth
9e220820aa
Rework futures and event handling
8 years ago
Neil Booth
bab0d162de
Merge ServerManager and BlockServer
8 years ago
TheLazieR Yip
f075f0bb5f
Add coin's IRC parameters
8 years ago
Neil Booth
f20859a8a6
Prepare 0.7.4
8 years ago
Neil Booth
640360c809
Add feature to simulate reorgs for debugging
8 years ago
Neil Booth
8970205e6c
Remove obsolete debugging feature
8 years ago
Neil Booth
2df5aa746f
Pop one from tx_counts for each block we back up.
Fixes #40
8 years ago
Neil Booth
26221e751e
Remove dead code
8 years ago
Neil Booth
39021792ca
Prepare 0.7.3
8 years ago
Neil Booth
d1ba4b1a76
Reset fs_height when backing up
8 years ago
Neil Booth
67bb01bf2c
Fix reorgs with unspendable TXOs
8 years ago
Neil Booth
e5c4bb9743
Prepare 0.7.2 release
8 years ago
Neil Booth
aa9f106865
Add missing self; use max_secs where intended.
8 years ago
Neil Booth
285a66fceb
Prepare 0.7.1
8 years ago
Neil Booth
fa30c5529b
Fix missing qualifier
8 years ago
Neil Booth
dd0cd0156f
Remove debug log
8 years ago
Neil Booth
87cdd2709d
Implement daemon failover
Daemon URLs can be comma-separated in the DAEMON_URL env var.
Surrounding whitespace is stripped.
http:// is preprended if missing.
The coin's default port is supplied if missing.
A trailing / is supplied if missing.
Closes #33
8 years ago
Neil Booth
11558fd9d2
Add debug log
8 years ago
Neil Booth
1dc43b3020
Show connection total in connection log
Fix typo resulting in no mempool notifications
8 years ago
Neil Booth
5eb92007ae
Remove redundant log; IRC will emit one
8 years ago
Neil Booth
98fd178c62
Make mempool truly asynchronous
Mempool updates happen in parallel asynchronously to processing of
new blocks once caught up. This means that, e.g., during the initial
slow mempool download incoming blocks can be processed and communicated
to clients without waiting for the downloaded mempool transaction
analysis to complete. From a client's point of view the server won't
be seen as lagging.
8 years ago
Neil Booth
8b34d1c134
Log IRC errors, typically missing package
8 years ago
Neil Booth
dd5a31d0f4
Take a little more care cleaning up connections
8 years ago
Neil Booth
8617c82ec2
Floor disk_count at zero.
8 years ago
Neil Booth
ccf24fdc71
Wait 20 secs for sockets to close
10 seems a little low
8 years ago
Neil Booth
d856cbab90
Prepare 0.6.3
8 years ago
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
8 years ago
Neil Booth
3d87e299ea
Move formatted_time to library
8 years ago
Neil Booth
0b52376f23
Add subscription limits
8 years ago
Neil Booth
4a4d11ad7c
Prepare release 0.6.2
8 years ago
Neil Booth
ffd6cd63b0
Fix thinko
8 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
8 years ago
Neil Booth
942d5d6b00
Fix import
8 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
8 years ago
Neil Booth
d6fa4a1564
More logging improvements
- log software and DB version at startup
- log more DB info at startup
- log software and DB version when first synced
Fixes #29
8 years ago
Neil Booth
3abddf4a51
Simplify sessions call
8 years ago
Neil Booth
6d7bc7595f
Prepare release 0.6.1
8 years ago
Neil Booth
88185b0daa
Bump log threshold up; tweak log
8 years ago