This file contains 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
from __future__ import print_function | |
from base58 import b58encode, b58decode | |
crypto_data = { | |
'btc': {'bip44_coin_type': 0x80000000}, | |
'ltc': {'bip44_coin_type': 0x80000002}, | |
'doge': {'bip44_coin_type': 0x80000003}, | |
'bch': {'bip44_coin_type': 0x80000091}, | |
'uno': {'bip44_coin_type': 0x8000005c}, | |
'eth': {'bip44_coin_type': 0x8000003c}, |
This file contains 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
from hashlib import sha256 | |
import random | |
def duplicates_for_shortid(txidsize, mempoolsize_mb=32, mempoolsize_kb=None): | |
if mempoolsize_kb: | |
n = int(mempoolsize_kb * 1024.0 / 266) | |
else: | |
n = int(mempoolsize_mb * 1024.0 * 1024.0 / 266) | |
txids = set() |
This file contains 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
#!/usr/bin/env python | |
import json, cStringIO, traceback, sys, os, urllib2, random, time | |
blockfilename = '000000000000000001c37467f0843dd9e09536c21938c5c20551191788a70541' | |
mempoolfilenames = ['00000000000000000008658cdaba34569f00748085df3923cb5287e55a2fe27c', | |
'000000000000000000328e4b6f34904c9525e4815c1a32a9e55a3ec6b0e5afa6', | |
'00000000000000000175b9186c4004b77ea9dc61976f4d7aed140d10919d0c05'] | |
debug = '--debug' in sys.argv or '-d' in sys.argv |
OlderNewer