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:
parent
8ebb22c67f
commit
10a1beb7c5
|
@ -99,7 +99,7 @@ public:
|
|||
payments.push_back(payment);
|
||||
}
|
||||
|
||||
const std::set<OutputPool>& GetRecipientPools() const {
|
||||
std::set<OutputPool> GetRecipientPools() const {
|
||||
return recipientPools;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue