Adding Taproot transaction tag

fixes #914
This commit is contained in:
softsimon
2021-11-10 15:05:45 +04:00
parent b81d296635
commit 88e48df8a9
3 changed files with 5 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ export class TxFeaturesComponent implements OnChanges {
potentialP2shGains: 0,
};
isRbfTransaction: boolean;
isTaproot: boolean;
constructor() { }
@@ -26,5 +27,6 @@ export class TxFeaturesComponent implements OnChanges {
}
this.segwitGains = calcSegwitFeeGains(this.tx);
this.isRbfTransaction = this.tx.vin.some((v) => v.sequence < 0xfffffffe);
this.isTaproot = this.tx.vin.some((v) => v.prevout && v.prevout.scriptpubkey_type === 'v1_p2tr');
}
}