txscript: Fix typo in IsUnspendable() comment

IsUnspendable allows outputs, not inputs to be pruned instantly.
This commit is contained in:
Calvin Kim 2023-02-13 17:33:00 +09:00 committed by John C. Vernaleo
parent 52082fcbf9
commit 902f797b0c

View File

@ -504,7 +504,7 @@ func checkScriptParses(scriptVersion uint16, script []byte) error {
}
// IsUnspendable returns whether the passed public key script is unspendable, or
// guaranteed to fail at execution. This allows inputs to be pruned instantly
// guaranteed to fail at execution. This allows outputs to be pruned instantly
// when entering the UTXO set.
//
// NOTE: This function is only valid for version 0 scripts. Since the function