utxonursery: adds compile-time iface check for baby and kid outputs

This commit is contained in:
Conner Fromknecht 2017-10-05 18:13:48 -07:00
parent 0dcb620194
commit d8688b7d67
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF

View File

@ -1231,3 +1231,8 @@ func readTxOut(r io.Reader, txo *wire.TxOut) error {
return nil
}
// Compile-time constraint to ensure kidOutput and babyOutpt implement the
// CsvSpendableOutput interface.
var _ CsvSpendableOutput = (*kidOutput)(nil)
var _ CsvSpendableOutput = (*babyOutput)(nil)