storage

package
v0.0.0-...-9ae4c5c Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetrieveCommitByHeight

func RetrieveCommitByHeight(height uint64, commit *flow.StateCommitment) func(*badger.Txn) error

func RetrieveEvents

func RetrieveEvents(height uint64, types []flow.EventType, events *[]flow.Event) func(*badger.Txn) error

func RetrieveHeader

func RetrieveHeader(height uint64, header *flow.Header) func(*badger.Txn) error

func RetrieveHeightByBlock

func RetrieveHeightByBlock(blockID flow.Identifier, height *uint64) func(*badger.Txn) error

func RetrieveHeightByCommit

func RetrieveHeightByCommit(commit flow.StateCommitment, height *uint64) func(*badger.Txn) error

func RetrieveLastCommit

func RetrieveLastCommit(commit *flow.StateCommitment) func(*badger.Txn) error

func RetrievePayload

func RetrievePayload(height uint64, path ledger.Path, payload *ledger.Payload) func(*badger.Txn) error

func SaveCommitForHeight

func SaveCommitForHeight(commit flow.StateCommitment, height uint64) func(*badger.Txn) error

func SaveEvents

func SaveEvents(height uint64, typ flow.EventType, events []flow.Event) func(*badger.Txn) error

func SaveHeaderForHeight

func SaveHeaderForHeight(height uint64, header *flow.Header) func(*badger.Txn) error

func SaveHeightForBlock

func SaveHeightForBlock(blockID flow.Identifier, height uint64) func(*badger.Txn) error

func SaveHeightForCommit

func SaveHeightForCommit(height uint64, commit flow.StateCommitment) func(*badger.Txn) error

func SaveLastCommit

func SaveLastCommit(commit flow.StateCommitment) func(*badger.Txn) error

func SavePayload

func SavePayload(height uint64, path ledger.Path, payload *ledger.Payload) func(*badger.Txn) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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