You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Update run function to accept genesis block as instance of Block.
Motivation
Update default application to return an object below, so that external library can use api as dependency.
With the new architecture, external module will need direct access to API for dependency with type. Therefore, we need to expose the default module api as well.
Update run function to accept genesis block as instance of Block.
Genesis block cannot be maintained in the memory. Therefore, it should be passed in the run phase, and only temporally used. (no assignment as variable). Also, receiving as instance will increase the flexibility of the genesis block format.
Description
run
function to accept genesis block as instance of Block.Motivation
With the new architecture, external module will need direct access to API for dependency with type. Therefore, we need to expose the default module api as well.
Genesis block cannot be maintained in the memory. Therefore, it should be passed in the run phase, and only temporally used. (no assignment as variable). Also, receiving as instance will increase the flexibility of the genesis block format.
Additional Information
The text was updated successfully, but these errors were encountered: