utxonursery: adds compile-time iface check for baby and kid outputs
This commit is contained in:
parent
0dcb620194
commit
d8688b7d67
@ -1231,3 +1231,8 @@ func readTxOut(r io.Reader, txo *wire.TxOut) error {
|
|||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Compile-time constraint to ensure kidOutput and babyOutpt implement the
|
||||||
|
// CsvSpendableOutput interface.
|
||||||
|
var _ CsvSpendableOutput = (*kidOutput)(nil)
|
||||||
|
var _ CsvSpendableOutput = (*babyOutput)(nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user