Allow multiple addresses in send

This commit is contained in:
Aditya Kulkarni
2019-10-18 10:32:05 -07:00
parent 91de0220ab
commit bd15a081b1
2 changed files with 57 additions and 15 deletions

View File

@@ -757,12 +757,13 @@ impl LightClient {
responses.join("\n")
}
pub fn do_send(&self, addr: &str, value: u64, memo: Option<String>) -> String {
pub fn do_send(&self, addrs: Vec<(&str, u64, Option<String>)>) -> String {
info!("Creating transaction");
let rawtx = self.wallet.send_to_address(
u32::from_str_radix(&self.config.consensus_branch_id, 16).unwrap(), // Blossom ID
u32::from_str_radix(&self.config.consensus_branch_id, 16).unwrap(),
&self.sapling_spend, &self.sapling_output,
vec![(&addr, value, memo)]
addrs
);
match rawtx {