dashpay / platform

L2 solution for seriously fast decentralized applications for the Dash network
https://dashplatform.readme.io/docs/introduction-what-is-dash-platform
MIT License
67 stars 40 forks source link

`yarn setup` Config with name 'local_seed' is not present #1536

Closed coolaj86 closed 4 days ago

coolaj86 commented 11 months ago

After overcoming #1535 I get a success / failed about ENVs not being set?

Not sure if this is a real error, or just noise.

yarn setup
# ...
success ✨ Done in 87.337s
platform.drive.abci.docker.build.enabled set to true
platform.dapi.api.docker.build.enabled set to true
dashmate.helper.docker.build.enabled set to true
platform.drive.tenderdash.consensus.createEmptyBlocksInterval set to 10s
platform.drive.abci.logs.stdout.level set to trace
[STARTED] System requirements
[FAILED] Docker is not installed. Please follow instructions https://docs.docker.com/engine/install/
Mint 100 Dash to faucet address
    ConfigIsNotPresentError: Config with name 'local_seed' is not present
Internal error. Some of the env variables are empty. Please check logs above.
pshenmic commented 11 months ago

The error a bit upper:

[FAILED] Docker is not installed. Please follow instructions https://docs.docker.com/engine/install/
coolaj86 commented 11 months ago

What does it need docker for in this case?

How can I skip past it?

pshenmic commented 11 months ago

You can't do yarn setup without docker, because it is meant to setup a local regtest environment on your computer, consisting of 4 nodes (seed + 3 evonodes), that simulates a network with platform quorums. I'm not sure you can do this without Docker right now

yarn setup command builds the project and sets up a dashmate local mode group node (that you later start with yarn start)

coolaj86 commented 11 months ago
  1. How do I run it on testnet?
  2. How do I run a seed node? \ (is that a masternode?)
  3. How do I run an evo node?

Spinning up 7 nodes is not a problem. I don't need dicker for that because I don't need to do it on just one computer.

pshenmic commented 11 months ago

The only supported environment is Docker for now, and all developers are writing, test and release in Docker, however going standalone isn't impossible.

You will need to:

Once there are enough quorums and initial platform start height, drive + tenderdash should initiate an initChain and begin producing platform blocks.

I suggest you to go with Docker first, once you get it on one host, you'll have a chance to peek it and repeat everything separately. There is a lot of bootstrap code to initialize network in the dashmate, all collaterals, and other necessary stuff.