mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 03:45:38 +08:00
change _nameops_ to _blockstack_ops_ where appropriate
This commit is contained in:
@@ -63,7 +63,7 @@ def make_xml_call(msg_len, gzipped=False):
|
||||
"Content-Type: " + content_type + "\r\n" + content_encoding_str + \
|
||||
"Content-Length: {}\r\n\r\n")
|
||||
|
||||
xml_part_header = "<?xml version='1.0'?><methodCall><methodName>get_nameops_hash_at</methodName><params><param><value><integer>"
|
||||
xml_part_header = "<?xml version='1.0'?><methodCall><methodName>get_blockstack_ops_hash_at</methodName><params><param><value><integer>"
|
||||
xml_part_trailer = "</integer></param></params></methodCall></xml>"
|
||||
xml_part_payload = '0' * msg_len
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ def check( state_engine ):
|
||||
return False
|
||||
|
||||
# NOT renewed
|
||||
num_ops = state_engine.get_num_nameops_at(renew_block)
|
||||
num_ops = state_engine.get_num_blockstack_ops_at(renew_block)
|
||||
if num_ops != 2:
|
||||
print 'wrong number of ops at {}'.format(renew_block)
|
||||
return False
|
||||
|
||||
@@ -98,7 +98,7 @@ def check( state_engine ):
|
||||
return False
|
||||
|
||||
# only 2 nameops
|
||||
num_ops = state_engine.get_num_nameops_at(revoke_block)
|
||||
num_ops = state_engine.get_num_blockstack_ops_at(revoke_block)
|
||||
if num_ops != 2:
|
||||
print 'wrong number of ops at {}'.format(revoke_block)
|
||||
return False
|
||||
|
||||
@@ -98,7 +98,7 @@ def check( state_engine ):
|
||||
print 'got updated'
|
||||
return False
|
||||
|
||||
num_ops = state_engine.get_num_nameops_at(update_block)
|
||||
num_ops = state_engine.get_num_blockstack_ops_at(update_block)
|
||||
if num_ops != 2:
|
||||
print 'wrong number of ops at {}'.format(update_block)
|
||||
return False
|
||||
|
||||
@@ -94,7 +94,7 @@ def check( state_engine ):
|
||||
return False
|
||||
|
||||
# transfer did not go through
|
||||
num_ops = state_engine.get_num_nameops_at(transfer_block)
|
||||
num_ops = state_engine.get_num_blockstack_ops_at(transfer_block)
|
||||
if num_ops != 2:
|
||||
print 'wrong number of ops at {}'.format(transfer_block)
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user