mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-19 13:35:17 +01:00
Small cleanups on the chain docs (#2515)
* Small cleanups on the chain docs * Remove extra whitespace
This commit is contained in:
parent
1903ee30b0
commit
e44a620ea1
1 changed files with 5 additions and 1 deletions
|
@ -13,6 +13,8 @@ that the bitcoind version you are using is >= `v19` as the [`getblockfilter`](ht
|
||||||
rpc is implemented there. You need to make sure bitcoind is started with the `-blockfilterindex` flag. This makes it
|
rpc is implemented there. You need to make sure bitcoind is started with the `-blockfilterindex` flag. This makes it
|
||||||
so we can query filters.
|
so we can query filters.
|
||||||
|
|
||||||
|
> It is important to remember that you need fully synced block headers before you can sync filter headers and filters. Please see [the chain docs](chain.md) for syncing block headers.
|
||||||
|
|
||||||
#### Abstract idea of syncing filters.
|
#### Abstract idea of syncing filters.
|
||||||
|
|
||||||
Our internal infrastructure depends on one function to be implemented to be able to sync filters.
|
Our internal infrastructure depends on one function to be implemented to be able to sync filters.
|
||||||
|
@ -124,6 +126,8 @@ resultF.onComplete { _ =>
|
||||||
|
|
||||||
Yay! Now we have synced block filters from an external data source. If you want to repeatedly sync you can just call
|
Yay! Now we have synced block filters from an external data source. If you want to repeatedly sync you can just call
|
||||||
|
|
||||||
`FilterSync.syncFilters(syncedFiltersChainApi,getFilterFunc)` every time you would like to sync. Again, you need to ensure
|
`FilterSync.syncFilters(syncedFiltersChainApi,getFilterFunc)` every time you would like to sync.
|
||||||
|
|
||||||
|
Again, you need to ensure
|
||||||
your headers are synced before you can sync filters, so make sure that you are calling `ChainSync.sync()` before syncing
|
your headers are synced before you can sync filters, so make sure that you are calling `ChainSync.sync()` before syncing
|
||||||
filters.
|
filters.
|
Loading…
Add table
Reference in a new issue