Versions in this module Expand all Collapse all v0 v0.5.0 Mar 23, 2021 Changes in this version + type Application struct + func (a *Application) ApplyState(txn *badger.Txn, chainID uint32, height uint32, txs []interfaces.Transaction) (stateHash []byte, err error) + func (a *Application) BeginSnapShotSync(txn *badger.Txn) error + func (a *Application) Cleanup() error + func (a *Application) FinalizeSnapShotRoot(txn *badger.Txn, root []byte, height uint32) error + func (a *Application) FinalizeSync(txn *badger.Txn) error + func (a *Application) GetHeightForTx(txn *badger.Txn, txHash []byte) (uint32, error) + func (a *Application) GetSnapShotNode(txn *badger.Txn, height uint32, key []byte) ([]byte, error) + func (a *Application) GetSnapShotStateData(txn *badger.Txn, utxoID []byte) ([]byte, error) + func (a *Application) GetTxsForGossip(txnState *badger.Txn, currentHeight uint32) ([]interfaces.Transaction, error) + func (a *Application) GetValidProposal(txn *badger.Txn, chainID, height, maxBytes uint32) ([]interfaces.Transaction, []byte, error) + func (a *Application) GetValueForOwner(txn *badger.Txn, curveSpec constants.CurveSpec, account []byte, ...) ([][]byte, *uint256.Uint256, error) + func (a *Application) Init(conDB *consensusdb.Database, memDB *badger.DB, dph *deposit.Handler) error + func (a *Application) IsValid(txn *badger.Txn, chainID uint32, height uint32, stateHash []byte, ...) (bool, error) + func (a *Application) MinedTxGet(txn *badger.Txn, txHash [][]byte) ([]interfaces.Transaction, [][]byte, error) + func (a *Application) PaginateDataByOwner(txn *badger.Txn, curveSpec constants.CurveSpec, account []byte, height uint32, ...) ([]*objs.PaginationResponse, error) + func (a *Application) PendingTxAdd(txn *badger.Txn, chainID uint32, height uint32, txs []interfaces.Transaction) error + func (a *Application) PendingTxContains(txn *badger.Txn, height uint32, txHashes [][]byte) ([][]byte, error) + func (a *Application) PendingTxGet(txn *badger.Txn, height uint32, txHashes [][]byte) ([]interfaces.Transaction, [][]byte, error) + func (a *Application) SetMiningKey(privKey []byte, curveSpec constants.CurveSpec) error + func (a *Application) StoreSnapShotNode(txn *badger.Txn, batch []byte, root []byte, layer int) ([][]byte, int, []trie.LeafNode, error) + func (a *Application) StoreSnapShotStateData(txn *badger.Txn, key []byte, value []byte, data []byte) error + func (a *Application) UTXOContains(txn *badger.Txn, utxoID []byte) (bool, error) + func (a *Application) UTXOGet(txn *badger.Txn, utxoIDs [][]byte) ([]*objs.TXOut, error) + func (a *Application) UTXOGetData(txn *badger.Txn, curveSpec constants.CurveSpec, account []byte, dataIdx []byte) ([]byte, error) + func (a *Application) UnmarshalTx(txb []byte) (interfaces.Transaction, error)