From 02d22f601011173ee55bca73fcadc7b4252c982d Mon Sep 17 00:00:00 2001 From: DanGould Date: Sun, 7 Jan 2024 12:38:07 -0500 Subject: [PATCH] Add Payjoin payout_queue Trigger --- src/api/server/convert.rs | 1 + src/payout_queue/config.rs | 1 + src/payout_queue/entity.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/src/api/server/convert.rs b/src/api/server/convert.rs index a2617469..e89fbb99 100644 --- a/src/api/server/convert.rs +++ b/src/api/server/convert.rs @@ -233,6 +233,7 @@ impl From for proto::PayoutQueue { proto::payout_queue_config::Trigger::IntervalSecs(seconds.as_secs() as u32) } PayoutQueueTrigger::Manual => proto::payout_queue_config::Trigger::Manual(true), + PayoutQueueTrigger::Payjoin => proto::payout_queue_config::Trigger::Payjoin(true) }; let tx_priority: proto::TxPriority = payout_queue.config.tx_priority.into(); let config = Some(proto::PayoutQueueConfig { diff --git a/src/payout_queue/config.rs b/src/payout_queue/config.rs index 6b35335c..9a2145ad 100644 --- a/src/payout_queue/config.rs +++ b/src/payout_queue/config.rs @@ -44,6 +44,7 @@ pub enum PayoutQueueTrigger { seconds: Duration, }, Manual, + Payjoin, } impl Default for PayoutQueueConfig { diff --git a/src/payout_queue/entity.rs b/src/payout_queue/entity.rs index 5dc2d551..37fc642a 100644 --- a/src/payout_queue/entity.rs +++ b/src/payout_queue/entity.rs @@ -40,6 +40,7 @@ impl PayoutQueue { match self.config.trigger { Interval { seconds } => Some(seconds), Manual => None, + Payjoin => None, } }