mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
Compare base addresses due to wallet2 integrated address inconsistency
This commit is contained in:
+3
-2
@@ -667,11 +667,12 @@ void MainWindow::onCreateTransactionSuccess(PendingTransaction *tx, const QVecto
|
||||
tx->refresh();
|
||||
QSet<QString> outputAddresses;
|
||||
for (const auto &output : tx->transaction(0)->outputs()) {
|
||||
outputAddresses.insert(output->address());
|
||||
outputAddresses.insert(WalletManager::baseAddressFromIntegratedAddress(output->address(), constants::networkType));
|
||||
}
|
||||
QSet<QString> destAddresses;
|
||||
for (const auto &addr : address) {
|
||||
destAddresses.insert(addr);
|
||||
// TODO: Monero core bug, integrated address is not added to dests for transactions spending ALL
|
||||
destAddresses.insert(WalletManager::baseAddressFromIntegratedAddress(addr, constants::networkType));
|
||||
}
|
||||
if (!outputAddresses.contains(destAddresses)) {
|
||||
err = QString("%1 %2").arg(err, "Constructed transaction doesn't appear to send to (all) specified destination address(es). Try creating the transaction again.");
|
||||
|
||||
Reference in New Issue
Block a user