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
Click to show internal directories.
Click to hide internal directories.