Versions in this module Expand all Collapse all v1 v1.137.2 Nov 5, 2024 v1.137.1 Oct 24, 2024 Changes in this version + const PrefixBlockMeta + const PrefixMempool + const PrefixObservedTx + const TransactionFeeKey + func GetAsgardAddress(chain common.Chain, bridge thorclient.ThorchainBridge) ([]common.Address, error) + func GetConfMulBasisPoint(chain string, bridge thorclient.ThorchainBridge) (cosmos.Uint, error) + func MaxConfAdjustment(confirm uint64, chain string, bridge thorclient.ThorchainBridge) (uint64, error) + func PostKeysignFailure(thorchainBridge thorclient.ThorchainBridge, tx stypes.TxOutItem, ...) error + type BlockMeta struct + BlockHash string + CustomerTransactions []string + Height int64 + PreviousHash string + SelfTransactions []string + func NewBlockMeta(previousHash string, height int64, blockHash string) *BlockMeta + func (b *BlockMeta) AddCustomerTransaction(txid string) + func (b *BlockMeta) AddSelfTransaction(txid string) + func (b *BlockMeta) RemoveCustomerTransaction(txid string) + func (b *BlockMeta) TransactionHashExists(hash string) bool + type PruneBlockMetaFunc func(meta *BlockMeta) bool + type SignCheckpoint struct + IndividualAmounts map[string]int64 + UnsignedTx []byte + type TemporalStorage struct + func NewTemporalStorage(db *leveldb.DB, txidCacheSize int) (*TemporalStorage, error) + func (t *TemporalStorage) GetBlockMeta(height int64) (*BlockMeta, error) + func (t *TemporalStorage) GetBlockMetas() ([]*BlockMeta, error) + func (t *TemporalStorage) GetTransactionFee() (float64, int32, error) + func (t *TemporalStorage) PruneBlockMeta(height int64, filter PruneBlockMetaFunc) error + func (t *TemporalStorage) SaveBlockMeta(height int64, blockMeta *BlockMeta) error + func (t *TemporalStorage) TrackMempoolTx(txid string) (bool, error) + func (t *TemporalStorage) TrackObservedTx(txid string) (bool, error) + func (t *TemporalStorage) UntrackMempoolTx(txid string) error + func (t *TemporalStorage) UntrackObservedTx(txid string) error + func (t *TemporalStorage) UpsertTransactionFee(fee float64, vSize int32) error + type TransactionFee struct + Fee float64 + VSize int32