Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement PR suggestions
Browse files Browse the repository at this point in the history
glevco committed Sep 11, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a051da7 commit def3c1c
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions hathor/pycoin/htr.py
Original file line number Diff line number Diff line change
@@ -14,19 +14,14 @@

from pycoin.networks.bitcoinish import create_bitcoinish_network

from hathor.conf.get_settings import get_settings
from hathor.conf import HathorSettings

settings = HathorSettings()

def get_network():
settings = get_settings()

return create_bitcoinish_network(
symbol='HTR', network_name='Hathor', subnet_name='mainnet',
wif_prefix_hex='80',
address_prefix_hex=settings.P2PKH_VERSION_BYTE.hex(),
pay_to_script_prefix_hex=settings.MULTISIG_VERSION_BYTE.hex(),
bip32_prv_prefix_hex='0488ade4', bip32_pub_prefix_hex='0488B21E',
)


network = get_network()
network = create_bitcoinish_network(
symbol='HTR', network_name='Hathor', subnet_name='mainnet',
wif_prefix_hex='80',
address_prefix_hex=settings.P2PKH_VERSION_BYTE.hex(),
pay_to_script_prefix_hex=settings.MULTISIG_VERSION_BYTE.hex(),
bip32_prv_prefix_hex='0488ade4', bip32_pub_prefix_hex='0488B21E',
)

0 comments on commit def3c1c

Please sign in to comment.