mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-05 17:05:50 +02:00
utxonursery: adds compile-time iface check for baby and kid outputs
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user