Documentation ¶
Index ¶
- type Diff
- type DiffDb
- func (diff *DiffDb) Close() error
- func (diff *DiffDb) ForceCommit() error
- func (diff *DiffDb) GetDiff(blockNum *big.Int) (Diff, error)
- func (diff *DiffDb) SetDiffAccount(block *big.Int, address common.Address) error
- func (diff *DiffDb) SetDiffKey(block *big.Int, address common.Address, key common.Hash, mutated bool) error
- type Key
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffDb ¶
type DiffDb struct {
// contains filtered or unexported fields
}
/ A DiffDb is a thin wrapper around an Sqlite3 connection. / / Its purpose is to store and fetch the storage keys corresponding to an address that was / touched in a block.
func NewDiffDb ¶
/ Instantiates a new DiffDb using sqlite at `path`, with `cache` insertions / done in a transaction before it gets committed to the database.
func (*DiffDb) ForceCommit ¶
/ Commits a pending diffdb transaction
func (*DiffDb) GetDiff ¶
/ Gets all the rows for the matching block and converts them to a Diff map.
func (*DiffDb) SetDiffAccount ¶
/ Inserts a new row to the sqlite indicating that the account was modified in that block / at a pre-set key
Click to show internal directories.
Click to hide internal directories.