Skip to content

Commit

Permalink
cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelPawelec-RDX committed Oct 4, 2024
1 parent 2426f93 commit efa512f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ Release built: _not released yet_
> - `/state/entity/page/non-fungible-vaults/` (when using `non_fungible_include_nfids` opt-in)
### What’s new?
- New configuration options `DataAggregator__Storage__StoreTransactionReceiptEvents`, and `DataAggregator__Storage__StoreReceiptStateUpdates` for data aggregator to configure if transaction's receipt events and receipt state updates should be stored in the database. It is meant to be used by gateway runners who want to reduce their database size. Keep in mind that when disabled `/stream/transactions` and `/stream/transactions` will not return that data.
- Possible values:
- `StoreForAllTransactions` (default) - will store data for all transactions.
- `StoryOnlyForUserTransactionsAndEpochChanges` - will store data for user transactions and transactions that resulted in epoch change.
- `StoreOnlyForUserTransactions` - will store data only for user transactions.
- `DoNotStore` - will not store any data.
- New configuration options `DataAggregator__Storage__StoreTransactionReceiptEvents`, and `DataAggregator__Storage__StoreReceiptStateUpdates` for the data aggregator to configure if a transaction's receipt events and receipt state updates should be stored in the database. It is meant to be used by gateway runners who want to reduce their database size. Keep in mind that when disabled, the corresponding properties will be missing on a response from both the `/stream/transactions` and the `/transaction/committed-details` endpoints. You can save significant space by using `StoryOnlyForUserTransactionsAndEpochChanges` and only excluding round change transactions, which aren't typically read from the `/stream/transactions` endpoint.
- Possible values:
- `StoreForAllTransactions` (default) - will store data for all transactions.
- `StoryOnlyForUserTransactionsAndEpochChanges` - will store data for user transactions and transactions that resulted in epoch change.
- `StoreOnlyForUserTransactions` - will store data only for user transactions.
- `DoNotStore` - will not store any data.

### Bug fixes
- Added missing `total_count` property to `/state/validators/list` response.
Expand Down
10 changes: 10 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,17 @@ The Network Gateway services can be configured in line with the [configuration i

#### Storage
- `DataAggregator__Storage__StoreTransactionReceiptEvents` (type: `enum`, default value: `StoreForAllTransactions`) - controls if data aggregator should store transaction receipt events in database.
- Possible values:
- `StoreForAllTransactions` (default) - will store data for all transactions.
- `StoryOnlyForUserTransactionsAndEpochChanges` - will store data for user transactions and transactions that resulted in epoch change.
- `StoreOnlyForUserTransactions` - will store data only for user transactions.
- `DoNotStore` - will not store any data.
- `DataAggregator__Storage__StoreReceiptStateUpdates` (type: `enum`, default value: `StoreForAllTransactions`) - controls if data aggregator should store transaction receipt state updates in database.
- Possible values:
- `StoreForAllTransactions` (default) - will store data for all transactions.
- `StoryOnlyForUserTransactionsAndEpochChanges` - will store data for user transactions and transactions that resulted in epoch change.
- `StoreOnlyForUserTransactions` - will store data only for user transactions.
- `DoNotStore` - will not store any data.

#### Monitoring
`DataAggregator__Monitoring__StartupGracePeriodSeconds` (type: `int`, default value: `10`) - duration (seconds) of start-up grace period for Data Aggregator.
Expand Down

0 comments on commit efa512f

Please sign in to comment.