Client: minor changes

This commit is contained in:
ghassmo
2021-10-08 12:23:16 +03:00
parent 869452b901
commit fa7d049547
2 changed files with 2 additions and 8 deletions

View File

@@ -127,8 +127,7 @@ impl Cashierd {
// received drk coin
let (drk_pub_key, amount) = recv_coin.recv().await?;
debug!(target: "CASHIER DAEMON", "Receive coin with following address and amount: {}, {}"
, drk_pub_key, amount);
debug!(target: "CASHIER DAEMON", "Receive coin with amount: {}", amount);
// get public key, and token_id of the token
let token = cashier_wallet.get_withdraw_token_public_key_by_dkey_public(&drk_pub_key)?;

View File

@@ -246,17 +246,12 @@ impl Client {
}
if inputs_value > amount {
let inputs_len = inputs.len();
let input = &inputs[inputs_len - 1];
let return_value: u64 = inputs_value - amount;
let own_pub_key = zcash_primitives::constants::SPENDING_KEY_GENERATOR * input.secret;
outputs.push(tx::TransactionBuilderOutputInfo {
value: return_value,
asset_id,
public: own_pub_key,
public: self.main_keypair.public,
});
}