mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-11-27 09:33:54 +01:00
Implement fee inclusive transactions (#657)
* Add amount_includes_fee option in TX building * Add --amount_includes_fee CLI option * Implement send 'max' amount Co-authored-by: cliik <cliik@example.com>
This commit is contained in:
@@ -508,6 +508,7 @@ where
|
||||
&mut *w,
|
||||
keychain_mask,
|
||||
args.amount,
|
||||
args.amount_includes_fee.unwrap_or(false),
|
||||
args.minimum_confirmations,
|
||||
args.max_outputs as usize,
|
||||
args.num_change_outputs as usize,
|
||||
@@ -543,6 +544,7 @@ where
|
||||
&parent_key_id,
|
||||
true,
|
||||
use_test_rng,
|
||||
args.amount_includes_fee.unwrap_or(false),
|
||||
)?
|
||||
};
|
||||
|
||||
@@ -696,6 +698,7 @@ where
|
||||
&parent_key_id,
|
||||
false,
|
||||
use_test_rng,
|
||||
false,
|
||||
)?;
|
||||
|
||||
let keychain = w.keychain(keychain_mask)?;
|
||||
@@ -823,6 +826,7 @@ where
|
||||
parent_key_id.clone(),
|
||||
false,
|
||||
true,
|
||||
false,
|
||||
)?;
|
||||
|
||||
// Add inputs and outputs to original context
|
||||
|
||||
Reference in New Issue
Block a user