Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Jun 24, 2024
1 parent 93ad76f commit b06b7f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions base_layer/wallet/src/transaction_service/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1333,8 +1333,9 @@ where
) -> Result<TxId, TransactionServiceError> {
let tx_id = TxId::new_random();

// If the script is not provided, use the default script as we will replace this later on here with a stealth
// one with the correct public key, for now we only care that the script size is correct
// For a stealth transaction, the script is not provided because the public key that should be included
// is not known at this stage. This will only be known later. For now,
// we include a default public key to ensure that the script size is correct.
let (mut script, use_stealth_address) = match recipient_script {
Some(s) => (s, false),
None => (push_pubkey_script(&Default::default()), true),
Expand Down

0 comments on commit b06b7f6

Please sign in to comment.