feat: do not allow taproot inputs to be sent for signing

This commit is contained in:
Vlad Stan 2022-09-09 17:06:36 +03:00
parent d77619279d
commit f14689fb60
2 changed files with 19 additions and 0 deletions

View File

@ -104,6 +104,18 @@ async function payment(path) {
})
return
}
const p2trUtxo = this.utxos.find(
u => u.selected && u.accountType === 'p2tr'
)
if (p2trUtxo) {
this.$q.notify({
type: 'warning',
message: 'Taproot Signing not supported yet!',
caption: 'Please manually deselect the Taproot UTXOs',
timeout: 10000
})
return
}
if (!this.serialSignerRef.isAuthenticated()) {
await this.serialSignerRef.hwwShowPasswordDialog()
const authenticated = await this.serialSignerRef.isAuthenticating()

View File

@ -97,6 +97,13 @@
<q-badge v-if="props.row.isChange" color="orange" class="q-mr-md">
change
</q-badge>
<q-badge
v-if="props.row.accountType === 'p2tr'"
color="yellow"
text-color="black"
>
taproot
</q-badge>
</div>
</q-td>