Roman Zeyde
e1825fdc77
Fail RPC queries for "too popular" addresses
...
Since electrs is not optimized for this use-case, the query may take a lot
of time (on HDDs, the transaction lookups take most of the time).
The limit can be disabled by passing --txid-limit=0 flag.
2019-01-06 09:11:15 +02:00
Roman Zeyde
b77cd541d5
Allow JSONRPC 'id' to be of any type
2019-01-06 08:26:53 +02:00
Roman Zeyde
db9b174680
Ignore _* directories
2018-12-23 10:05:05 +02:00
Roman Zeyde
5453ffe72a
Bump version
2018-12-23 09:55:54 +02:00
Dagur Valberg Johannsson
1ea6a50325
Let server banner be configurable
...
This lets the operator set a custom server banner using the
configuration flag --server-banner. In addition it adds the daemon
version to the banner.
2018-12-23 09:34:49 +02:00
Dagur Valberg Johannsson
07eb413f8c
tx_id -> tx_hash in transaction.id_from_pos
2018-12-19 11:14:40 +01:00
Roman Zeyde
afa82a0a49
Minor fixes before merging to master
2018-12-19 09:20:20 +02:00
Dagur Valberg Johannsson
8ad6d29caa
Bump verison in server.version
2018-12-14 13:22:42 +01:00
Dagur Valberg Johannsson
7e69eb8984
Remove methods no longer supported in v1.4
2018-12-14 13:22:42 +01:00
Dagur Valberg Johannsson
d284ba772e
Add cp_height support to blockchain.block.header/s
2018-12-14 13:22:32 +01:00
Dagur Valberg Johannsson
537e85f2db
Implement 'blockchain.transaction.id_from_pos'
2018-12-14 13:21:30 +01:00
Dagur Valberg Johannsson
4e28d67c20
Refactor to create_merkle_branch_and_root
2018-12-14 13:20:59 +01:00
Roman Zeyde
5f2d4289dc
Support Rust 2018 edition
...
Builds on Rust 1.31
2018-12-08 11:40:04 +02:00
Roman Zeyde
0dae2f198a
Re-format latest Rust version
2018-12-07 16:36:00 +02:00
Roman Zeyde
e49cef1bbc
Simplify .map() at Daemon::getblocktxids()
2018-12-03 07:27:08 +02:00
Roman Zeyde
e9d9f6b16c
Use parse_hash() for Daemon::getblocktxids()
2018-12-03 00:46:45 +02:00
Nadav Ivgi
bea7fd747f
Improve query.get_merkle_proof() performance
...
Query bitcoind for the list of txids in the block instead of
fetching the whole block, deserializing it and re-computing the txids.
2018-12-02 00:11:06 +02:00
Roman Zeyde
7061c53d97
Improve logging when closing RPC server
2018-12-01 15:20:02 +02:00
Daniel McNally
e446693c4c
Add NGINX SSL sample config
2018-11-27 17:56:12 -05:00
Roman Zeyde
09725e8615
Bump version
2018-11-22 11:24:23 +02:00
Roman Zeyde
1f1857947c
Consolidate tools/* under contrib/
2018-11-22 10:52:21 +02:00
Roman Zeyde
3982c9fd78
Support 'server.ping' Electrum RPC
2018-11-16 20:14:08 +02:00
Roman Zeyde
afcc93bc57
Sort Electrum RPC methods alphabetically
2018-11-16 20:11:43 +02:00
Roman Zeyde
783b8647eb
Add partial support for "blockchain.block.header" Electrum RPC
...
https://electrumx.readthedocs.io/en/latest/protocol-methods.html#blockchain-block-header
2018-11-16 17:29:49 +02:00
Roman Zeyde
33054e23f7
Allow skipping 'params' field in Electrum JSONRPC
2018-11-16 17:23:34 +02:00
sha-265
26a2912703
Fix typo
2018-11-14 15:30:02 +00:00
Roman Zeyde
582af3d697
Update rust-bitcoin to 0.15.1 and re-generate Cargo.lock
2018-11-10 21:40:07 +02:00
Daniel McNally
edc2532f0a
Update instructions with low RAM arguments
...
Closes #61 .
2018-11-03 17:47:10 +02:00
Roman Zeyde
c86245751e
Remove unneeded locking from MempoolStore
2018-10-21 23:33:58 +03:00
Roman Zeyde
42ab247776
Use LRU cache (instead of an unbounded HashMap) for transaction caching
2018-10-17 11:46:49 +03:00
Roman Zeyde
cb724352bc
Fix small typo in comment
2018-10-14 23:21:31 +03:00
Roman Zeyde
5895ad906d
Bump version
2018-10-14 14:40:55 +03:00
Roman Zeyde
1dcc8ac575
Don't run full compaction after initial import is over
2018-10-14 10:58:48 +03:00
Roman Zeyde
c2563701eb
Group 'use' statements
2018-10-06 21:31:43 +03:00
Roman Zeyde
fce7bd15b0
Add simple transaction ID prefix collision length calculator
2018-10-01 21:15:12 +03:00
Roman Zeyde
e300796fc2
Add scanning DBStore prefix iterator
2018-10-01 21:15:11 +03:00
Roman Zeyde
698156eb6e
Add systemd service file example
2018-10-01 21:13:07 +03:00
Roman Zeyde
f27b1428b1
Add a small comment to test caching
2018-09-28 11:42:34 +03:00
Roman Zeyde
11c95fbf09
Check formatting on Travis
2018-09-28 11:27:02 +03:00
Roman Zeyde
af189983ae
Add build and test to Travis
2018-09-28 11:11:35 +03:00
Roman Zeyde
27b3255298
Add Cargo.lock to git
2018-09-27 19:55:01 +03:00
Roman Zeyde
19fa5355f2
Experiment with vanilla caching
2018-09-27 19:50:57 +03:00
Roman Zeyde
71347c1568
Simplify status queries by using itermediate variables
2018-09-27 17:01:41 +03:00
Roman Zeyde
4301abdd10
Bump version
2018-09-22 15:44:24 +03:00
Roman Zeyde
3f51458fee
Optimize for low-memory systems by using different RocksDB settings
...
- Keep less open files (to preserve memory)
- Don't use compaction readahead
- Use smaller SSTable block size
2018-09-16 09:55:42 +03:00
Roman Zeyde
200ef16ed0
Expose low-memory indexing via --jsonrpc-import flag
...
(instead of --skip_bulk_import)
2018-09-16 09:55:42 +03:00
Roman Zeyde
e09816db65
Bump version
2018-09-14 17:59:54 +03:00
Roman Zeyde
18d2aef052
Re-format using Rust 1.29
2018-09-14 16:35:18 +03:00
Roman Zeyde
58ea2ed960
Allow higher concurrency for >dual core machines
2018-09-07 18:08:36 +03:00
Roman Zeyde
853513ed27
Add 'blockchain.address.get_history' API
...
For easier invocation (e.g. using curl).
2018-09-03 12:04:28 +03:00