lnwallet: add more godoc to InputScript rename ScriptSig field to SigScript

This commit is contained in:
Olaoluwa Osuntokun committed 2019-01-09 15:55:18 -08:00
1 parent 73c9c2ee15
commit bd9ebbd5af
5 files changed
+29 -20

No files matched your search

+8 -4
View File
@@ -50,11 +50,15 @@ func (c *ChannelContribution) toChanConfig() channeldb.ChannelConfig {
}
// InputScript represents any script inputs required to redeem a previous
// output. This struct is used rather than just a witness, or scripSig in
// order to accommodate nested p2sh which utilizes both types of input scripts.
// output. This struct is used rather than just a witness, or scripSig in order
// to accommodate nested p2sh which utilizes both types of input scripts.
type InputScript struct {
Witness [][]byte
ScriptSig []byte
// Witness is the full witness stack required to unlock this output.
Witness wire.TxWitness
// SigScript will only be populated if this is an input script sweeping
// a nested p2sh output.
SigScript []byte
}
// ChannelReservation represents an intent to open a lightning payment channel