diff options
| author | Cozz Lovan <[email protected]> | 2014-11-02 00:14:47 +0100 |
|---|---|---|
| committer | Cozz Lovan <[email protected]> | 2014-11-19 16:04:53 +0100 |
| commit | c1c9d5b415fda7d1310c23857e57d98ac14c3063 (patch) | |
| tree | 8d56d76ed4b19a0a5689a5ec5c866c489ed62c78 /src/qt/walletmodeltransaction.cpp | |
| parent | [Wallet] Prevent user from paying a non-sense fee (diff) | |
| download | discoin-c1c9d5b415fda7d1310c23857e57d98ac14c3063.tar.xz discoin-c1c9d5b415fda7d1310c23857e57d98ac14c3063.zip | |
[Qt] Add Smartfee to GUI
Diffstat (limited to 'src/qt/walletmodeltransaction.cpp')
| -rw-r--r-- | src/qt/walletmodeltransaction.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/walletmodeltransaction.cpp b/src/qt/walletmodeltransaction.cpp index ddd2d09bb..e9e20c7d5 100644 --- a/src/qt/walletmodeltransaction.cpp +++ b/src/qt/walletmodeltransaction.cpp @@ -31,6 +31,11 @@ CWalletTx *WalletModelTransaction::getTransaction() return walletTransaction; } +unsigned int WalletModelTransaction::getTransactionSize() +{ + return (!walletTransaction ? 0 : (::GetSerializeSize(*(CTransaction*)walletTransaction, SER_NETWORK, PROTOCOL_VERSION))); +} + CAmount WalletModelTransaction::getTransactionFee() { return fee; |