mirror of
https://github.com/mimblewimble/grin-wallet.git
synced 2025-01-21 03:21:08 +03:00
update finalize output (#446)
This commit is contained in:
parent
040b28f35a
commit
66e2d0d5ae
1 changed files with 8 additions and 4 deletions
|
@ -493,7 +493,7 @@ pub fn output_slatepack<L, C, K>(
|
||||||
slate: &Slate,
|
slate: &Slate,
|
||||||
dest: &str,
|
dest: &str,
|
||||||
lock: bool,
|
lock: bool,
|
||||||
file_only: bool,
|
finalizing: bool,
|
||||||
is_pre_fork: bool,
|
is_pre_fork: bool,
|
||||||
) -> Result<(), libwallet::Error>
|
) -> Result<(), libwallet::Error>
|
||||||
where
|
where
|
||||||
|
@ -533,14 +533,14 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Remove HF3
|
// TODO: Remove HF3
|
||||||
if is_pre_fork || file_only {
|
if is_pre_fork {
|
||||||
PathToSlate((&out_file_name).into()).put_tx(&slate, false)?;
|
PathToSlate((&out_file_name).into()).put_tx(&slate, false)?;
|
||||||
println!();
|
println!();
|
||||||
println!("Transaction file was output to:");
|
println!("Transaction file was output to:");
|
||||||
println!();
|
println!();
|
||||||
println!("{}", out_file_name);
|
println!("{}", out_file_name);
|
||||||
println!();
|
println!();
|
||||||
if !file_only {
|
if !finalizing {
|
||||||
println!("Please send this file to the other party manually");
|
println!("Please send this file to the other party manually");
|
||||||
}
|
}
|
||||||
return Ok(());
|
return Ok(());
|
||||||
|
@ -552,7 +552,11 @@ where
|
||||||
output.sync_all()?;
|
output.sync_all()?;
|
||||||
|
|
||||||
println!();
|
println!();
|
||||||
|
if !finalizing {
|
||||||
println!("Slatepack data follows. Please provide this output to the other party");
|
println!("Slatepack data follows. Please provide this output to the other party");
|
||||||
|
} else {
|
||||||
|
println!("Slatepack data follows.");
|
||||||
|
}
|
||||||
println!();
|
println!();
|
||||||
println!("--- CUT BELOW THIS LINE ---");
|
println!("--- CUT BELOW THIS LINE ---");
|
||||||
println!();
|
println!();
|
||||||
|
|
Loading…
Reference in a new issue