testdbhash

package
v1.4.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

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

func VerifyDBHash(env *solo.Solo, testName string)

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

func VerifyStateHash(env *solo.Solo, testName string)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL