You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: if the sesion is on going do not intiate a new one
460
-
// TODO: this is scaffolding for now, peers in the future will evaluate if they should initiate a multi-party payjoin given the number of payment obligations
461
-
if state.wallet_id != WalletId(0){
462
-
returnvec![Action::Wait];
463
-
}
464
-
let receivers = state
465
-
.payment_obligations
466
-
.iter()
467
-
.map(|po| po.to)
468
-
.collect::<HashSet<_>>();
469
-
if receivers.len() < 2{
470
-
returnvec![Action::Wait];
471
-
}
472
-
473
-
// TODO: only one multi-party payjoin session can be active at a time FOR NOW
// TODO: if the sesion is on going do not intiate a new one
460
+
// TODO: this is scaffolding for now, peers in the future will evaluate if they should initiate a multi-party payjoin given the number of payment obligations
461
+
if state.wallet_id != WalletId(0){
462
+
returnvec![Action::Wait];
463
+
}
464
+
let receivers = state
465
+
.payment_obligations
466
+
.iter()
467
+
.map(|po| po.to)
468
+
.collect::<HashSet<_>>();
469
+
if receivers.len() < 2{
470
+
returnvec![Action::Wait];
471
+
}
472
+
473
+
// TODO: only one multi-party payjoin session can be active at a time FOR NOW
474
+
letmut actions = vec![];
475
475
if !state.active_cospends.is_empty(){
476
-
// If we have an active session we should actively participate in it
476
+
// If we have an active session we should actively participate in it
477
477
debug_assert!(state.active_cospends.len() <= 1);
478
478
for bulletin_board_id in state.active_cospends.iter(){
0 commit comments