hidden amounts in wallet: fixed types
This commit is contained in:
parent
572f3c01c6
commit
52de76edd5
4 changed files with 5 additions and 5 deletions
|
|
@ -354,7 +354,7 @@ const currency::txout_htlc& out_get_htlc(const currency::tx_out_v& out_t)
|
|||
return boost::get<currency::txout_htlc>(boost::get<currency::tx_out_bare>(out_t).target);
|
||||
}
|
||||
|
||||
bool wallet2::out_get_mixin_attr(const currency::tx_out_v& out_t)
|
||||
uint8_t wallet2::out_get_mixin_attr(const currency::tx_out_v& out_t)
|
||||
{
|
||||
if (out_t.type() == typeid(currency::tx_out_bare))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ bool gen_chain_switch_1::check_split_not_switched(currency::core& c, size_t ev_i
|
|||
CHECK_TEST_CONDITION(r);
|
||||
CHECK_EQ(1, tx_pool.size());
|
||||
|
||||
std::vector<size_t> tx_outs;
|
||||
std::vector<wallet_out_info> tx_outs;
|
||||
uint64_t transfered;
|
||||
crypto::key_derivation derivation = AUTO_VAL_INIT(derivation);
|
||||
lookup_acc_outs(m_recipient_account_4.get_keys(), tx_pool.front(), get_tx_pub_key_from_extra(tx_pool.front()), tx_outs, transfered, derivation);
|
||||
|
|
@ -223,7 +223,7 @@ bool gen_chain_switch_1::check_split_switched(currency::core& c, size_t ev_index
|
|||
CHECK_EQ(1, tx_pool.size());
|
||||
CHECK_TEST_CONDITION(!(tx_pool.front() == m_tx_pool.front()));
|
||||
|
||||
std::vector<size_t> tx_outs;
|
||||
std::vector<wallet_out_info> tx_outs;
|
||||
uint64_t transfered;
|
||||
crypto::key_derivation derivation = AUTO_VAL_INIT(derivation);
|
||||
lookup_acc_outs(m_recipient_account_2.get_keys(), tx_pool.front(), tx_outs, transfered, derivation);
|
||||
|
|
|
|||
|
|
@ -310,7 +310,7 @@ bool gen_ring_signature_big::check_balances_2(currency::core& c, size_t ev_index
|
|||
CHECK_EQ(balance, get_balance(an_account, chain, mtx));
|
||||
}
|
||||
|
||||
std::vector<size_t> tx_outs;
|
||||
std::vector<wallet_out_info> tx_outs;
|
||||
uint64_t transfered;
|
||||
crypto::key_derivation derivation = AUTO_VAL_INIT(derivation);
|
||||
lookup_acc_outs(m_alice_account.get_keys(), boost::get<transaction>(events[events.size() - 3]), get_tx_pub_key_from_extra(boost::get<transaction>(events[events.size() - 3])), tx_outs, transfered, derivation);
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ bool test_transaction_generation_and_ring_signature()
|
|||
r = crypto::check_ring_signature(pref_hash, boost::get<txin_to_key>(tx_rc1.vin[0]).k_image, output_keys, &boost::get<currency::NLSAG_sig>(tx_rc1.signatures[0]).s[0]);
|
||||
CHECK_AND_ASSERT_MES(r, false, "failed to check ring signature");
|
||||
|
||||
std::vector<size_t> outs;
|
||||
std::vector<wallet_out_info> outs;
|
||||
uint64_t money = 0;
|
||||
crypto::key_derivation derivation = AUTO_VAL_INIT(derivation);
|
||||
r = lookup_acc_outs(rv_acc.get_keys(), tx_rc1, get_tx_pub_key_from_extra(tx_rc1), outs, money, derivation);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue