11 #include <boost/test/unit_test.hpp> 20 std::list<CAccountingEntry> aes;
27 results[ae.nOrderPos] = ae;
33 std::vector<CWalletTx*> vpwtx;
36 std::map<CAmount, CAccountingEntry> results;
42 ae.
nTime = 1333333333;
50 vpwtx[0]->nTimeReceived = (
unsigned int)1333333335;
51 vpwtx[0]->nOrderPos = -1;
53 ae.
nTime = 1333333336;
68 ae.
nTime = 1333333330;
88 wtx.
SetTx(MakeTransactionRef(std::move(tx)));
92 vpwtx[1]->nTimeReceived = (
unsigned int)1333333336;
98 wtx.
SetTx(MakeTransactionRef(std::move(tx)));
102 vpwtx[2]->nTimeReceived = (
unsigned int)1333333329;
103 vpwtx[2]->nOrderPos = -1;
118 ae.
nTime = 1333333334;
void SetTx(CTransactionRef arg)
int64_t nOrderPos
position in ordered transaction list
CCriticalSection cs_wallet
const uint256 & GetHash() const
int64_t IncOrderPosNext(CWalletDB *pwalletdb=nullptr)
Increment the next transaction order id.
BOOST_AUTO_TEST_CASE(acc_orderupgrade)
std::hash for asio::adress
mapValue_t mapValue
Key/value map with information about the transaction.
int64_t CAmount
Amount in lius (Can be negative)
DBErrors ReorderTransactions()
bool AddToWallet(const CWalletTx &wtxIn, bool fFlushOnClose=true)
A transaction with a bunch of additional info that only the owner cares about.
#define BOOST_FIXTURE_TEST_SUITE(a, b)
Testing setup and teardown for wallet.
void ListAccountCreditDebit(const std::string &strAccount, std::list< CAccountingEntry > &entries)
#define BOOST_AUTO_TEST_SUITE_END()
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
std::map< uint256, CWalletTx > mapWallet
A mutable version of CTransaction.
bool AddAccountingEntry(const CAccountingEntry &)
std::string strOtherAccount
#define BOOST_CHECK(expr)