Skip to content

Commit afdb9b1

Browse files
committed
Update is_mainnet function
1 parent a7b6514 commit afdb9b1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ def tx_priority(size_bytes, fee_btc):
5757
# TODO: Calculate fee rate and use if-elif-else to determine priority
5858

5959

60-
def is_mainnet(address_type):
61-
"""Check if the address type is for Bitcoin mainnet.
60+
def is_mainnet(network):
61+
"""Check if the network is for Bitcoin mainnet.
6262
6363
Args:
64-
address_type: String like 'mainnet' or 'testnet'
64+
network: String like 'mainnet', 'testnet', 'signet' or 'regtest'
6565
6666
Returns:
6767
True if mainnet, False otherwise
6868
"""
69-
# TODO: Convert address_type to lowercase and compare with "mainnet"
69+
# TODO: Convert network to lowercase and compare with "mainnet"
7070

7171

7272
def is_in_range(value):

0 commit comments

Comments
 (0)