Getting ready to format a Bitcoin transaction

This commit is contained in:
Dave Hrycyszyn
2024-06-18 17:12:05 +01:00
parent 089201b7be
commit 60e87383b0
4 changed files with 8 additions and 8 deletions

View File

@@ -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()));

View File

@@ -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",