Skip to content

Commit

Permalink
fix address problem in block chain explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
brokkir committed Jun 6, 2014
1 parent 3810598 commit e8e9f76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mjollnircoin-abe/Abe/DataStore.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
CHAIN_CONFIG = [
# {"chain":"Bitcoin"},
# {"chain":"Testnet"},
{"chain":"Mjollnircoin"},
{"chain":"Mjollnircoin","code3": "MNR", "address_version": "\x32", "magic": "\xfb\xc0\xb6\xdb" },
# {"chain":"Namecoin"},
# {"chain":"Weeds", "network":"Weedsnet",
# "code3":"WDS", "address_version":"\xf3", "magic":"\xf8\xbf\xb5\xda"},
Expand Down
3 changes: 2 additions & 1 deletion mjollnircoin-abe/Abe/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import re
import base58
import Crypto.Hash.SHA256 as SHA256
import heavycoin_hash

try:
import Crypto.Hash.RIPEMD160 as RIPEMD160
Expand Down Expand Up @@ -114,7 +115,7 @@ def possible_address(string):

def hash_to_address(version, hash):
vh = version + hash
return base58.b58encode(vh + double_sha256(vh)[:4])
return base58.b58encode( vh + heavycoin_hash.getHash(vh,len(vh))[:4])

def decode_check_address(address):
if possible_address(address):
Expand Down

0 comments on commit e8e9f76

Please sign in to comment.