use virtualchain hashing library instead of pybitcoin

This commit is contained in:
Jude Nelson
2017-04-20 17:35:50 -04:00
parent d01d42e9ed
commit 5a7dd7433b

View File

@@ -57,14 +57,14 @@ from defusedxml import xmlrpc
xmlrpc.monkey_patch()
import virtualchain
from virtualchain.lib.hashing import *
log = virtualchain.get_logger("blockstack-core")
import blockstack_client
from ConfigParser import SafeConfigParser
import pybitcoin
from lib import nameset as blockstack_state_engine
from lib import get_db_state
from lib.config import REINDEX_FREQUENCY
@@ -1350,7 +1350,7 @@ class BlockstackdRPC( SimpleXMLRPCServer):
# no profile yet (or error)
old_profile_txt = ""
old_profile_hash = pybitcoin.hex_hash160(old_profile_txt)
old_profile_hash = hex_hash160(old_profile_txt)
if old_profile_hash != prev_profile_hash:
log.debug("Invalid previous profile hash")
return {'error': 'Invalid previous profile hash'}