OSDN Git Service

feat: add build crosschain input (#91)
[bytom/vapor.git] / database / storage / utxo_entry.go
index 33637d4..b0edbdb 100644 (file)
@@ -1,9 +1,15 @@
 package storage
 
+const (
+       NormalUTXOType uint32 = iota
+       CoinbaseUTXOType
+       CrosschainUTXOType
+)
+
 // NewUtxoEntry will create a new utxo entry
-func NewUtxoEntry(isCoinBase bool, blockHeight uint64, spent bool) *UtxoEntry {
+func NewUtxoEntry(utxoType uint32, blockHeight uint64, spent bool) *UtxoEntry {
        return &UtxoEntry{
-               IsCoinBase:  isCoinBase,
+               Type:        utxoType,
                BlockHeight: blockHeight,
                Spent:       spent,
        }