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
In the UTXO model the state is (basically) just the utxo set. In this sense, the current design is perfect with its single Vec of outputs. But there are still a few things that may be desired.
Including a money in the default genesis config is unusual. The default should be empty and the output that goes to SHAWN_PUB_KEY should be expressed in one or more of the specs in chain_spec.rs.
We should figure out the best-practice way of expressing the genesis utxo set in the chain_spec.rs file and provide helper functions or builder pattern or something if necessary. Off the top of my head, maybe something like.
let genesis_utxo_set = vec![(Coin(5), SigCheck(ALICE_PUB_KEY)).into(),
(Amoeba{ generation: 5, ..Default::default()}, UpForGrabs).into()];
The text was updated successfully, but these errors were encountered:
The current genesis config could be a little nicer.
In the UTXO model the state is (basically) just the utxo set. In this sense, the current design is perfect with its single Vec of outputs. But there are still a few things that may be desired.
SHAWN_PUB_KEY
should be expressed in one or more of the specs inchain_spec.rs
.chain_spec.rs
file and provide helper functions or builder pattern or something if necessary. Off the top of my head, maybe something like.The text was updated successfully, but these errors were encountered: