1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 01:43:29 +01:00
Commit Graph

574 Commits

Author SHA1 Message Date
Roman Zeyde
85687f18dd
Add short description to example/ binaries 2018-08-01 15:00:18 +03:00
Roman Zeyde
96c0737649
Add key/value separators for schema doc 2018-08-01 13:41:27 +03:00
Roman Zeyde
87b4df5747
Persist stderr log with run.sh 2018-08-01 11:07:30 +03:00
Roman Zeyde
016fc46018
Reduce compaction readahead size to 1MB
Should reduce RAM consumption during full compaction stage,
without hurting the throughput too much.
2018-07-30 14:05:46 +03:00
Roman Zeyde
d8078c1930
Enable detailed backtraces at scripts/run.sh 2018-07-29 22:03:11 +03:00
Roman Zeyde
b8e07f153a
Correct RPC shutdown logging 2018-07-29 09:48:49 +03:00
Roman Zeyde
b9c778f02d
Respond to SIGINT while waiting for re-connections 2018-07-29 09:48:49 +03:00
Roman Zeyde
ea39632523
Add interrupt error kind 2018-07-29 09:39:36 +03:00
Roman Zeyde
3f9f6e6330
Exit RPC server during its d-tor 2018-07-29 09:22:54 +03:00
Roman Zeyde
2c167c6a7d
Merge branch 'disconnect' 2018-07-28 23:30:49 +03:00
Roman Zeyde
9ee92c823f
Read cookie as Vec<u8> (instead of String) 2018-07-28 18:12:13 +03:00
Roman Zeyde
6bb837177c
Handle missing cookie file as connection failure 2018-07-28 17:50:59 +03:00
Lawrence Nahum
883108b072
Fix help message for skip_bulk_import 2018-07-28 15:04:37 +03:00
Roman Zeyde
6efab9c8a2
Reconnect after TCP disconnections and HTTP errors 2018-07-28 14:57:09 +03:00
Roman Zeyde
06f5a099a4
Simplify Daemon::reconnect() 2018-07-28 14:57:09 +03:00
Roman Zeyde
defe9f13af
Measure RPC latency after connection lock is taken 2018-07-28 14:57:09 +03:00
Roman Zeyde
1d59449677
Abstract cookie handling to a trait object
This would allow re-loading JSONRPC cookie after bitcoind restart
2018-07-28 14:57:09 +03:00
Roman Zeyde
91e4dd8b6f
Fail with ErrorKind::Connection (instead of a generic error) 2018-07-28 10:06:02 +03:00
Roman Zeyde
c317c6f7ad
Move logging statement from headers' download loop 2018-07-27 23:49:21 +03:00
Roman Zeyde
838e212ce1
Add small comment 2018-07-27 23:48:58 +03:00
Roman Zeyde
526239224a
Simple (re-)running bash script 2018-07-27 09:18:41 +03:00
Roman Zeyde
fcb926a8ad
Explicitly specify 'max_open_files' to reduce RAM usage 2018-07-26 12:43:46 +03:00
Roman Zeyde
a32f718c9a
Fix local electrum invocation script path 2018-07-25 12:21:55 +03:00
Roman Zeyde
2f9b529da8
Allow skipping blk*.dat import for low-memory systems 2018-07-23 12:05:46 +03:00
Roman Zeyde
fa3ea2869a
Switch to spacejam/rust-rocksdb crate
for latest RocksDB (5.14.2)
2018-07-23 10:14:13 +03:00
Roman Zeyde
18a21bfe56
Add simple bash script for running local Electrum client 2018-07-22 22:15:04 +03:00
Roman Zeyde
e0a1f5a5cf
Remove unneeded log statement at mempool 2018-07-22 21:39:39 +03:00
Roman Zeyde
98d8a498c8
Sort unspent outputs by confirmed height 2018-07-22 21:33:20 +03:00
Roman Zeyde
b83b0718dd
Support 'blockchain.address.listunspent' Electrum RPC 2018-07-22 21:26:02 +03:00
Roman Zeyde
321d655d7a
Support 'blockchain.scripthash.listunspent' Electrum RPC 2018-07-22 13:32:34 +03:00
Lawrence Nahum
7ca32964a0
separate lint step from build/test 2018-07-22 00:34:04 +02:00
Roman Zeyde
a2ef7cd3ed
Merge remote-tracking branch 'ga/travis_fix'
Travis build failed due to '/usr/bin/ld: final link failed: No space left on device'
2018-07-21 23:39:10 +03:00
Lawrence Nahum
916df98203
fix travis out of memory issue 2018-07-20 23:13:32 +02:00
Roman Zeyde
ebdc252a24
Ignore *~ files 2018-07-19 22:24:58 +03:00
Roman Zeyde
ba1762d240
Skip already indexed blocks during bulk indexing 2018-07-19 22:02:41 +03:00
Roman Zeyde
1a9e3a0e56
Skip bad magic values 2018-07-19 20:51:03 +03:00
Roman Zeyde
16ee6f4dd1
Log more information when RPC requests' UTF8 parsing fails
Also don't panic in case of RPC errors
2018-07-17 21:35:23 +03:00
Roman Zeyde
d422dc09cb
Verify JSONRPC responses correspond to correct requests 2018-07-17 11:11:04 +03:00
Roman Zeyde
d0bb321da1
Refactor mempool visualization tool 2018-07-17 10:11:28 +03:00
Roman Zeyde
3d09a9f3a0
Fix missing mempool entry 'fees' section
It was added to bitcoind at 7de1de7da4
and does not appear at 0.16.x releases.
2018-07-17 01:29:03 +03:00
Roman Zeyde
1b4adfdefd
Log more information in case of invalid hash 2018-07-16 14:44:45 +03:00
Roman Zeyde
2a3678e392
Merge branch 'regtest_mode' 2018-07-16 14:22:12 +03:00
Roman Zeyde
5c350c1f57
Skip transaction retrieval if no mempool entries are found 2018-07-16 14:06:42 +03:00
Roman Zeyde
57eb81e15d
Retry in case of mempool update failure
If there is an inconsistency between mempool entries and available
transactions, issue a warning and retry on the next poll.
2018-07-16 13:14:26 +03:00
Roman Zeyde
755967ac12
Allow caching for Travis builds 2018-07-16 12:57:50 +03:00
Roman Zeyde
d14746a36b
Remove sstable ingestion support
Currently, it's easier to use regular batch writes (without auto
compactions) during bulk indexing.
2018-07-16 12:03:02 +03:00
Roman Zeyde
c7948e9972
Don't pass serde_json::Value by mutable reference 2018-07-16 11:48:09 +03:00
Roman Zeyde
96d06eaeeb
Show unexpected JSON response in case of error 2018-07-16 11:03:40 +03:00
Roman Zeyde
de02d8b987
Add log statement for blk*.dat globbing 2018-07-16 10:22:04 +03:00
Roman Zeyde
4f8d83f2d0
Allow calling setrlimit() on 32-bit systems 2018-07-16 09:54:12 +03:00