Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MatchResult ¶
type MatchResult int64
MatchResult represents the result of comparing core snapshot of an engine with data node api for the same.
const ( // FullMatch means no discrepancies found. FullMatch MatchResult = iota // SizeMismatch means some expected entries are missing. SizeMismatch // ValuesMismatch means some values disagree between the core snapshot and the data node api. ValuesMismatch )
type Result ¶
type Result struct { Accounts []*dn.AccountBalance Orders []*vega.Order Markets []*vega.Market Parties []*vega.Party Limits *vega.NetworkLimits Assets []*vega.Asset VegaTime int64 Delegations []*vega.Delegation Epoch *vega.Epoch Nodes []*vega.Node NetParams []*vega.NetworkParameter Proposals []*vega.Proposal Deposits []*vega.Deposit Withdrawals []*vega.Withdrawal Transfers []*v1.Transfer Positions []*vega.Position Lps []*vega.LiquidityProvision Stake []*v1.StakeLinking }
Result corresponds to a dataset representing data node state ot core snapshot state.
type SnapshotData ¶
type SnapshotData struct { Version int64 `json:"version"` Height uint64 `json:"height"` Size int64 `json:"size"` }
SnapshotData is a representation of the information we an scrape from the avl tree
Click to show internal directories.
Click to hide internal directories.