Add support for remote scanning via custom TCP (#118)

This commit is contained in:
Lee *!* Clagett
2024-09-22 19:55:28 -04:00
committed by Lee *!* Clagett
parent a5d802cd9b
commit cd62461578
31 changed files with 2950 additions and 500 deletions

View File

@@ -40,7 +40,7 @@
#include "wire/msgpack/fwd.h"
namespace lws
{
{
//! Tracks a subset of DB account info for scanning/updating.
class account
{
@@ -127,4 +127,18 @@ namespace lws
//! Track a possible `spend`.
void add_spend(db::spend const& spend);
};
struct by_height
{
bool operator()(account const& left, account const& right) const noexcept
{
return left.scan_height() < right.scan_height();
}
bool operator()(db::account const& left, db::account const& right) const noexcept
{
return left.scan_height < right.scan_height;
}
};
} // lws