models

package
v0.0.0-...-579b097 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffRecord

type DiffRecord struct {
	Namespace string          `json:"namespace,omitempty"`
	Key       string          `json:"key,omitempty"`
	Hashed    bool            `json:"hashed"`
	Record1   *SnapshotRecord `json:"snapshotrecord1"`
	Record2   *SnapshotRecord `json:"snapshotrecord2"`
}

DiffRecord represents a diverging record in json

func (*DiffRecord) GetLaterHeight

func (d *DiffRecord) GetLaterHeight() (blockNum uint64, txNum uint64)

Get later height of two snapshotRecords from a DiffRecord. Used for identifying transactions in identifytxs tool. Height of 0, 0 indicates both records are nil so there is no height.

type DiffRecordList

type DiffRecordList struct {
	Ledgerid    string        `json:"ledgerid"`
	DiffRecords []*DiffRecord `json:"diffRecords"`
}

type SnapshotRecord

type SnapshotRecord struct {
	Value    string `json:"value"`
	BlockNum uint64 `json:"blockNum"`
	TxNum    uint64 `json:"txNum"`
}

SnapshotRecord represents the data of a snapshot record in json

Jump to

Keyboard shortcuts

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