snarkOS icon indicating copy to clipboard operation
snarkOS copied to clipboard

[Proposal] Add a local development mode to SnarkOS

Open facundoolano opened this issue 3 years ago • 1 comments

There should be a way to run the SnarkOS node in a local development mode, similar to what we've been doing with aleo node start.

This will have two benefits:

  • It will support local application development against the same code as runs in production.
  • It will force us to adjust the node to run in a more environment and node type agnostic manner.

The idea is to eventually remove endpoint definitions from the aleo cli in favor of this local development node mode, removing one of the current sources of duplication and development effort. (we can still support the aleo node start command, only that the implementation will be in SnarkOS)

facundoolano avatar Sep 06 '22 16:09 facundoolano

The intention of the --dev flag in the snarkOS cli was to introduce development nodes. I believe we can hook up snarkOS into the Aleo SDK without much issue, however we currently do not have block generation (beacon) logic implemented in snarkOS yet.

raychu86 avatar Sep 06 '22 23:09 raychu86

There should be a way to run the SnarkOS node in a local development mode, similar to what we've been doing with aleo node start.

This will have two benefits:

  • It will support local application development against the same code as runs in production.
  • It will force us to adjust the node to run in a more environment and node type agnostic manner.

The idea is to eventually remove endpoint definitions from the aleo cli in favor of this local development node mode, removing one of the current sources of duplication and development effort. (we can still support the aleo node start command, only that the implementation will be in SnarkOS)

As per the original issue, aleo node start has been ported to snarkOS and now supports the requested features.

howardwu avatar Jun 16 '23 03:06 howardwu