Skip to content

Commit

Permalink
Add Logging for Tx Broadcast and Mined Request (#1406)
Browse files Browse the repository at this point in the history
Merge pull request #1406

Add Logging for Tx Broadcast and Mined Request
  • Loading branch information
CjS77 committed Mar 4, 2020
2 parents 1080a8f + a1e2c31 commit c5fa657
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions base_layer/wallet/src/transaction_service/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1055,6 +1055,10 @@ where
match self.base_node_public_key.clone() {
None => return Err(TransactionServiceError::NoBaseNodeKeysProvided),
Some(pk) => {
info!(
target: LOG_TARGET,
"Attempting to Broadcast TxId: {} to Mempool", completed_tx.tx_id
);
// Broadcast Transaction
self.outbound_message_service
.send_direct(
Expand Down Expand Up @@ -1208,6 +1212,11 @@ where
hashes.push(o.hash());
}

info!(
target: LOG_TARGET,
"Sending Transaction Mined? request for TxId: {} to Base Node", tx_id
);

let request = BaseNodeRequestProto::FetchUtxos(BaseNodeProto::HashOutputs { outputs: hashes });
let service_request = BaseNodeProto::BaseNodeServiceRequest {
request_key: tx_id,
Expand Down

0 comments on commit c5fa657

Please sign in to comment.