mirror of https://github.com/oxen-io/oxen-core.git
Make sure we error if given a non-existant payment address
This commit is contained in:
parent
7b331131d9
commit
9a395be641
|
@ -498,6 +498,11 @@ namespace cryptonote {
|
|||
db::exec_query(update_paid, payment.address, static_cast<int64_t>(amount), static_cast<int64_t>(block_height));
|
||||
update_paid->reset();
|
||||
}
|
||||
else {
|
||||
MERROR("Invalid amounts passed in to save payments for address: " << payment.address << ": that address has no accrued rewards");
|
||||
return false;
|
||||
}
|
||||
|
||||
select_sum->reset();
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue