forked from lthn/blockchain
added transfer_internal_index to wallet_transfer_info struct
This commit is contained in:
parent
e27b8fdf18
commit
2e5c493004
2 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue