Replies: 3 comments 2 replies
-
Test Checklist for Lotus-Provider WindowPoSt ImplementationFirst run should be on calibration Configuration Setup
Miner Operations
Lotus-Provider Configuration
Functional Tests
Data Exploration and Validation
Logging and Feedback
Error Handling and Reporting
Documentation
|
Beta Was this translation helpful? Give feedback.
-
Miner config.toml
provider.toml
[HarmonyDB]
# HOSTS is a list of hostnames to nodes running YugabyteDB
# in a cluster. Only 1 is required
#
# type: []string
# env var: LOTUS_HARMONYDB_HOSTS
Hosts = ["127.0.1.1"]
# The Yugabyte server's username with full credentials to operate on Lotus' Database. Blank for default.
#
# type: string
# env var: LOTUS_HARMONYDB_USERNAME
#Username = "yugabyte"
# The password for the related username. Blank for default.
#
# type: string
# env var: LOTUS_HARMONYDB_PASSWORD
#Password = "yugabyte"
# The database (logical partition) within Yugabyte. Blank for default.
#
# type: string
# env var: LOTUS_HARMONYDB_DATABASE
#Database = "yugabyte"
# The port to find Yugabyte. Blank for default.
#
# type: string
# env var: LOTUS_HARMONYDB_PORT
#Port = "5433"
ERROR: creating node: starting node: could not build arguments for function "reflect".makeFuncStub (/snap/go/10426/src/reflect/asm_amd64.s:28): failed to build *paths.Local: could not build arguments for function "reflect".makeFuncStub (/snap/go/10426/src/reflect/asm_amd64.s:28): failed to build paths.SectorIndex: could not build arguments for function "reflect".makeFuncStub (/snap/go/10426/src/reflect/asm_amd64.s:28): failed to build *paths.IndexProxy: could not build arguments for function "reflect".makeFuncStub (/snap/go/10426/src/reflect/asm_amd64.s:28): failed to build *harmonydb.DB: received non-nil error from function "reflect".makeFuncStub (/snap/go/10426/src/reflect/asm_amd64.s:28): unable to connect to db: host=127.0.0.1 dbname=yugabyte port=5433 user=yugabyte password=yugabyte , err: failed to connect to `host=127.0.0.1 user=yugabyte database=yugabyte`: dial error (dial tcp 127.0.0.1:5433: connect: connection refused)
|
Beta Was this translation helpful? Give feedback.
-
RESPONSES (Comprehensive so far)
|
Beta Was this translation helpful? Give feedback.
-
Steps
Yugabyte
lotus-provider
code but can be changed. It also looks foryugabyte
as a hostname by default.Miner
Lotus-Provider Configuration
Generate the default configuration file:
./lotus-provider --db-host=localhost config default > base.toml
./lotus-provider --db-host=localhost config set base.toml
❗ This creates the "base" layer which is always loaded if it exists.
Additional layers can give different machines different settings with
--layers=my1,my2,my3
.🗒️ Note: The Lotus-Provider binary is the only local file needed to run. However, storage.json (if defined by CLI or default) will be used and should provide file access. There is no way to make this file other than to borrow it.
Explore Data
You can see the would-be posts using
ysql
, a Yugabyte bin tool:Explore all the tables:
Status 🟠
As of Nov 1, this implementation does not persist to chain. This is expected to change soon.
Beta Was this translation helpful? Give feedback.
All reactions