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:
Lee *!* Clagett
2024-06-03 19:41:44 -04:00
committed by Lee *!* Clagett
parent 3f2916b0fa
commit e093b16447
6 changed files with 113 additions and 39 deletions

View File

@@ -88,7 +88,7 @@ namespace lws
//! \return A copy of `this`.
account clone() const;
//! \return A copy of `this` with a new height and `outputs().empty()`.
//! \post `height() == max(new_height, height())`, `outputs().empty()`, and `spends.empty()`.
void updated(db::block_id new_height) noexcept;
//! \return Unique ID from the account database, possibly `db::account_id::kInvalid`.