Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyContractStateHash ¶
func VerifyContractStateHash(env *solo.Solo, contract *coreutil.ContractInfo, prefix kv.Key, testName string)
VerifyContractStateHash calculates a hash of the contract state at the latest state index, compares it to the hash stored in <testName>-<contract>.hex, and panics if the hash changed.
func VerifyDBHash ¶
VerifyDBHash calculates a hash of the database contents, compares it to the hash stored in <testName>.hex, and panics if the hash changed. The DB hash includes the whole chain DB, and that includes the whole trie, all blocks, all states, etc, making it difficult to tell what caused the change.
func VerifyStateHash ¶
VerifyStateHash calculates a hash of the chain state at the latest state index, compares it to the hash stored in <testName>-<contract>.hex, and panics if the hash changed.
Types ¶
This section is empty.