From 6f0289967fa12afa4bc3299f433bb496a8e7c229 Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Fri, 21 Oct 2016 10:24:03 +0200 Subject: [PATCH] [Qt] Hide nTxConfirmTarget behind WalletModel --- src/qt/walletmodel.cpp | 5 +++++ src/qt/walletmodel.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 305cb4fef..079b8d3a7 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -698,3 +698,8 @@ bool WalletModel::hdEnabled() const { return wallet->IsHDEnabled(); } + +int WalletModel::getDefaultConfirmTarget() const +{ + return nTxConfirmTarget; +} diff --git a/src/qt/walletmodel.h b/src/qt/walletmodel.h index cdac60da3..521d84599 100644 --- a/src/qt/walletmodel.h +++ b/src/qt/walletmodel.h @@ -207,6 +207,8 @@ public: bool hdEnabled() const; + int getDefaultConfirmTarget() const; + private: CWallet *wallet; bool fHaveWatchOnly;