mirror of
https://github.com/mempool/mempool.git
synced 2025-09-22 19:30:31 +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;
|
const tapleafVersion = parseInt(controlBlock.slice(0, 2), 16) & 0xfe;
|
||||||
// simplicity script spend
|
// simplicity script spend
|
||||||
if (tapleafVersion === 0xbe) {
|
if (tapleafVersion === 0xbe) {
|
||||||
const scriptHex = vin.witness[1]; // simplicity program is the second witness element
|
vin.inner_simplicityscript = vin.witness[1]; // simplicity program is the second witness element
|
||||||
vin.inner_simplicityscript = scriptHex;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user