Blockchain: add genesisState Option Test Case #2020
Labels
effort: E1 hours
package: blockchain
package: vm
prio: P3 important
target: master
Work to be done towards master branch
type: tests
The new genesisState option (not to be confused with the
genesisState()
method) introduced in #1916 for using a custom genesis state is still completely untested (apart from one direct use case in Clientcli.ts
). This needs some relatively urgent test case addition(s) in theBlockchain
package to see if this option is a) working properly and b) can be used in a consistent way.The format to pass in a custom genesis state has remained the same I guess than it has been in
Common
and a test case should be similar to the test removed in Common customChains.spec.ts I would assume.We should minimally do this before the final releases, especially to be safe on b).
Once the test case is ready it should then be checked/tested if such a Blockchain instance - containing a modified custom genesis state - can then be used in the VM - by passing in the Blockchain instance - to run code on top of a modified genesis state.
Eventually this is also worth yet another test case, since this is an important scenario and we should be really sure that this is working and can be used in a practical way.
Will also cc in @ryanio here in case I am missing something obvious (e.g. test case is there but I overlooked it).
The text was updated successfully, but these errors were encountered: