ZMQ pub blocks (#97)

This commit is contained in:
Lee *!* Clagett
2024-03-31 13:32:33 -04:00
committed by Lee *!* Clagett
parent 486ad3b616
commit d49cc0df9a
10 changed files with 204 additions and 5 deletions

View File

@@ -31,6 +31,8 @@
namespace lws
{
class account;
namespace db
{
enum account_flags : std::uint8_t;

View File

@@ -274,7 +274,7 @@ namespace db
\param chain List of block hashes that `accts` were scanned against.
\param accts Updated to `height + chain.size()` scan height.
\return True iff LMDB successfully committed the update.
\return Number of updated accounts, and a list of webhooks that triggered.
*/
expect<std::pair<std::size_t, std::vector<webhook_tx_confirmation>>>
update(block_id height, epee::span<const crypto::hash> chain, epee::span<const lws::account> accts, epee::span<const pow_sync> pow);