mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-21 09:55:29 +08:00
renewal after 10 blocks
This commit is contained in:
@@ -210,7 +210,8 @@ def scenario( wallets, **kw ):
|
||||
res['test'] = 'Failed to get name bar.test'
|
||||
print json.dumps(res)
|
||||
return False
|
||||
|
||||
|
||||
print res
|
||||
new_expire_block = res['response']['expire_block']
|
||||
|
||||
# do we have the history for the name?
|
||||
@@ -264,7 +265,7 @@ def scenario( wallets, **kw ):
|
||||
print ''
|
||||
|
||||
# verify pushed back
|
||||
if old_expire_block + 12 > new_expire_block:
|
||||
if old_expire_block + 10 > new_expire_block:
|
||||
# didn't go through
|
||||
print >> sys.stderr, "Renewal didn't work: %s --> %s" % (old_expire_block, new_expire_block)
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user