Getting ready to format a Bitcoin transaction
This commit is contained in:
@@ -39,7 +39,7 @@ impl SideNode {
|
||||
loop {
|
||||
match self.stdin_receiver.try_recv() {
|
||||
Ok(stdin) => {
|
||||
let transaction = utils::fake_transaction_json(stdin);
|
||||
let transaction = utils::fake_generic_transaction_json(stdin);
|
||||
let json = serde_json::to_value(transaction).unwrap();
|
||||
let signed_op = self.add_transaction_local(json);
|
||||
println!("STDIN: {}", utils::shappy(signed_op.clone()));
|
||||
|
||||
@@ -29,7 +29,7 @@ pub(crate) fn home(name: &String) -> std::path::PathBuf {
|
||||
}
|
||||
|
||||
/// Generate a fake transaction with customizable from_pubkey String
|
||||
pub fn fake_transaction_json(from: String) -> Value {
|
||||
pub fn fake_generic_transaction_json(from: String) -> Value {
|
||||
json!({
|
||||
"from": from,
|
||||
"to": "Bob",
|
||||
|
||||
Reference in New Issue
Block a user