mirror of
https://github.com/wownero/wownero.git
synced 2026-11-30 05:03:56 +01:00
Add wire::json_writer, and use in some of ZMQ-PUB functions.
This commit is contained in:
committed by
Lee Clagett
parent
fb5b06bd3b
commit
108244cdf5
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user