mirror of
https://github.com/mempool/mempool.git
synced 2025-09-21 10:11:05 +02:00
standardize taproot witness treatment
This commit is contained in:
@@ -346,8 +346,7 @@ export class TransactionsListComponent implements OnInit, OnChanges, OnDestroy {
|
||||
const tapleafVersion = parseInt(controlBlock.slice(0, 2), 16) & 0xfe;
|
||||
// simplicity script spend
|
||||
if (tapleafVersion === 0xbe) {
|
||||
const scriptHex = vin.witness[1]; // simplicity program is the second witness element
|
||||
vin.inner_simplicityscript = scriptHex;
|
||||
vin.inner_simplicityscript = vin.witness[1]; // simplicity program is the second witness element
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user