Add node config params
This commit is contained in:
parent
1bf133173d
commit
2309c26aea
@ -7,10 +7,17 @@ services:
|
||||
lotus:
|
||||
environment:
|
||||
- DOCKER_LOTUS_IMPORT_SNAPSHOT=/var/lotus-snapshots/snapshot
|
||||
- LOTUS_NETWORK=${CERC_LOTUS_NETWORK}
|
||||
- LOTUS_FEVM_ENABLEETHRPC=true
|
||||
- LOTUS_API_LISTENADDRESS=/ip4/0.0.0.0/tcp/1234/http
|
||||
- LOTUS_LIBP2P_LISTENADDRESSES=/ip4/0.0.0.0/tcp/1235,/ip6/::/tcp/1235,/ip4/0.0.0.0/udp/1235/quic-v1,/ip6/::/udp/1235/quic-v1,/ip4/0.0.0.0/udp/1235/quic-v1/webtransport,/ip6/::/udp/1235/quic-v1/webtransport
|
||||
- LOTUS_NETWORK=${CERC_LOTUS_NETWORK:-mainnet}
|
||||
- LOTUS_EVENTS_ENABLEACTOREVENTSAPI=${CERC_LOTUS_EVENTS_ENABLEACTOREVENTSAPI:-true}
|
||||
- LOTUS_INDEX_ENABLEMSGINDEX=${CERC_LOTUS_INDEX_ENABLEMSGINDEX:-true}
|
||||
- LOTUS_CHAINSTORE_ENABLESPLITSTORE=${CERC_LOTUS_CHAINSTORE_ENABLESPLITSTORE:-true}
|
||||
- GOLOG_LOG_FMT=${CERC_GOLOG_LOG_FMT:-json}
|
||||
- LOTUS_FEVM_ETHTXHASHMAPPINGLIFETIMEDAYS=${CERC_LOTUS_FEVM_ETHTXHASHMAPPINGLIFETIMEDAYS:-0}
|
||||
- LOTUS_SKIP_APPLY_TS_MESSAGE_CALL_WITH_GAS=${CERC_LOTUS_SKIP_APPLY_TS_MESSAGE_CALL_WITH_GAS:-0}
|
||||
- LOTUS_FVM_CONCURRENCY=${CERC_LOTUS_FVM_CONCURRENCY:-4}
|
||||
image: cerc/lotus-node:local
|
||||
volumes:
|
||||
- ${CERC_LOTUS_SNAPSHOT_PATH}:/var/lotus-snapshots/snapshot
|
||||
|
@ -67,6 +67,33 @@ Inside deployment directory, open the `config.env` file and set following env va
|
||||
CERC_LOTUS_SNAPSHOT_PATH=/path-to-file/calibnet-snapshot.car.zst
|
||||
```
|
||||
|
||||
- Some other config values that can be set
|
||||
```bash
|
||||
# Enables the Actor events API that enables clients to consume events
|
||||
# https://git.vdb.to/cerc-io/lotus/src/tag/v1.27.0-rc3-interal-0.0.1/documentation/en/default-lotus-config.toml#L279
|
||||
CERC_LOTUS_EVENTS_ENABLEACTOREVENTSAPI=true
|
||||
|
||||
# Enables indexing of messages on chain
|
||||
# https://git.vdb.to/cerc-io/lotus/src/tag/v1.27.0-rc3-interal-0.0.1/documentation/en/default-lotus-config.toml#L325
|
||||
CERC_LOTUS_INDEX_ENABLEMSGINDEX=true
|
||||
|
||||
# Enable the splitstore
|
||||
# https://git.vdb.to/cerc-io/lotus/src/tag/v1.27.0-rc3-interal-0.0.1/blockstore/splitstore#splitstore-an-actively-scalable-blockstore-for-the-filecoin-chain
|
||||
CERC_LOTUS_CHAINSTORE_ENABLESPLITSTORE=true
|
||||
|
||||
# Delete mappings that have been stored for more than x day in transaction hash lookup database
|
||||
# https://git.vdb.to/cerc-io/lotus/src/tag/v1.27.0-rc3-interal-0.0.1/documentation/en/default-lotus-config.toml#L255
|
||||
CERC_LOTUS_FEVM_ETHTXHASHMAPPINGLIFETIMEDAYS=0
|
||||
|
||||
# Adjust the amount of threads used for more concurrent FMV execution
|
||||
# Recommended formula for concurrency == YOUR_RAM/4
|
||||
# https://git.vdb.to/cerc-io/lotus/src/tag/v1.27.0-rc3-interal-0.0.1/CHANGELOG.md?display=source#L1179
|
||||
CERC_LOTUS_FVM_CONCURRENCY=4
|
||||
|
||||
# If node is a Storage Provider and are pushing many messages within a short period of time, then set to 1
|
||||
CERC_LOTUS_SKIP_APPLY_TS_MESSAGE_CALL_WITH_GAS=0
|
||||
```
|
||||
|
||||
## Start the container
|
||||
|
||||
```bash
|
||||
|
Loading…
Reference in New Issue
Block a user