Skip to content

Commit

Permalink
fix: use provisionpass for the bootstrap address
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Jun 30, 2020
1 parent 023b0be commit b0c2b73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ def ret(server_message):

args = [
'tx', 'swingset', 'provision-one', '--keyring-backend=test', nickname, pubkey,
'--yes', '--broadcast-mode', 'block', # Don't return until committed.
'--from=ag-solo', '--yes', '--broadcast-mode=block', # Don't return until committed.
'--gas=auto', '--gas-adjustment=1.4',
]
code, output = yield agCosmosHelper(reactor, opts, config, args, 10)
if code != 0:
Expand Down Expand Up @@ -368,8 +369,7 @@ def agCosmosHelper(reactor, opts, config, args, retries = 1):
reactor.spawnProcess(processProtocol, '/usr/local/bin/' + program, args=[
program, *args,
'--chain-id', config['chainName'], '-ojson',
'--node',
'tcp://' + rpcAddr,
'--node', 'tcp://' + rpcAddr,
'--home', os.path.join(opts['home'], 'ag-cosmos-helper-statedir'),
])
code, output, stderr = yield d
Expand Down Expand Up @@ -414,7 +414,7 @@ def doEnablePubkeys(reactor, opts, config, pkobjs):
print('generating transaction for', pubkey)
# Estimate the gas, with a little bit of padding.
args = ['tx', 'swingset', 'provision-one', '--keyring-backend=test', nickname, pubkey,
'--gas=auto', '--gas-adjustment=1.4']
'--from=ag-solo', '--gas=auto', '--gas-adjustment=1.4']
code, output = yield agCosmosHelper(reactor, opts, config, args, 1)
if code == 0:
txes.append(output)
Expand Down Expand Up @@ -454,7 +454,7 @@ def doEnablePubkeys(reactor, opts, config, pkobjs):
# Now the temp.name contents are available
args = [
'tx', 'broadcast', temp.name,
'--broadcast-mode', 'block',
'--broadcast-mode=block',
]

code, output = yield agCosmosHelper(reactor, opts, config, args, 10)
Expand Down
2 changes: 1 addition & 1 deletion packages/deployment/ansible/cosmos-genesis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
vars:
- data: "{{ SETUP_HOME }}/{{ service }}/data"
- service: ag-chain-cosmos
- BOOTSTRAP_TOKENS: "{{ lookup('file', SETUP_HOME + '/boot-tokens.txt') }}"
- BOOTSTRAP_TOKENS: "{{ lookup('file', SETUP_HOME + '/boot-tokens.txt') }},100provisionpass"
- BOOTSTRAP_ADDRESS: "{{ lookup('file', SETUP_HOME + '/ag-pserver/data/node0/boot-address.txt') }}"
- STAKER: ag-staker
- STAKER_TOKENS: 10000000000000000000000000uagstake
Expand Down

0 comments on commit b0c2b73

Please sign in to comment.