You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For Linux users, remove the empty string (`''`) after `-i` in the `sed` commands:
80
80
81
81
```sh
82
-
sed -i "s/SampleFrom = .*/SampleFrom = $TRUSTED_HEIGHT/"~/.celestia-light-mocha-4/config.toml
83
-
sed -i "s/TrustedHash = .*/TrustedHash = \"$TRUSTED_HASH\"/"~/.celestia-light-mocha-4/config.toml
82
+
sed -i "s/SyncFromHeight = .*/SyncFromHeight = $TRUSTED_HEIGHT/"~/.celestia-light-mocha-4/config.toml
83
+
sed -i "s/SyncFromHash = .*/SyncFromHash = \"$TRUSTED_HASH\"/"~/.celestia-light-mocha-4/config.toml
84
84
```
85
85
86
86
:::
87
87
88
+
## Historical queries
89
+
90
+
::: warning
91
+
Default light nodes no longer support historical queries. By default, nodes maintain a sliding window of headers, bounded by Tail and Head headers. Requests with height below the Tail are rejected.
92
+
93
+
This is, however, temporary, and lazy header fetching will be available with Backward Sync.
94
+
:::
95
+
96
+
To retain the ability to request older queries with light nodes, use the new configuration fields to set an absolute header that the node will sync from:
97
+
-`Header.Syncer.SyncFromHeight`: Set the height from which the node will sync
98
+
-`Header.Syncer.SyncFromHash`: Set the hash from which the node will sync
99
+
100
+
By configuring these fields, your light node will maintain history from the specified height onward, allowing you to query historical data from that point.
101
+
88
102
## For service operators
89
103
90
104
If you're using multiple light nodes for similar services like tracking the same rollup,
Copy file name to clipboardExpand all lines: how-to-guides/quick-start.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,8 +84,8 @@ Let's set the trusted hash!
84
84
85
85
1. Set the trusted height & hash
86
86
1. Open your `config.toml` at `~/.celestia-light-{{ constants.mochaChainId }}/config.toml`
87
-
1. Set `DASer.SampleFrom` to the trusted height (e.g. `SampleFrom = 123456`)
88
-
1. Set `Header.TrustedHash` to the trusted hash (e.g. `TrustedHash = "E8BD0C48260C496BB7A4D8D1E7BDBF1F26A2FE3CF5714DECE1741B2FFB3C095C"` )
87
+
1. Set `Header.Syncer.SyncFromHeight` to the trusted height (e.g. `SyncFromHeight = 123456`)
88
+
1. Set `Header.Syncer.SyncFromHash` to the trusted hash (e.g. `SyncFromHash = "E8BD0C48260C496BB7A4D8D1E7BDBF1F26A2FE3CF5714DECE1741B2FFB3C095C"` )
89
89
90
90
> If you don't do this, when trying to retrieve data in a few minutes, you'll see a response saying `"result": "header: syncing in progress: localHeadHeight: 94721, requestedHeight: 2983850"`. You'll either need to let the node sync to the `requestedHeight`, or use quick sync with trusted hash to do this.
91
91
> Learn more in [the trusted hash quick sync guide](/how-to-guides/celestia-node-trusted-hash.md).
0 commit comments