This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'terminal-table' | |
| MAX_SATOSHIS = 21*(10**6)*(10**8) | |
| def max_num(mantis_bits,available_bits) | |
| mantis(mantis_bits)*(10**exponent(mantis_bits,available_bits)) | |
| end | |
| def mantis(mantis_bits) | |
| 2**mantis_bits |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def url(network) | |
| case network.to_sym | |
| when :testnet | |
| return 'wss://testnet3.toshi.io' | |
| when :bitcoin | |
| return 'wss://bitcoin.toshi.io' | |
| else | |
| return "'ws://localhost:5000'" | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def url(network) | |
| case network.to_sym | |
| when :testnet | |
| return 'wss://testnet3.toshi.io' | |
| when :bitcoin | |
| return 'wss://bitcoin.toshi.io' | |
| else | |
| return "'ws://localhost:5000'" | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def url(network) | |
| case network.to_sym | |
| when :testnet | |
| return 'wss://testnet3.toshi.io' | |
| when :bitcoin | |
| return 'wss://bitcoin.toshi.io' | |
| else | |
| return "'ws://localhost:5000'" | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Verifying that +coincooler is my openname (Bitcoin username). https://onename.com/coincooler |
NewerOlder