Part of [Create stack for lotus mainnet and calibration](https://www.notion.so/Create-stack-for-lotus-mainnet-and-calibration-700b4903f2004a4fb440ebb6922da954)
- This PR is based on stack [mainnet-lotus](https://git.vdb.to/cerc-io/stack-orchestrator/src/branch/lotus-stack/stack_orchestrator/data/stacks/mainnet-lotus) in SO branch [lotus-stack](https://git.vdb.to/cerc-io/stack-orchestrator/src/branch/lotus-stack)
- Use manually downloaded snapshot for running Lotus node with `DOCKER_LOTUS_IMPORT_SNAPSHOT` env
- Support running Lotus node for Calibration network
- Use `cerc-io/lotus` release [v1.27.0-rc3-interal-0.0.1](https://git.vdb.to/cerc-io/lotus/releases/tag/v1.27.0-rc3-interal-0.0.1)
- Add Lotus node config params with default values
- `LOTUS_FEVM_ENABLEETHRPC`: true
- [Enables eth_rpc](https://git.vdb.to/cerc-io/lotus/src/tag/v1.27.0-rc3-interal-0.0.1/documentation/en/default-lotus-config.toml#L248)
- `LOTUS_EVENTS_ENABLEACTOREVENTSAPI`: true
- [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)
- `LOTUS_INDEX_ENABLEMSGINDEX`: 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)
- Should be the fix for incorrect `eth_call` behaviour
- `LOTUS_CHAINSTORE_ENABLESPLITSTORE`: 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)
- `LOTUS_FEVM_ETHTXHASHMAPPINGLIFETIMEDAYS`: 0
- [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)
- LOTUS_FVM_CONCURRENCY: 4
- [Adjust the amount of threads used for more concurrent FMV execution](https://git.vdb.to/cerc-io/lotus/src/tag/v1.27.0-rc3-interal-0.0.1/CHANGELOG.md?display=source#L1179)
- LOTUS_SKIP_APPLY_TS_MESSAGE_CALL_WITH_GAS: 0
- [If node is a Storage Provider and is pushing many messages within a short period of time, then set to 1](https://git.vdb.to/cerc-io/lotus/src/tag/v1.27.0-rc3-interal-0.0.1/CHANGELOG.md?display=source#L1179)
- Some config params that were set previously but no longer used in release [v1.27.0-rc3-interal-0.0.1](https://git.vdb.to/cerc-io/lotus/releases/tag/v1.27.0-rc3-interal-0.0.1)
- `LOTUS_FEVM_EVENTS_MAXFILTERHEIGHTRANGE`
- `LOTUS_FEVM_EVENTS_FILTERTTL`
- `ALLOWED_DELAY`
- `LOTUS_FEVM_ENABLEETHHASHTOFILECOINCIDMAPPING`
nabarun
self-assigned this 2024-05-24 09:44:30 +00:00
nabarun
removed their assignment 2024-05-24 09:44:40 +00:00
nabarun
self-assigned this 2024-05-24 09:45:00 +00:00
nabarun
changed title from [WIP] Implement stack to run mainnet lotus-node to [WIP] Implement stack to run lotus-node (mainnet and calibration)2024-05-24 09:45:48 +00:00
Consider adding a comment that this file is a copy of the Dockerfile in the lotus repo with some local changes (also consider commenting the changes for ease of future manual merging upstream changes).
Consider adding a comment that this file is a copy of the Dockerfile in the lotus repo with some local changes (also consider commenting the changes for ease of future manual merging upstream changes).
Consider not pinning the branch here. You can specify on the SO command line like:
laconic-so --stack $(pwd)/stack-orchestrator/stacks/lotus-node setup-repositories --branches git.vdb.to/cerc-io/lotus@v1.27.0-rc3-interal-0.0.1
Dev Root is: /home/david/cerc
Checking: /home/david/cerc/lotus: Needs to be fetched
100%|####################################################################################################################################################| 113k/113k [01:15<00:00, 1.49kB/s]
Checking
switching to branch v1.27.0-rc3-interal-0.0.1 in repo cerc-io/lotus
Consider not pinning the branch here. You can specify on the SO command line like:
```
laconic-so --stack $(pwd)/stack-orchestrator/stacks/lotus-node setup-repositories --branches git.vdb.to/cerc-io/lotus@v1.27.0-rc3-interal-0.0.1
Dev Root is: /home/david/cerc
Checking: /home/david/cerc/lotus: Needs to be fetched
100%|####################################################################################################################################################| 113k/113k [01:15<00:00, 1.49kB/s]
Checking
switching to branch v1.27.0-rc3-interal-0.0.1 in repo cerc-io/lotus
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of Create stack for lotus mainnet and calibration
DOCKER_LOTUS_IMPORT_SNAPSHOTenvcerc-io/lotusrelease v1.27.0-rc3-interal-0.0.1LOTUS_FEVM_ENABLEETHRPC: trueLOTUS_EVENTS_ENABLEACTOREVENTSAPI: trueLOTUS_INDEX_ENABLEMSGINDEX: trueeth_callbehaviourLOTUS_CHAINSTORE_ENABLESPLITSTORE: trueLOTUS_FEVM_ETHTXHASHMAPPINGLIFETIMEDAYS: 0LOTUS_FEVM_EVENTS_MAXFILTERHEIGHTRANGELOTUS_FEVM_EVENTS_FILTERTTLALLOWED_DELAYLOTUS_FEVM_ENABLEETHHASHTOFILECOINCIDMAPPING4ed4491e00to092c19c337a0b893a0adtoe75c36ab1d[WIP] Implement stack to run mainnet lotus-nodeto [WIP] Implement stack to run lotus-node (mainnet and calibration)@@ -0,0 +1,156 @@#####################################Consider adding a comment that this file is a copy of the Dockerfile in the lotus repo with some local changes (also consider commenting the changes for ease of future manual merging upstream changes).
@@ -0,0 +3,4 @@source ${CERC_CONTAINER_BASE_DIR}/build-base.shSCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )git stashShould this be here?
@@ -0,0 +49,4 @@## Setup configInside deployment directory, open the `config.env` file and set following env variables:Note that simple environment values can be specified on the
deploy initcommand line like:@@ -0,0 +2,4 @@name: lotus-nodedescription: "Lotus node stack"repos:- git.vdb.to/cerc-io/lotus@v1.27.0-rc3-interal-0.0.1Consider not pinning the branch here. You can specify on the SO command line like:
Going to merge this one since it's the weekend and it would be nice to start using/enhancing it..