File tree 1 file changed +11
-11
lines changed
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -565,19 +565,19 @@ impl Wallet {
565
565
566
566
if let Some ( transaction) = transaction {
567
567
if u32:: try_from ( transaction. info . confirmations ) . unwrap ( )
568
- < Runestone :: COMMIT_INTERVAL . into ( )
568
+ >= Runestone :: COMMIT_INTERVAL . into ( )
569
569
{
570
- continue ;
571
- }
572
- }
573
-
574
- let tx_out = self
575
- . bitcoin_client ( )
576
- . get_tx_out ( & commit. txid ( ) , 0 , Some ( true ) ) ?;
570
+ let tx_out = self
571
+ . bitcoin_client ( )
572
+ . get_tx_out ( & commit. txid ( ) , 0 , Some ( true ) ) ?;
577
573
578
- if let Some ( tx_out) = tx_out {
579
- if tx_out. confirmations >= Runestone :: COMMIT_INTERVAL . into ( ) {
580
- break ;
574
+ if let Some ( tx_out) = tx_out {
575
+ if tx_out. confirmations >= Runestone :: COMMIT_INTERVAL . into ( ) {
576
+ break ;
577
+ }
578
+ } else {
579
+ bail ! ( "rune commitment spent, can't send reveal tx" ) ;
580
+ }
581
581
}
582
582
}
583
583
You can’t perform that action at this time.
0 commit comments