OSDN Git Service

update master (#487)
[bytom/bytom-spv.git] / protocol / bc / spend.go
index b9c265c..d957bf9 100644 (file)
@@ -10,7 +10,6 @@ import "io"
 func (Spend) typ() string { return "spend1" }
 func (s *Spend) writeForHash(w io.Writer) {
        mustWriteForHash(w, s.SpentOutputId)
-       mustWriteForHash(w, s.Data)
        mustWriteForHash(w, s.ExtHash)
 }
 
@@ -23,10 +22,9 @@ func (s *Spend) SetDestination(id *Hash, val *AssetAmount, pos uint64) {
 }
 
 // NewSpend creates a new Spend.
-func NewSpend(spentOutputID *Hash, data *Hash, ordinal uint64) *Spend {
+func NewSpend(spentOutputID *Hash, ordinal uint64) *Spend {
        return &Spend{
                SpentOutputId: spentOutputID,
-               Data:          data,
                Ordinal:       ordinal,
        }
 }