Commit Graph

951 Commits

Author SHA1 Message Date
Lawrence Nahum
8d8cef9587
update deps 2019-04-22 14:24:34 +02:00
Nadav Ivgi
712e660461 Fix identification of pegout request outputs
This was broken by the recent upgrades to the latest rust-bitcoin and bitcoin_hashes,
which changed the way endianness is handled.

Refs https://github.com/Blockstream/esplora/issues/65
2019-04-13 09:30:11 +02:00
Lawrence Nahum
297662e010
run cargo fmt 2019-03-15 15:34:34 +01:00
Lawrence Nahum
1b2e192a4d
update release build flags/LTO 2019-03-15 15:02:48 +01:00
Nadav Ivgi
a6fc0b81fa
Move imports into feature conditional to avoid warnings 2019-03-13 15:27:13 +02:00
Nadav Ivgi
63edfd74ab Refactor TxFeeInfo::new() to avoid warnings in liquid mode 2019-03-13 15:26:33 +02:00
Nadav Ivgi
a06adb72a9 rpc: Disable blockchain.scripthash.get_balance in liquid mode 2019-03-13 15:24:36 +02:00
Nadav Ivgi
8cfc757b70 Remove runnable example from util/address 2019-03-13 15:18:52 +02:00
Nadav Ivgi
64ee3f39d8
Update to rust-elements v0.6.0 2019-03-13 14:51:36 +02:00
Nadav Ivgi
8123ebb4c7
Update rocksdb to v0.12 2019-03-13 14:18:11 +02:00
Nadav Ivgi
bef609ea91 Update to rust-bitcoin v0.17.1, secp256k1 v0.12, bitcoin-hashes v0.3
And a bunch more.
2019-03-13 13:58:17 +02:00
Nadav Ivgi
f47048a0cf Avoid unused import warning in non-liquid mode 2019-03-13 13:40:03 +02:00
Nadav Ivgi
6d31d9a017 tx-fingerprint-stats: Check for internal address reuse 2019-03-13 00:48:39 +02:00
Nadav Ivgi
be5fa0cb66 tx-fingerprint-stats: Check for multiple spends of the same spk 2019-03-12 23:54:46 +02:00
Nadav Ivgi
383356f358
Run cargo fmt 2019-03-12 22:44:20 +02:00
Nadav Ivgi
ea412af06b Make tx-fingerprint-stats a no-op in liquid 2019-03-12 22:43:27 +02:00
Nadav Ivgi
ba39841e9e Add tx-fingerprint-stats script 2019-03-12 21:00:23 +02:00
Nadav Ivgi
3e9a8dd630
Accept transaction broadcast using POST
Transactions can now be broadcast using POST /tx
with the raw transaction (in hex) as the body.

