Skip to content

Commit

Permalink
Tx network detection bug solved
Browse files Browse the repository at this point in the history
  • Loading branch information
polespinasa committed Apr 21, 2024
1 parent b8d4bd5 commit a9b906c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/grouphug-server/Config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ ip = "127.0.0.1"
port = "8787"

[network]
name = "mainnet"
name = "testnet"
4 changes: 2 additions & 2 deletions server/grouphug-server/src/utils/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn which_network(tx: &Transaction) -> &str {
let tx_result_mainnet = blockchain_mainnet.get_tx(&tx_id);
match tx_result_mainnet {
Ok(Some(_tx)) => {
return "MAINNET"
return "mainnet"
},
Ok(None) => (),
Err(_) => (),
Expand All @@ -49,7 +49,7 @@ pub fn which_network(tx: &Transaction) -> &str {

match tx_result_testnet {
Ok(Some(_tx)) => {
return "TESTNET";
return "testnet";
},
Ok(None) => (),
Err(_) => (),
Expand Down

0 comments on commit a9b906c

Please sign in to comment.