Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add env variables and update sharelock.md for tx actions indexer #101

Merged
merged 5 commits into from
Feb 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions for-developers/information-and-settings/env-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,20 @@ This table is horizontally scrollable, version information is located in the las
| `BLOCK_RANGES` | | Block ranges to import by catchup fetcher. Implemented in [#5783](https://github.com/blockscout/blockscout/pull/5783) | | v4.1.7+ |
| `FETCH_REWARDS_WAY` | | Tells the application how to calculate block rewards, by fetching via json\_rpc (`trace_block`) or manual by block params (`manual`). | trace\_block | v4.1.4+ |
| `ETHEREUM_JSONRPC_DEBUG_TRACE_TRANSACTION_TIMEOUT` | | Timeout for `debug_traceTransaction` JSON RPC method request in case of `geth` archive node. Supported time formats: [https://pkg.go.dev/time#ParseDuration](https://pkg.go.dev/time#ParseDuration). Introduced in [#5505](https://github.com/blockscout/blockscout/pull/5505) | 5s | v4.1.3+ |
| `ETHEREUM_JSONRPC_DISABLE_ARCHIVE_BALANCES` | | If `true`, all the requests with the method `eth_getBalance` with any block as parameter but `latest` are ignored. Implemented in [#6001](https://github.com/blockscout/blockscout/pull/6001) | `false` | v5.0.0+ |
| `ETHEREUM_JSONRPC_PENDING_TRANSACTIONS_TYPE` | | Defines which method will be used for fetching pending transactions: `default` - default method for fetching internal transactions for current `ETHEREUM_JSONRPC_VARIANT`, `geth` - `txpool_content` method will be used, `parity` - `parity_pendingTransactions` will be used. Implemented in [#6001](https://github.com/blockscout/blockscout/pull/6155) | `default` | v5.0.0+ |
| `DISABLE_TOKEN_INSTANCE_FETCHER` | | If `true`, token instance fetcher doesn't run | `false` | v5.0.0+ |
| `INDEXER_INTERNAL_TRANSACTIONS_BATCH_SIZE` | | Batch size for internal transactions fetcher. Implemented in [#6450](https://github.com/blockscout/blockscout/pull/6450). | 10 | v5.0.0+ |
| `INDEXER_INTERNAL_TRANSACTIONS_CONCURRENCY` | | Concurrency for internal transactions fetcher. Implemented in [#6450](https://github.com/blockscout/blockscout/pull/6450). | 4 | v5.0.0+ |
| `INDEXER_RECEIPTS_BATCH_SIZE` | | Batch size for transaction receipts fetcher. Implemented in [#6454](https://github.com/blockscout/blockscout/pull/6454). | 250 | v5.0.0+ |
| `INDEXER_RECEIPTS_CONCURRENCY` | | Concurrency for transaction receipts fetcher. Implemented in [#6454](https://github.com/blockscout/blockscout/pull/6454). | 10 | v5.0.0+ |
| `INDEXER_COIN_BALANCES_BATCH_SIZE` | | Batch size for coin balances fetcher. Implemented in [#6454](https://github.com/blockscout/blockscout/pull/6454). | 500 | v5.0.0+ |
| `INDEXER_COIN_BALANCES_CONCURRENCY` | | Concurrency for coin balances fetcher. Implemented in [#6454](https://github.com/blockscout/blockscout/pull/6454). | 4 | v5.0.0+ |
| `ETHEREUM_JSONRPC_DISABLE_ARCHIVE_BALANCES` | | If `true`, all the requests with the method `eth_getBalance` with any block as parameter but `latest` are ignored. Implemented in [#6001](https://github.com/blockscout/blockscout/pull/6001) | `false` | v5.0.0+ |
| `ETHEREUM_JSONRPC_PENDING_TRANSACTIONS_TYPE` | | Defines which method will be used for fetching pending transactions: `default` - default method for fetching internal transactions for current `ETHEREUM_JSONRPC_VARIANT`, `geth` - `txpool_content` method will be used, `parity` - `parity_pendingTransactions` will be used. Implemented in [#6001](https://github.com/blockscout/blockscout/pull/6155) | `default` | v5.0.0+ |
| `DISABLE_TOKEN_INSTANCE_FETCHER` | | If `true`, token instance fetcher doesn't run | `false` | v5.0.0+ |
| `INDEXER_INTERNAL_TRANSACTIONS_BATCH_SIZE` | | Batch size for internal transactions fetcher. Implemented in [#6450](https://github.com/blockscout/blockscout/pull/6450). | 10 | v5.0.0+ |
| `INDEXER_INTERNAL_TRANSACTIONS_CONCURRENCY` | | Concurrency for internal transactions fetcher. Implemented in [#6450](https://github.com/blockscout/blockscout/pull/6450). | 4 | v5.0.0+ |
| `INDEXER_RECEIPTS_BATCH_SIZE` | | Batch size for transaction receipts fetcher. Implemented in [#6454](https://github.com/blockscout/blockscout/pull/6454). | 250 | v5.0.0+ |
| `INDEXER_RECEIPTS_CONCURRENCY` | | Concurrency for transaction receipts fetcher. Implemented in [#6454](https://github.com/blockscout/blockscout/pull/6454). | 10 | v5.0.0+ |
| `INDEXER_COIN_BALANCES_BATCH_SIZE` | | Batch size for coin balances fetcher. Implemented in [#6454](https://github.com/blockscout/blockscout/pull/6454). | 500 | v5.0.0+ |
| `INDEXER_COIN_BALANCES_CONCURRENCY` | | Concurrency for coin balances fetcher. Implemented in [#6454](https://github.com/blockscout/blockscout/pull/6454). | 4 | v5.0.0+ |
| `INDEXER_TX_ACTIONS_ENABLE` | | If `true`, transaction action indexer is active. Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | false | master |
| `INDEXER_TX_ACTIONS_MAX_TOKEN_CACHE_SIZE` | | Maximum number of items in an internal cache of tx actions indexing process (to limit memory consumption). Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | 100000 | master |
| `INDEXER_TX_ACTIONS_REINDEX_FIRST_BLOCK` | | The first block of a block range for historical indexing or reindexing of tx actions. Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | (empty) | master |
| `INDEXER_TX_ACTIONS_REINDEX_LAST_BLOCK` | | The last block of a block range for historical indexing or reindexing of tx actions. Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | (empty) | master |
| `INDEXER_TX_ACTIONS_REINDEX_PROTOCOLS` | | Comma-separated names of protocols which should be indexed or reindexed on historical blocks defined by the range. Example: `uniswap_v3,zkbob` - only these protocols will be indexed or reindexed for the defined block range. If the value is empty string (or not defined), all supported protocols will be indexed/reindexed. This option is not applicable to `realtime` and `catchup` fetchers (it always indexes all supported protocols). Implemented in [#6582](https://github.com/blockscout/blockscout/pull/6582). | (empty) | master |
| `INDEXER_CATCHUP_MISSING_RANGES_BATCH_SIZE` | | Batch size for missing ranges collector. Implemented in [#6583](https://github.com/blockscout/blockscout/pull/6583). | 100000 | v5.0.0+ |
| `MIN_MISSING_BLOCK_NUMBER_BATCH_SIZE` | | Batch size for min missing block number updater. Implemented in [#6583](https://github.com/blockscout/blockscout/pull/6583). | 100000 | v5.0.0+ |

Expand Down
1 change: 1 addition & 0 deletions for-developers/information-and-settings/sharelock.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ Note that this should always be enforced because as long as there is one DB tran
| Explorer.Chain.InternalTransaction | internal\_transactions | \[asc: :transaction\_hash, asc: :index\] |
| Explorer.Chain.Token | tokens | asc: :contract\_address\_hash |
| Explorer.Chain.TokenTransfer | token\_transfers | \[asc: :transaction\_hash, asc: :log\_index\] |
| Explorer.Chain.TransactionAction | transaction\_actions | \[asc: :hash, asc: :log\_index\] |
| Explorer.Chain.Address.TokenBalance | address\_token\_balances | \[asc: :address\_hash, asc: :token\_contract\_address\_hash, asc: :block\_number\] |
| Explorer.Chain.Address.CurrentTokenBalance | address\_current\_token\_balances | \[asc: :address\_hash, asc: :token\_contract\_address\_hash\] |
| Explorer.Chain.StakingPool | staking\_pools | :staking\_address\_hash |
Expand Down