diff --git a/base_layer/wallet/src/transaction_service/protocols/transaction_validation_protocol.rs b/base_layer/wallet/src/transaction_service/protocols/transaction_validation_protocol.rs index adff7803e5..d39eb5c16b 100644 --- a/base_layer/wallet/src/transaction_service/protocols/transaction_validation_protocol.rs +++ b/base_layer/wallet/src/transaction_service/protocols/transaction_validation_protocol.rs @@ -322,7 +322,7 @@ where .map_err(TransactionServiceError::ProtobufConversionError)?; let sig = response.signature; if let Some(unconfirmed_tx) = batch_signatures.get(&sig) { - if response.location == TxLocation::Mined { + if response.location == TxLocation::Mined && response.block_hash.is_some() { mined.push(( (*unconfirmed_tx).clone(), response.block_height, @@ -330,6 +330,14 @@ where response.confirmations, )); } else { + warn!( + target: LOG_TARGET, + "Marking transaction {} as unmined and confirmed '{}' with block '{}' (Operation ID: {})", + &unconfirmed_tx.tx_id, + &response.confirmations >= &self.config.num_confirmations_required, + response.block_hash.is_some(), + self.operation_id, + ); unmined.push((*unconfirmed_tx).clone()); } }