diff options
| -rw-r--r-- | src/rpc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rpc.cpp b/src/rpc.cpp index a9eca8a..7b45fea 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp | |||
| @@ -1921,7 +1921,10 @@ static void ForfeitPayoutRecipient(const PayingRecord& r, const std::string& rea | |||
| 1921 | r.blockHeight, r.blockHash)) | 1921 | r.blockHeight, r.blockHash)) |
| 1922 | continue; | 1922 | continue; |
| 1923 | it->amounts.erase(r.address); | 1923 | it->amounts.erase(r.address); |
| 1924 | if (it->amounts.empty() || PayoutFullyPaid(*it)) | 1924 | // PayoutFullyPaid() returns true for an empty amounts map -- there |
| 1925 | // is no recipient in it without a txid -- so the | ||
| 1926 | // `amounts.empty()` disjunct that used to be here decided nothing. | ||
| 1927 | if (PayoutFullyPaid(*it)) | ||
| 1925 | gPendingPayouts.erase(it); | 1928 | gPendingPayouts.erase(it); |
| 1926 | break; | 1929 | break; |
| 1927 | } | 1930 | } |