-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
document avail batcher settings (#53)
* document avail batcher settings and other undocumented variables * improve the docs for the avail block funnel * reorganize the sections based on feedback * remove delay from avail block funnel example
- Loading branch information
1 parent
1ffdb1f
commit b4e1d81
Showing
5 changed files
with
102 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
docs/home/300-react-to-events/3-funnel-types/800-avail-block-funnel.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
# Avail block funnel | ||
|
||
An analogous to the [evm block funnel](./300-block-funnel.md) but for Avail. | ||
|
||
This funnel will do the following: | ||
|
||
1. Get the latest block number with verified data availability from the Avail light client through the `v2/status` endpoint. [Reference](https://docs.availproject.org/docs/operate-a-node/run-a-light-client/light-client-api-reference#v2status). | ||
2. Fetch a group of `funnelBlockGroupSize` headers (or less if we're already at the tip). | ||
3. Fetch all the submitted data from the Avail light client through the `v2/blocks/{block_number}/data` endpoint ([reference](https://docs.availproject.org/docs/operate-a-node/run-a-light-client/light-client-api-reference#v2blocksblock_numberdatafieldsdataextrinsic)). This means full blocks are never processed, because the light client can filter by app id. | ||
4. Use `TextDecoder` to read the binary input as text, and continue with the Paima concise format processing. | ||
|
||
## Configuration | ||
|
||
```yaml | ||
Avail: | ||
type: avail-main | ||
lightClient: 'http://localhost:7007' | ||
rpc: ws://127.0.0.1:9944 | ||
delay: 200 | ||
confirmationDepth: 10 | ||
funnelBlockGroupSize: 100 | ||
presyncStepSize: 1000 | ||
genesisHash: "0xdd60847daa1119ecc9bdd006b140087737ac03d260ce110ecd7cb33cf721be35" | ||
``` |