From 848f6d337b57ca6ddd2b800414712951eae2efd2 Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Thu, 15 Nov 2018 17:32:01 -0800 Subject: [PATCH] Show syncing warning when sending tx --- src/confirm.ui | 13 +++++++++++++ src/sendtab.cpp | 3 +++ 2 files changed, 16 insertions(+) diff --git a/src/confirm.ui b/src/confirm.ui index 0d4653b..c329710 100644 --- a/src/confirm.ui +++ b/src/confirm.ui @@ -146,6 +146,19 @@ + + + + color: red; + + + You are sending a transaction while your node is still syncing. This may not work. + + + true + + + diff --git a/src/sendtab.cpp b/src/sendtab.cpp index b4eeef2..6910b63 100644 --- a/src/sendtab.cpp +++ b/src/sendtab.cpp @@ -505,6 +505,9 @@ bool MainWindow::confirmTx(Tx tx) { } } + // Syncing warning + confirm.syncingWarning->setVisible(Settings::getInstance()->isSyncing()); + // And FromAddress in the confirm dialog confirm.sendFrom->setText(fnSplitAddressForWrap(tx.fromAddr));