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

This commit is contained in:
Conner Fromknecht committed 2017-10-05 18:13:48 -07:00
1 parent 0dcb620194
commit d8688b7d67
1 file changed
+5
+5
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)