mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 14:50:52 +01:00
Also fix backend errors caused by P2TR inputs without witness data
This commit is contained in:
parent
7432e6e29b
commit
27c70bd919
1 changed files with 3 additions and 4 deletions
|
@ -460,11 +460,10 @@ export class Common {
|
|||
case 'v0_p2wpkh': flags |= TransactionFlags.p2wpkh; break;
|
||||
case 'v0_p2wsh': flags |= TransactionFlags.p2wsh; break;
|
||||
case 'v1_p2tr': {
|
||||
if (!vin.witness?.length) {
|
||||
throw new Error('Taproot input missing witness data');
|
||||
}
|
||||
flags |= TransactionFlags.p2tr;
|
||||
flags = Common.isInscription(vin, flags);
|
||||
if (vin.witness?.length) {
|
||||
flags = Common.isInscription(vin, flags);
|
||||
}
|
||||
} break;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue