Add wire::json_writer, and use in some of ZMQ-PUB functions.

This commit is contained in:
Lee *!* Clagett
2026-05-21 17:19:52 -04:00
committed by Lee Clagett
parent fb5b06bd3b
commit 108244cdf5
22 changed files with 1030 additions and 101 deletions
@@ -45,6 +45,7 @@ using namespace epee;
#include "crypto/crypto.h"
#include "crypto/hash.h"
#include "ringct/rctSigs.h"
#include "serialization/wire.h"
using namespace crypto;
@@ -217,6 +218,16 @@ namespace cryptonote
return true;
}
//---------------------------------------------------------------
namespace
{
template<typename F, typename T>
void map_backlog_entry(F& format, T& self)
{
wire::object(format, WIRE_FIELD(id), WIRE_FIELD(weight), WIRE_FIELD(fee));
}
}
WIRE_DEFINE_OBJECT(tx_block_template_backlog_entry, map_backlog_entry);
//---------------------------------------------------------------
crypto::public_key get_destination_view_key_pub(const std::vector<tx_destination_entry> &destinations, const boost::optional<cryptonote::account_public_address>& change_addr)
{
account_public_address addr = {null_pkey, null_pkey};