diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-06-11 18:13:09 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-06-11 18:13:09 -0500 |
commit | c48722caa9166b6fd646778dfefd71d1f131193f (patch) | |
tree | 07636263c3f2b2f84ec5e969e2dfe2786e7c39c6 /src/device/device_ledger.cpp | |
parent | Merge pull request #5583 (diff) | |
parent | cmake: do not use -mmitigate-rop on GCC >= 9.1 (diff) | |
download | monero-c48722caa9166b6fd646778dfefd71d1f131193f.tar.xz |
Merge pull request #5613
2cbe756 p2p: fix GCC 9.1 crash (moneromooo-monero)
35c20c4 Fix GCC 9.1 build warnings (moneromooo-monero)
e284889 cmake: do not use -mmitigate-rop on GCC >= 9.1 (moneromooo-monero)
Diffstat (limited to 'src/device/device_ledger.cpp')
-rw-r--r-- | src/device/device_ledger.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/device/device_ledger.cpp b/src/device/device_ledger.cpp index 200370564..eba633da8 100644 --- a/src/device/device_ledger.cpp +++ b/src/device/device_ledger.cpp @@ -90,6 +90,20 @@ namespace hw { AKout = keys.AKout; } + ABPkeys &ABPkeys::operator=(const ABPkeys& keys) { + if (&keys == this) + return *this; + Aout = keys.Aout; + Bout = keys.Bout; + is_subaddress = keys.is_subaddress; + is_change_address = keys.is_change_address; + additional_key = keys.additional_key; + index = keys.index; + Pout = keys.Pout; + AKout = keys.AKout; + return *this; + } + bool Keymap::find(const rct::key& P, ABPkeys& keys) const { size_t sz = ABP.size(); for (size_t i=0; i<sz; i++) { |