mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-10 22:41:53 +08:00
use virtualchain hashing library instead of pybitcoin
This commit is contained in:
@@ -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'}
|
||||
|
||||
Reference in New Issue
Block a user