mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
Client: minor changes
This commit is contained in:
@@ -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)?;
|
||||
|
||||
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user