Add bad spend tests

This commit is contained in:
Aditya Kulkarni
2019-10-05 15:25:12 -07:00
parent 28477bfedd
commit b080c6061f
2 changed files with 61 additions and 37 deletions

View File

@@ -713,11 +713,11 @@ impl LightClient {
);
match rawtx {
Some(txbytes) => match broadcast_raw_tx(&self.get_server_uri(), txbytes) {
Ok(txbytes) => match broadcast_raw_tx(&self.get_server_uri(), txbytes) {
Ok(k) => k,
Err(e) => e,
},
None => format!("No Tx to broadcast")
Err(e) => format!("No Tx to broadcast. Error was: {}", e)
}
}
}