diff options
author | luigi1111 <luigi1111w@gmail.com> | 2016-11-01 11:24:04 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2016-11-01 11:24:04 -0500 |
commit | a970a4e3cf03dd714713f1ac1274ca1f41bc4583 (patch) | |
tree | 18569e2c09872c8ed8a327b39483c3e8d1503132 /src/wallet/wallet2.h | |
parent | Merge pull request #1278 (diff) | |
download | monero-a970a4e3cf03dd714713f1ac1274ca1f41bc4583.tar.xz |
refresh speedup
Compute derivation only once per tx, instead of once per output. Approx 33% faster while using 75% as much CPU on my machine. Note old functions in cryptonote_core (lookup_acc_outs and is_out_to_acc) are still used by tests.
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r-- | src/wallet/wallet2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 6cd288ac1..e17d4a5a4 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -515,7 +515,7 @@ namespace tools void check_genesis(const crypto::hash& genesis_hash) const; //throws bool generate_chacha8_key_from_secret_keys(crypto::chacha8_key &key) const; crypto::hash get_payment_id(const pending_tx &ptx) const; - void check_acc_out(const cryptonote::account_keys &acc, const cryptonote::tx_out &o, const crypto::public_key &tx_pub_key, size_t i, bool &received, uint64_t &money_transfered, bool &error) const; + void check_acc_out_precomp(const crypto::public_key &spend_public_key, const cryptonote::tx_out &o, const crypto::key_derivation &derivation, size_t i, bool &received, uint64_t &money_transfered, bool &error) const; void parse_block_round(const cryptonote::blobdata &blob, cryptonote::block &bl, crypto::hash &bl_id, bool &error) const; uint64_t get_upper_tranaction_size_limit(); std::vector<uint64_t> get_unspent_amounts_vector(); |