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)
}
}
// 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,
}
}