use generic virtualchain multisig script check

This commit is contained in:
Jude Nelson
2017-04-20 17:37:02 -04:00
parent ff07b90bd1
commit 9c12126d95

View File

@@ -200,7 +200,7 @@ def check_register( state_engine, nameop, block_id, checked_ops ):
# if multisig is not enabled in this epoch, and the recipient
# address is a p2sh address, then reject the transaction.
# this if for compatibility with 0.13
if virtualchain.is_p2sh_address( register_addr ) and not epoch_has_multisig( block_id ):
if virtualchain.is_multisig_address( register_addr ) and not epoch_has_multisig( block_id ):
log.debug("Multisig registration address %s, but this epoch (%s) does not support multisig" % (register_addr, get_epoch_number(block_id)))
return False