From aac47ac84a85cedcf4100707ddf5747192b71450 Mon Sep 17 00:00:00 2001 From: Michael FIG Date: Wed, 31 Jul 2019 20:12:08 -0700 Subject: [PATCH] ag-pserver: block until tx send commits fixes #46 --- provisioning-server/src/ag_pserver/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/provisioning-server/src/ag_pserver/main.py b/provisioning-server/src/ag_pserver/main.py index 7fce3ab776c..ead4c24ac85 100644 --- a/provisioning-server/src/ag_pserver/main.py +++ b/provisioning-server/src/ag_pserver/main.py @@ -186,7 +186,8 @@ def got_message(self, client_message, nickname): '--yes', '--chain-id', config['chainName'], '--node', 'tcp://' + config['rpcAddrs'][0], # TODO: rotate on failure - '--home', os.environ['HOME'] + '/controller/ag-cosmos-helper-statedir' + '--home', os.environ['HOME'] + '/controller/ag-cosmos-helper-statedir', + '--broadcast-mode', 'block' # Don't return until committed. ]) code = yield d print('transfer of ' + INITIAL_TOKEN + ' returned ' + str(code))