Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountState ¶
type AccountState struct { AccountRoot data.AccountRoot RippleState []data.RippleState }
type CanonicalTxSet ¶
type CanonicalTxSet struct {
// contains filtered or unexported fields
}
func (*CanonicalTxSet) Add ¶
func (s *CanonicalTxSet) Add(tx data.Transaction)
func (CanonicalTxSet) Len ¶
func (s CanonicalTxSet) Len() int
func (CanonicalTxSet) Less ¶
func (s CanonicalTxSet) Less(i, j int) bool
func (CanonicalTxSet) Sort ¶
func (s CanonicalTxSet) Sort(lastClosedLedger data.Hash256)
func (CanonicalTxSet) Swap ¶
func (s CanonicalTxSet) Swap(i, j int)
type LedgerState ¶
type LedgerState struct { *data.Ledger AccountState *RadixMap Transactions *RadixMap Books map[CurrencyPair]Offers // contains filtered or unexported fields }
func NewEmptyLedgerState ¶
func NewEmptyLedgerState(sequence uint32) *LedgerState
func NewLedgerStateFromDB ¶
func (*LedgerState) Fill ¶
func (state *LedgerState) Fill() error
func (*LedgerState) Sequence ¶
func (state *LedgerState) Sequence() uint32
func (*LedgerState) Summary ¶
func (state *LedgerState) Summary() (string, error)
type OpsByAction ¶
type OpsByAction struct{ RadixOperations }
func (OpsByAction) Less ¶
func (ops OpsByAction) Less(i, j int) bool
type OpsByIndex ¶
type OpsByIndex struct{ RadixOperations }
func (OpsByIndex) Less ¶
func (ops OpsByIndex) Less(i, j int) bool
type QueueFunc ¶
type QueueFunc func(*LedgerState, *LedgerState) error
type RadixAction ¶
type RadixAction byte
const ( Addition RadixAction = 'A' Deletion RadixAction = 'D' Movement RadixAction = 'M' )
type RadixMap ¶
type RadixMap struct {
// contains filtered or unexported fields
}
func NewEmptyRadixMap ¶
func NewEmptyRadixMap() *RadixMap
type RadixOperation ¶
type RadixOperation struct { *RadixNode Action RadixAction }
TODO Replace this with NodeId(Depth!)
func NewRadixOperation ¶
func NewRadixOperation(action RadixAction, node data.Storer, depth uint8) *RadixOperation
func (RadixOperation) String ¶
func (r RadixOperation) String() string
type RadixOperations ¶
type RadixOperations []*RadixOperation
func (*RadixOperations) Add ¶
func (ro *RadixOperations) Add(node data.Storer, action RadixAction, depth uint8)
func (RadixOperations) Fold ¶
func (ro RadixOperations) Fold() RadixOperations
Converts nodes that are both added and deleted into moved
func (RadixOperations) Len ¶
func (ro RadixOperations) Len() int
func (RadixOperations) String ¶
func (ro RadixOperations) String() []string
func (RadixOperations) Swap ¶
func (ro RadixOperations) Swap(i, j int)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.