Skip to content

Conversation

@wizardofozzie
Copy link
Contributor

No description provided.

@wizardofozzie
Copy link
Contributor Author

Any input on how to clean up the code would be appreciated, but the functionality is sound
eg is_testnet(["mqA28xiLNGAMdggwf3eihB533MNYnmxwx3","muCRMGBLnfmQC6Y4vBWZJfbPFTFQgTZVZp"])

set_network("b6bdca9c8550fc41e064bbf2dd8f47095477a90500669bd5e68045720c6a4735")  # a testnet txid
>>> "testnet"

Also, see my fork (NB some code deviates from @vbuterin pybitcointools, eg safe_unhexlify is similar to safe_frox_hex but also acts to "unhexlify JSON hex")

vbuterin added a commit that referenced this pull request Nov 25, 2015
Auto-detect testnet for unspent/fetchtx
@vbuterin vbuterin merged commit 2865dd9 into vbuterin:master Nov 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants