Have GetRecipientPools return a copy

Previously returned a const reference to a non-const object, which could then be
modified under the caller’s feet.
This commit is contained in:
Greg Pfeil 2023-03-21 11:07:18 -06:00
parent 8ebb22c67f
commit 10a1beb7c5
No known key found for this signature in database
GPG Key ID: 1193ACD196ED61F2
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ public:
payments.push_back(payment);
}
const std::set<OutputPool>& GetRecipientPools() const {
std::set<OutputPool> GetRecipientPools() const {
return recipientPools;
}