diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-06-11 17:22:11 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-06-11 17:22:11 -0500 |
commit | 538fae4ec29eb79fd11e569a21a4b334a5e94b75 (patch) | |
tree | cc19e574be53d22a2d0468d576be4a5060c501a8 /src/device/device_ledger.cpp | |
parent | Merge pull request #5622 (diff) | |
parent | cmake: do not use -mmitigate-rop on GCC >= 9.1 (diff) | |
download | monero-538fae4ec29eb79fd11e569a21a4b334a5e94b75.tar.xz |
Merge pull request #5614
4cff925 p2p: fix GCC 9.1 crash (monermooo-monero)
f47488c Fix GCC 9.1 build warnings (moneromooo-monero)
ce13a98 cmake: do not use -mmitigate-rop on GCC >= 9.1 (moneromooo-monero)
Diffstat (limited to '')
-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++) { |