OSDN Git Service

Merge pull request #201 from Bytom/v0.1
[bytom/vapor.git] / database / storage / utxo_entry.go
index 33637d4..de1c466 100644 (file)
@@ -1,9 +1,16 @@
 package storage
 
+const (
+       NormalUTXOType uint32 = iota
+       CoinbaseUTXOType
+       CrosschainUTXOType
+       VoteUTXOType
+)
+
 // 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,
        }