The old endpoint at GET /broadcast?tx=<hex> is still
available for backwards compatibility, but may be removed
in the future.
2019-03-12 18:20:17 +02:00
Nadav Ivgi
8b4cf02336
Fix the "status" field returned in GET /block/:hash/txs 2019-03-06 00:21:38 +02:00
Nadav Ivgi
c36307dd54 Enable the GET /tx/:txid/merkle-proof endpoint (still in electrum's format) 2019-03-06 00:17:06 +02:00
Nadav Ivgi
8b7794a1d9
Target fee buckets for a maximum size of 50,000 vB 2019-03-05 21:14:31 +02:00
Nadav Ivgi
fc60f96de8
Reduce to 10 last transactions 2019-03-03 17:10:23 +02:00
Nadav Ivgi
49f9cec4ae Add latency timer for updating mempool backlog stats 2019-03-03 16:50:13 +02:00
Nadav Ivgi
d32dea1431 Remove separate endpoint for fee histogram (included in the main GET /mempool endpoint) 2019-03-03 16:45:57 +02:00
Nadav Ivgi
cfc828032a Cache mempool historgram and stats 2019-03-03 16:45:26 +02:00
Nadav Ivgi
e29bd22f27
Reduce RECENT_TXS_SIZE to 25 2019-03-01 14:48:23 +02:00
Nadav Ivgi
714e665ca2 Add GET /mempool/recent, providing a simplified overview of recent mempool transactions
This commit also removes GET /mempool/txs, which returned a sample of full transactions
in no particular order.
2019-03-01 12:35:23 +02:00
Nadav Ivgi
97c395909c Refactor blockchain_scripthash_get_balance to avoid unused var warnings in Liquid mode 2019-03-01 05:34:13 +02:00
Nadav Ivgi
e0b3050195 Avoid unnecessary clone()s 2019-03-01 05:33:10 +02:00
Nadav Ivgi
9d2324955c Avoid non-idiomatic usage of the From trait 2019-03-01 05:33:10 +02:00
Nadav Ivgi
7b5fe94f63 Add missing latency metrics to Mempool 2019-03-01 05:33:08 +02:00
Nadav Ivgi
b701d25485 Detect unknown feerate (-1) in Daemon::estimatesmartfee() 2019-03-01 01:08:51 +02:00
Nadav Ivgi
171008087a
Fix value extraction for CT outputs 2019-02-27 00:59:11 +02:00
Nadav Ivgi
094df1fa33 Change GET /mempool/stats to simply GET /mempool 2019-02-26 08:29:22 +02:00
Nadav Ivgi
43dfb022d3 Implement fee estimates based on bitcoind'd estimatesmartfee
Available on the Electrum RPC at blockchain.estimatefee
and on the HTTP REST server at GET /fee-estimates
2019-02-24 06:26:15 +02:00
Nadav Ivgi
24d5b5f1e5 Implement GET /mempool/txs
Returns up to MAX_MEMPOOL_TXS (50) transactions from the mempool
2019-02-24 05:26:30 +02:00
Nadav Ivgi
6c70a7ed56 Implement GET /mempool/txids
Returns the full list of txids in the mempool
2019-02-24 05:26:22 +02:00
Nadav Ivgi
865af3f731 Implement mempool backlog stats
Including the total number of txs, the total vsize, the total fees
and the fee histogram.

Available at GET /mempool/stats
2019-02-24 05:16:54 +02:00
Nadav Ivgi
c25e957629 Implement mempool fee histogram
Available at GET /mempool/fee-histogram and on the Electrum RPC server
2019-02-24 05:02:04 +02:00
Nadav Ivgi
823b68ec88
Implement Electrum RPC on top of new indexes and query 2019-02-23 23:58:05 +02:00
Nadav Ivgi
2210d7a035 Use ChainQuery::best_hash() 2019-02-23 06:54:10 +02:00
Nadav Ivgi
0fbcfcb01a Change ChainQuery::history() to return non-Option-wrapped BlockId 2019-02-23 06:53:40 +02:00
Nadav Ivgi
aa4533bf7b Implement broadcast as part of Query 2019-02-23 05:08:14 +02:00
Nadav Ivgi
4f000c1956 Add .ackrc 2019-02-23 04:29:56 +02:00
Nadav Ivgi
b98bd62763
Ensure scripthash is of the expected size before casting to a FullHash 2019-02-17 11:58:29 +02:00
Nadav Ivgi
3384a178a6 README: add --bin electrs, required now that we have multiple binaries 2019-02-15 22:44:50 +02:00
Nadav Ivgi
62b43d4080 Run cargo fmt 2019-02-15 05:31:14 +02:00
Nadav Ivgi
aa2df5833b Up MIN_HISTORY_ITEMS_TO_CACHE to 100 2019-02-15 02:11:24 +02:00
Nadav Ivgi
88e5b3629c Update list of popular scripts 2019-02-15 02:04:59 +02:00
Nadav Ivgi
f9d987876d Add utility script for finding popular scripthashes 2019-02-15 00:39:31 +02:00