Fix dust limit for undefined witness program outputs
This commit is contained in:
@@ -181,7 +181,7 @@ export function isNonStandard(tx: Transaction): boolean {
|
||||
dustSize += getVarIntLength(dustSize);
|
||||
// add value size
|
||||
dustSize += 8;
|
||||
if (['v0_p2wpkh', 'v0_p2wsh', 'v1_p2tr'].includes(vout.scriptpubkey_type)) {
|
||||
if (isWitnessProgram(vout.scriptpubkey)) {
|
||||
dustSize += 67;
|
||||
} else {
|
||||
dustSize += 148;
|
||||
|
||||
Reference in New Issue
Block a user