1
0
Fork 0
forked from lthn/blockchain

added transfer_internal_index to wallet_transfer_info struct

This commit is contained in:
cryptozoidberg 2021-07-01 21:05:50 +02:00
parent e27b8fdf18
commit 2e5c493004
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
2 changed files with 4 additions and 1 deletions

View file

@ -1662,7 +1662,7 @@ void wallet2::handle_pulled_blocks(size_t& blocks_added, std::atomic<bool>& stop
//block matched in that number
last_matched_index = height;
been_matched_block = true;
WLT_LOG_L2("Block " << bl_id << " @ " << height << " is already in wallet's blockchain");
WLT_LOG_L4("Block " << bl_id << " @ " << height << " is already in wallet's blockchain");
}
else
{
@ -3207,6 +3207,7 @@ void wallet2::get_recent_transfers_history(std::vector<wallet_public::wallet_tra
trs.push_back(*it);
load_wallet_transfer_info_flags(trs.back());
last_item_index = it - m_transfer_history.rbegin();
trs.back().transfer_internal_index = last_item_index;
if (trs.size() >= count)
{

View file

@ -111,6 +111,7 @@ namespace wallet_public
bool show_sender;
std::vector<escrow_contract_details> contract;
uint16_t extra_flags;
uint64_t transfer_internal_index;
//not included in kv serialization map
@ -139,6 +140,7 @@ namespace wallet_public
KV_SERIALIZE(show_sender)
KV_SERIALIZE(contract)
KV_SERIALIZE(service_entries)
KV_SERIALIZE(transfer_internal_index)
END_KV_SERIALIZE_MAP()
};