Commit Graph

10 Commits

Author SHA1 Message Date
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
96c0737649
Add key/value separators for schema doc 2018-08-01 13:41:27 +03:00
Roman Zeyde
b421df8c10
Add short schema description 2018-07-02 15:53:04 +03:00