AddressChecker: add torsion check

This commit is contained in:
tobtoht
2025-03-18 08:35:02 +01:00
parent 1c6bd9815b
commit c34ad819a6
3 changed files with 16 additions and 0 deletions
+5
View File
@@ -1388,6 +1388,11 @@ void MainWindow::showAddressChecker() {
return;
}
if (!m_wallet->isAddressTorsionFree(address)) {
Utils::showWarning(this, "Address is not torsion-free", "This address is not compatible with reference wallets.\n\nSending to this address MAY RESULT IN A LOSS OF FUNDS.");
return;
}
SubaddressIndex index = m_wallet->subaddressIndex(address);
if (!index.isValid()) {
// TODO: probably mention lookahead here