aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletmodel.cpp
diff options
context:
space:
mode:
authorCozz Lovan <cozzlovan@yahoo.com>2014-11-02 00:14:47 +0100
committerCozz Lovan <cozzlovan@yahoo.com>2014-11-19 16:04:53 +0100
commitc1c9d5b415fda7d1310c23857e57d98ac14c3063 (patch)
tree8d56d76ed4b19a0a5689a5ec5c866c489ed62c78 /src/qt/walletmodel.cpp
parente7876b297901a4b49daafc9ccd2b5c34a6214039 (diff)
[Qt] Add Smartfee to GUI
Diffstat (limited to 'src/qt/walletmodel.cpp')
-rw-r--r--src/qt/walletmodel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp
index f7b1552f3e..b20465794d 100644
--- a/src/qt/walletmodel.cpp
+++ b/src/qt/walletmodel.cpp
@@ -277,6 +277,10 @@ WalletModel::SendCoinsReturn WalletModel::prepareTransaction(WalletModelTransact
CClientUIInterface::MSG_ERROR);
return TransactionCreationFailed;
}
+
+ // reject insane fee > 0.1 bitcoin
+ if (nFeeRequired > 10000000)
+ return InsaneFee;
}
return SendCoinsReturn(OK);