mirror of
https://codeberg.org/wownero/wownero-lws
synced 2026-01-10 15:45:15 -08:00
ZMQ Pub Spends (#101)
This commit is contained in:
committed by
Lee *!* Clagett
parent
fe9d861dfb
commit
38c4999555
@@ -335,7 +335,8 @@ namespace db
|
||||
enum class webhook_type : std::uint8_t
|
||||
{
|
||||
tx_confirmation = 0, // cannot change values - stored in DB
|
||||
new_account
|
||||
new_account,
|
||||
tx_spend
|
||||
// unconfirmed_tx,
|
||||
// new_block
|
||||
// confirmed_tx,
|
||||
@@ -384,6 +385,19 @@ namespace db
|
||||
};
|
||||
void write_bytes(wire::writer&, const webhook_tx_confirmation&);
|
||||
|
||||
//! Returned by DB when a webhook event "tripped"
|
||||
struct webhook_tx_spend
|
||||
{
|
||||
webhook_key key;
|
||||
webhook_value value;
|
||||
struct tx_info_
|
||||
{
|
||||
spend input;
|
||||
output::spend_meta_ source;
|
||||
} tx_info;
|
||||
};
|
||||
void write_bytes(wire::writer&, const webhook_tx_spend&);
|
||||
|
||||
//! References a specific output that triggered a webhook
|
||||
struct webhook_output
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user