diff --git a/.gitignore b/.gitignore index 764556d..990f1e8 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ target/ history.txt /.idea/ tarpaulin-report.html -/log* \ No newline at end of file +/log* +silentdragonlite-cli diff --git a/Makefile b/Makefile index 89e0876..f790ab1 100644 --- a/Makefile +++ b/Makefile @@ -11,10 +11,13 @@ help: @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' about: ## Display release info - printf "Hush Silentdragonlite-cli Makefile by jahway603" + printf "Hush Silentdragonlite-cli Makefile by jahway603\n" build: ## Build the release cargo build --release + cp `pwd`/target/release/$(PROJECT_NAME) . + printf "Hush silentdragonlite-cli is ready for you\n" clean: ## Clean the repo cargo clean + rm $(PROJECT_NAME) diff --git a/lib/src/lightwallet.rs b/lib/src/lightwallet.rs index aa6792c..d137ec7 100644 --- a/lib/src/lightwallet.rs +++ b/lib/src/lightwallet.rs @@ -102,7 +102,7 @@ impl ToBase58Check for [u8] { payload.extend_from_slice(self); payload.extend_from_slice(suffix); - let mut checksum = double_sha256(&payload); + let checksum = double_sha256(&payload); payload.append(&mut checksum[..4].to_vec()); payload.to_base58() } @@ -199,7 +199,7 @@ impl LightWallet { let zdustextfvk = ExtendedFullViewingKey::from(&zdustextsk); let zdustaddress = zdustextfvk.default_address().unwrap().1; - (zdustaddress) + zdustaddress } pub fn is_shielded_address(addr: &String, config: &LightClientConfig) -> bool { @@ -1999,7 +1999,7 @@ impl LightWallet { consensus_branch_id: u32, spend_params: &[u8], output_params: &[u8], - transparent_only: bool, + _transparent_only: bool, tos: Vec<(&str, u64, Option)>, broadcast_fn: F ) -> Result<(String, Vec), String>