@@ -130,22 +130,23 @@ impl PayjoinSender {
130
130
) {
131
131
let ( index, tx) = txdata[ 0 ] ;
132
132
let txid = tx. txid ( ) ;
133
- let mut transactions = self . transactions . lock ( ) . unwrap ( ) ;
134
- let position = transactions. iter ( ) . position ( |o| o. txid ( ) == Some ( txid) ) . unwrap ( ) ;
135
- let pj_tx = transactions. remove ( position) ;
133
+ let position = self . transactions . lock ( ) . unwrap ( ) . iter ( ) . position ( |o| o. txid ( ) == Some ( txid) ) . unwrap ( ) ;
134
+ let pj_tx = self . transactions . lock ( ) . unwrap ( ) . remove ( position) ;
136
135
dbg ! ( "found confirmed" , & pj_tx) ;
137
136
let pj_tx = match pj_tx {
138
137
PayjoinTransaction :: PendingFirstConfirmation {
139
138
ref tx,
140
139
first_broadcast_height,
141
140
first_broadcast_hash,
142
- } => transactions. push ( PayjoinTransaction :: PendingThresholdConfirmations {
141
+ } => {
142
+ dbg ! ( "Here in peding first confirmation" ) ;
143
+ self . transactions . lock ( ) . unwrap ( ) . push ( PayjoinTransaction :: PendingThresholdConfirmations {
143
144
tx : tx. clone ( ) ,
144
145
first_broadcast_height,
145
146
first_broadcast_hash,
146
147
latest_confirmation_height : height,
147
148
latest_confirmation_hash : header. block_hash ( ) ,
148
- } ) ,
149
+ } ) } ,
149
150
PayjoinTransaction :: PendingThresholdConfirmations {
150
151
ref tx,
151
152
first_broadcast_height,
@@ -159,7 +160,7 @@ impl PayjoinSender {
159
160
if height - first_broadcast_height >= ANTI_REORG_DELAY {
160
161
let _ = self . event_queue . add_event ( Event :: PayjoinTxSendSuccess { txid } ) ;
161
162
} else {
162
- transactions. push ( PayjoinTransaction :: PendingThresholdConfirmations {
163
+ self . transactions . lock ( ) . unwrap ( ) . push ( PayjoinTransaction :: PendingThresholdConfirmations {
163
164
tx : tx. clone ( ) ,
164
165
first_broadcast_height,
165
166
first_broadcast_hash,
0 commit comments