aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-04-22 13:33:09 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-04-22 13:33:09 +0300
commit53a97bdcd381342bc7d738946a628654a2261a52 (patch)
tree9f139ae6efa26fa5a03a1eb35df86c8ba02aec39 /tests
parentWallet API : transaction history in progress (diff)
downloadmonero-53a97bdcd381342bc7d738946a628654a2261a52.tar.xz
Wallet API: transaction history in progress
Diffstat (limited to 'tests')
-rw-r--r--tests/libwallet_api_tests/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/libwallet_api_tests/main.cpp b/tests/libwallet_api_tests/main.cpp
index 6921e6c3a..51c0a3ca3 100644
--- a/tests/libwallet_api_tests/main.cpp
+++ b/tests/libwallet_api_tests/main.cpp
@@ -31,7 +31,6 @@
#include "gtest/gtest.h"
#include "wallet/wallet2_api.h"
-#include "cryptonote_core/cryptonote_format_utils.h"
#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>
@@ -299,8 +298,11 @@ TEST_F(WalletManagerTest, WalletHistory)
auto transaction_print = [=] (Bitmonero::TransactionInfo * t) {
std::cout << "d: "
<< (t->direction() == Bitmonero::TransactionInfo::Direction_In ? "in" : "out")
- << ", a: " << t->amount()
+ << ", bh: " << t->blockHeight()
+ << ", a: " << Bitmonero::Wallet::displayAmount(t->amount())
+ << ", f: " << Bitmonero::Wallet::displayAmount(t->fee())
<< ", h: " << t->hash()
+ << ", pid: " << t->paymentId()
<< std::endl;
};
@@ -308,8 +310,6 @@ TEST_F(WalletManagerTest, WalletHistory)
ASSERT_TRUE(t != nullptr);
transaction_print(t);
}
-
-
}