forked from such-gitea/wownero-lws
Fix several bugs: (#119)
* lws::account height update should only go up. * Webhook confirmations can start after first new block * Webhook confirmations could face a rescan
This commit is contained in:
committed by
Lee *!* Clagett
parent
3f2916b0fa
commit
e093b16447
@@ -165,7 +165,7 @@ namespace lws
|
||||
|
||||
void account::updated(db::block_id new_height) noexcept
|
||||
{
|
||||
height_ = new_height;
|
||||
height_ = std::max(height_, new_height);
|
||||
spends_.clear();
|
||||
spends_.shrink_to_fit();
|
||||
outputs_.clear();
|
||||
|
||||
Reference in New Issue
Block a user