Skip to content

Commit e910b72

Browse files
Update specs/src/specs/store.md
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 32fe1d2 commit e910b72

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

specs/src/specs/store.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ For the main node data, `DefaultStore` struct, an implementation of the Store in
4444

4545
Additional prefixes used by sync services:
4646

47-
- `headerSync`: Used by the header sync service for P2P synced headers.
48-
- `dataSync`: Used by the data sync service for P2P synced transaction data.
49-
47+
- `headerSyncPrefix` with value "hs": Used by the header sync service for P2P synced headers.
48+
- `dataSyncPrefix` with value "ds": Used by the data sync service for P2P synced transaction data.
5049
For example, in a call to `GetBlockByHash` for some block hash `<block_hash>`, the key used in the full node's base key-value store will be `/0/b/<block_hash>` where `0` is the main store prefix and `b` is the block prefix. Similarly, in a call to `GetValidators` for some height `<height>`, the key used in the full node's base key-value store will be `/0/v/<height>` where `0` is the main store prefix and `v` is the validator set prefix.
5150

5251
Inside the key-value store, the value of these various types of data like `Block` is stored as a byte array which is encoded and decoded using the corresponding Protobuf [marshal and unmarshal methods][serialization].

0 commit comments

Comments
 (0)