mirror of
https://github.com/monero-project/monero.git
synced 2025-05-06 14:55:03 -04:00
Wallet API: transaction history in progress
This commit is contained in:
parent
02c9df5de2
commit
53a97bdcd3
5 changed files with 19 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue