diff options
author | Jaquee <jaquee.monero@gmail.com> | 2017-08-18 14:27:54 +0200 |
---|---|---|
committer | Jaquee <jaquee.monero@gmail.com> | 2017-08-21 08:11:12 +0200 |
commit | d27fe32e4ad1b4908e0b9d00466366c56eb27c5b (patch) | |
tree | 1867f9c4160586da71465dea71d690b57655c1f0 /src/wallet/wallet2.h | |
parent | import_key_images - allow importing without being connected to daemon (diff) | |
download | monero-d27fe32e4ad1b4908e0b9d00466366c56eb27c5b.tar.xz |
wallet2: export/import wallet data functions
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r-- | src/wallet/wallet2.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index c275ba2a3..c14707477 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -580,9 +580,14 @@ namespace tools std::string sign(const std::string &data) const; bool verify(const std::string &data, const cryptonote::account_public_address &address, const std::string &signature) const; + // Import/Export wallet data std::vector<tools::wallet2::transfer_details> export_outputs() const; size_t import_outputs(const std::vector<tools::wallet2::transfer_details> &outputs); - + payment_container export_payments() const; + void import_payments(const payment_container &payments); + void import_payments_out(const std::list<std::pair<crypto::hash,wallet2::confirmed_transfer_details>> &confirmed_payments); + std::vector<crypto::hash> export_blockchain() const; + void import_blockchain(const std::vector<crypto::hash> &bc); bool export_key_images(const std::string filename); std::vector<std::pair<crypto::key_image, crypto::signature>> export_key_images() const; uint64_t import_key_images(const std::vector<std::pair<crypto::key_image, crypto::signature>> &signed_key_images, uint64_t &spent, uint64_t &unspent, bool check_spent = true); |