mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-06 06:06:49 +00:00

* start * pass tests, (cannot get before put!) and clean up. * add rpc call. * create and pass tests, fix bugs. fully implement rpc * As always fmt * remover old test * clean up proto comment * put the logger back in place. * revert back to 10 sec limit. * migration, change utxoChanged removal to whole utxoEntryPair, add methods to update circulating supply, intialize circulating supply from reset. * Update utxoindex.go * ad * rename to max, change comment * one more total to max Co-authored-by: Ori Newman <orinewman1@gmail.com>
21 lines
730 B
Go
21 lines
730 B
Go
package externalapi
|
|
|
|
// UTXOEntry houses details about an individual transaction output in a utxo
|
|
// set such as whether or not it was contained in a coinbase tx, the daa
|
|
// score of the block that accepts the tx, its public key script, and how
|
|
// much it pays.
|
|
type UTXOEntry interface {
|
|
Amount() uint64 // Utxo amount in Sompis
|
|
ScriptPublicKey() *ScriptPublicKey // The public key script for the output.
|
|
BlockDAAScore() uint64 // Daa score of the block accepting the tx.
|
|
IsCoinbase() bool
|
|
Equal(other UTXOEntry) bool
|
|
}
|
|
|
|
// OutpointAndUTXOEntryPair is an outpoint along with its
|
|
// respective UTXO entry
|
|
type OutpointAndUTXOEntryPair struct {
|
|
Outpoint *DomainOutpoint
|
|
UTXOEntry UTXOEntry
|
|
}
|