mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-25 16:26:48 +00:00

* [NOD-1512] Implement UTXO set deserialization * [NOD-1512] Remove redundant file * [NOD-1512] Don't use big endian for serialization * [NOD-1512] Use Read/Write element * [NOD-1512] Unexport ReadElement * [NOD-1512] Fix StageVirtualUTXOSet * [NOD-1512] Get rid of dagParams in consensusStateManager * [NOD-1512] Get rid of dagParams in consensusStateManager
17 lines
524 B
Go
17 lines
524 B
Go
package model
|
|
|
|
import "github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
|
|
// ReadOnlyUTXOSet represents a UTXOSet that can only be read from
|
|
type ReadOnlyUTXOSet interface {
|
|
Iterator() ReadOnlyUTXOSetIterator
|
|
Entry(outpoint *externalapi.DomainOutpoint) *externalapi.UTXOEntry
|
|
}
|
|
|
|
// ReadOnlyUTXOSetIterator is an iterator over all entries in a
|
|
// ReadOnlyUTXOSet
|
|
type ReadOnlyUTXOSetIterator interface {
|
|
Next() bool
|
|
Get() (outpoint *externalapi.DomainOutpoint, utxoEntry *externalapi.UTXOEntry, err error)
|
|
}
|