1
0
Fork 0
forked from lthn/blockchain

added parameter for initial wallet height

This commit is contained in:
cryptozoidberg 2020-05-08 00:52:30 +02:00
parent c39bd62748
commit e7851de6f7
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
3 changed files with 12 additions and 9 deletions

View file

@ -19,15 +19,15 @@ namespace plain_wallet
};
struct open_wallet_response
{
view::transfers_array recent_history;
view::wallet_info wi;
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(recent_history)
KV_SERIALIZE(wi)
END_KV_SERIALIZE_MAP()
};
// struct open_wallet_response
// {
// view::transfers_array recent_history;
// view::wallet_info wi;
// BEGIN_KV_SERIALIZE_MAP()
// KV_SERIALIZE(recent_history)
// KV_SERIALIZE(wi)
// END_KV_SERIALIZE_MAP()
// };
struct sync_status_response
{

View file

@ -431,6 +431,7 @@ public:
wallet_info wi;
std::string seed;
bool recovered;
uint64_t wallet_local_height;
BEGIN_KV_SERIALIZE_MAP()
KV_SERIALIZE(wallet_id)
@ -438,6 +439,7 @@ public:
KV_SERIALIZE(wi)
KV_SERIALIZE(seed)
KV_SERIALIZE(recovered)
KV_SERIALIZE(wallet_local_height)
END_KV_SERIALIZE_MAP()
};

View file

@ -760,6 +760,7 @@ std::string wallets_manager::open_wallet(const std::wstring& path, const std::st
w->get_recent_transfers_history(owr.recent_history.history, 0, txs_to_return, owr.recent_history.total_history_items);
//w->get_unconfirmed_transfers(owr.recent_history.unconfirmed);
w->get_unconfirmed_transfers(owr.recent_history.history);
owr.wallet_local_bc_size = w->get_blockchain_current_size();
//workaround for missed fee
owr.seed = w->get_account().get_restore_braindata();
break;