Commit Graph

35 Commits

Author SHA1 Message Date
Daniel Savu
085872d503
Add index-unspendables CLI flag (#28) 2020-10-29 02:45:37 +02:00
Nadav Ivgi
6749de528a
docs: Correct native asset cache key name 2020-04-10 08:04:09 +03:00
Nadav Ivgi
efc4322801
elements: Refactor the peg indexer to be part of the asset indexer
This unifies the indexer implementation for user-issued assets and for the network's
native asset, removing a bunch of duplicated code. As a side-effect, we now also track
provable burns of the native asset.

The peg tx history endpoint previously available at GET /pegs/txs is now part of
GET /asset/<native-asset-id>/txs, which also includes burn transactions.

The peg stats endpoint previously available at GET /pegs is now part of
GET /asset/<native-asset-id>, which also includes the burn_count and burned_amount.
2020-04-10 07:59:36 +03:00
Nadav Ivgi
f331f80368
docs: Update schema docs with new peg stats 2020-04-08 14:17:49 +03:00
Nadav Ivgi
061ed2a50d
Implement basic stats for peg in/out transactions (confirmed + mempool) 2020-04-05 14:07:53 +03:00
Nadav Ivgi
07e12d4a5b
Update schema docs 2020-03-26 19:48:06 +02:00
Nadav Ivgi
4bf53fda2a
Implement prefix address search
Available as GET /address-prefix/:prefix, returns a JSON array of up to 10 matching addresses.

Off by default, needs to be enabled using --address-search.
2020-03-26 06:12:26 +02:00
Nadav Ivgi
449d47bad5 Keep track of reissuance tokens and their burns
This exposes two new asset stats fields: `reissuance_tokens` and `burned_reissuance_tokens`

Also, the asset id of the reissuance token is now available under the `reissuance_token` field of the asset.
2019-06-29 03:51:22 +03:00
Nadav Ivgi
8f3a393aa0 Implement asset stats tracking with delta updates 2019-06-29 03:51:22 +03:00
Nadav Ivgi
39b4030f07 Add indexes for asset issuances and non-blinded funding/spending txs
Currently for on-chain txs only (no mempool support) and with no querying ability yet
2019-06-29 03:51:22 +03:00
Nadav Ivgi
963d51dbaa Update schema docs with more accurate description 2019-06-24 01:54:49 +03:00
Nadav Ivgi
7112ca3176
Populate the in-memory HeaderList from the local database
Instead of fetching it from the bitcoind rpc. This speeds up startup times significantly.

This required keeping the last indexed block hash in the db, under `t` (for "tip").
The first start-up without the saved tip will still be slow, but once that gets saved,
followup start-ups will become faster.

The presence of the `t` in the db is now also used to determine whether the initial
sync was completed, replacing the `i` flag introduced in the parent commit.

Resolves https://github.com/Blockstream/esplora/issues/76
2019-06-22 05:13:52 +03:00
Nadav Ivgi
c34a449cdb
Wait for the initial sync to finish before switching over to jsonrpc import
This allows to continue to indexing using the blkfiles following an interruption.

Refs https://github.com/Blockstream/esplora/issues/91
2019-06-21 11:19:03 +03:00
Nadav Ivgi
61e06acf89 Update schema doc with {value} in H rows 2019-02-14 18:50:56 +02:00
Nadav Ivgi
ebdfe3aa26 Update schema docs with the v2 new-index 2019-02-13 14:43:57 +02:00
Roman Zeyde
618cf444d1
Update the source code for Rust 2018
Using `cargo fix --release`.
2018-12-08 15:25:25 +02:00
Lawrence Nahum
d6f4d9e197
remove unused size_on_disk 2018-08-21 17:59:34 +02:00
Roman Zeyde
2d2590aeae
Add Docker usage example 2018-08-20 22:42:58 +03:00
Roman Zeyde
836bc5861e
Update Aug 2018 index DB size 2018-08-17 22:19:14 +03:00
Roman Zeyde
98ec908a8d
Update bulk indexing sample
Now it takes ~1.5h :)
2018-08-17 21:56:02 +03:00
Roman Zeyde
215f859aae
Update latest Rust version 2018-08-17 15:32:14 +03:00
Roman Zeyde
c7552878d8
Add more documentation for Electrum client invocation 2018-08-15 15:02:24 +03:00
Roman Zeyde
288cda518c
Document TLS-termination proxy example 2018-08-15 15:00:14 +03:00
Roman Zeyde
b78e047dfa
Separate default monitoring ports for testnet and regtest 2018-08-14 10:16:01 +03:00
Roman Zeyde
2f1e4123e1
Update usage.md with Electrum installation URL 2018-08-12 13:50:45 +03:00
Roman Zeyde
45b507a241
Add optional --cookie flag to usage example 2018-08-02 14:05:56 +03:00
Roman Zeyde
00210f6e29
Remove optional bitcoind flag from doc/usage.md 2018-08-02 14:03:19 +03:00
Roman Zeyde
96c0737649
Add key/value separators for schema doc 2018-08-01 13:41:27 +03:00
Roman Zeyde
a32f718c9a
Fix local electrum invocation script path 2018-07-25 12:21:55 +03:00
Roman Zeyde
18a21bfe56
Add simple bash script for running local Electrum client 2018-07-22 22:15:04 +03:00
Roman Zeyde
ab4747ce7e
Add cmake to installation instructions 2018-07-15 07:49:23 +03:00
Roman Zeyde
9a89e6a2d8
Update README with latest performance metrics 2018-07-12 23:26:37 +03:00
Roman Zeyde
c82ceb6ad7
Update usage documentation for JSONRPC cookie 2018-07-08 22:22:32 +03:00
Roman Zeyde
a797a3864e
Move usage instructions to doc/ subdirectory 2018-07-07 12:20:04 +03:00
Roman Zeyde
b421df8c10
Add short schema description 2018-07-02 15:53:04 +03:00