@@ -41,8 +41,7 @@ func (tr TestConfig) sendTokens(
41
41
tr .validatorConfigs [action .From ].DelAddress ,
42
42
tr .validatorConfigs [action .To ].DelAddress ,
43
43
fmt .Sprint (action .Amount )+ `stake` ,
44
- `--gas-prices` , `0.0025stake` ,
45
- `--gas-adjustment` , `1.5` ,
44
+
46
45
`--chain-id` , string (tr .chainConfigs [action .Chain ].ChainId ),
47
46
`--home` , tr .getValidatorHome (action .Chain , action .From ),
48
47
`--node` , tr .getValidatorNode (action .Chain , action .From ),
@@ -205,9 +204,6 @@ func (tr TestConfig) submitTextProposal(
205
204
`--description` , action .Description ,
206
205
`--deposit` , fmt .Sprint (action .Deposit )+ `stake` ,
207
206
`--from` , `validator` + fmt .Sprint (action .From ),
208
- `--gas` , "auto" ,
209
- `--gas-prices` , `0.0025stake` ,
210
- `--gas-adjustment` , `1.5` ,
211
207
`--chain-id` , string (tr .chainConfigs [action .Chain ].ChainId ),
212
208
`--home` , tr .getValidatorHome (action .Chain , action .From ),
213
209
`--node` , tr .getValidatorNode (action .Chain , action .From ),
@@ -277,22 +273,16 @@ func (tr TestConfig) submitConsumerAdditionProposal(
277
273
278
274
//#nosec G204 -- Bypass linter warning for spawning subprocess with cmd arguments.
279
275
// CONSUMER ADDITION PROPOSAL
280
- cmd : = exec .Command ("docker" , "exec" , tr .containerConfig .InstanceName , tr .chainConfigs [action .Chain ].BinaryName ,
276
+ bz , err = exec .Command ("docker" , "exec" , tr .containerConfig .InstanceName , tr .chainConfigs [action .Chain ].BinaryName ,
281
277
"tx" , "gov" , "submit-legacy-proposal" , "consumer-addition" , "/temp-proposal.json" ,
282
278
`--from` , `validator` + fmt .Sprint (action .From ),
283
- `--gas-prices` , `0.0025stake` ,
284
- `--gas-adjustment` , `1.5` ,
285
279
`--chain-id` , string (tr .chainConfigs [action .Chain ].ChainId ),
286
280
`--home` , tr .getValidatorHome (action .Chain , action .From ),
287
- `--gas` , "auto" ,
281
+ `--gas` , `900000` ,
288
282
`--node` , tr .getValidatorNode (action .Chain , action .From ),
289
283
`--keyring-backend` , `test` ,
290
284
`-y` ,
291
- )
292
-
293
- log .Println (cmd )
294
-
295
- bz , err = cmd .CombinedOutput ()
285
+ ).CombinedOutput ()
296
286
297
287
if err != nil {
298
288
log .Fatal (err , "\n " , string (bz ))
@@ -347,12 +337,10 @@ func (tr TestConfig) submitConsumerRemovalProposal(
347
337
"tx" , "gov" , "submit-legacy-proposal" , "consumer-removal" ,
348
338
"/temp-proposal.json" ,
349
339
`--from` , `validator` + fmt .Sprint (action .From ),
350
- `--gas-prices` , `0.0025stake` ,
351
- `--gas-adjustment` , `1.5` ,
352
340
`--chain-id` , string (tr .chainConfigs [action .Chain ].ChainId ),
353
341
`--home` , tr .getValidatorHome (action .Chain , action .From ),
354
342
`--node` , tr .getValidatorNode (action .Chain , action .From ),
355
- `--gas` , "auto " ,
343
+ `--gas` , "900000 " ,
356
344
`--keyring-backend` , `test` ,
357
345
`-y` ,
358
346
).CombinedOutput ()
@@ -425,12 +413,10 @@ func (tr TestConfig) submitParamChangeProposal(
425
413
"tx" , "gov" , "submit-legacy-proposal" , "param-change" , "/params-proposal.json" ,
426
414
427
415
`--from` , `validator` + fmt .Sprint (action .From ),
428
- `--gas-prices` , `0.0025stake` ,
429
- `--gas-adjustment` , `1.5` ,
430
416
`--chain-id` , string (tr .chainConfigs [action .Chain ].ChainId ),
431
417
`--home` , tr .getValidatorHome (action .Chain , action .From ),
432
418
`--node` , tr .getValidatorNode (action .Chain , action .From ),
433
- `--gas` , "auto " ,
419
+ `--gas` , "900000 " ,
434
420
`--keyring-backend` , `test` ,
435
421
`-y` ,
436
422
)
@@ -468,13 +454,11 @@ func (tr *TestConfig) voteGovProposal(
468
454
fmt .Sprint (action .PropNumber ), vote ,
469
455
470
456
`--from` , `validator` + fmt .Sprint (val ),
471
- `--gas-prices` , `0.0025stake` ,
472
- `--gas-adjustment` , `1.5` ,
473
457
`--chain-id` , string (tr .chainConfigs [action .Chain ].ChainId ),
474
458
`--home` , tr .getValidatorHome (action .Chain , val ),
475
459
`--node` , tr .getValidatorNode (action .Chain , val ),
476
460
`--keyring-backend` , `test` ,
477
- `--gas` , "auto " ,
461
+ `--gas` , "900000 " ,
478
462
`-y` ,
479
463
).CombinedOutput ()
480
464
if err != nil {
@@ -685,7 +669,7 @@ ccv_consumer_chain = %v
685
669
686
670
[chains.gas_price]
687
671
denom = "stake"
688
- price = 0.025
672
+ price = 0.000
689
673
690
674
[chains.trust_threshold]
691
675
denominator = "3"
@@ -968,10 +952,6 @@ func (tr TestConfig) addIbcConnectionHermes(
968
952
"--b-client" , "07-tendermint-" + fmt .Sprint (action .ClientB ),
969
953
)
970
954
971
- if verbose {
972
- log .Println ("addIbcConnectionHermes cmd: " , cmd .String ())
973
- }
974
-
975
955
cmdReader , err := cmd .StdoutPipe ()
976
956
if err != nil {
977
957
log .Fatal (err )
@@ -1343,9 +1323,6 @@ func (tr TestConfig) delegateTokens(
1343
1323
fmt .Sprint (action .Amount )+ `stake` ,
1344
1324
1345
1325
`--from` , `validator` + fmt .Sprint (action .From ),
1346
- `--gas` , "auto" ,
1347
- `--gas-prices` , `0.0025stake` ,
1348
- `--gas-adjustment` , `1.5` ,
1349
1326
`--chain-id` , string (tr .chainConfigs [action .Chain ].ChainId ),
1350
1327
`--home` , tr .getValidatorHome (action .Chain , action .From ),
1351
1328
`--node` , tr .getValidatorNode (action .Chain , action .From ),
@@ -1390,12 +1367,10 @@ func (tr TestConfig) unbondTokens(
1390
1367
fmt .Sprint (action .Amount )+ `stake` ,
1391
1368
1392
1369
`--from` , `validator` + fmt .Sprint (action .Sender ),
1393
- `--gas-prices` , `0.0025stake` ,
1394
- `--gas-adjustment` , `1.5` ,
1395
1370
`--chain-id` , string (tr .chainConfigs [action .Chain ].ChainId ),
1396
1371
`--home` , tr .getValidatorHome (action .Chain , action .Sender ),
1397
1372
`--node` , tr .getValidatorNode (action .Chain , action .Sender ),
1398
- `--gas` , "auto " ,
1373
+ `--gas` , "900000 " ,
1399
1374
`--keyring-backend` , `test` ,
1400
1375
`-y` ,
1401
1376
)
@@ -1459,12 +1434,10 @@ func (tr TestConfig) cancelUnbondTokens(
1459
1434
fmt .Sprint (action .Amount )+ `stake` ,
1460
1435
fmt .Sprint (creationHeight ),
1461
1436
`--from` , `validator` + fmt .Sprint (action .Delegator ),
1462
- `--gas-prices` , `0.0025stake` ,
1463
- `--gas-adjustment` , `1.5` ,
1464
1437
`--chain-id` , string (tr .chainConfigs [action .Chain ].ChainId ),
1465
1438
`--home` , tr .getValidatorHome (action .Chain , action .Delegator ),
1466
1439
`--node` , tr .getValidatorNode (action .Chain , action .Delegator ),
1467
- `--gas` , "auto " ,
1440
+ `--gas` , "900000 " ,
1468
1441
`--keyring-backend` , `test` ,
1469
1442
`-o` , `json` ,
1470
1443
`-y` ,
@@ -1514,13 +1487,11 @@ func (tr TestConfig) redelegateTokens(action redelegateTokensAction, verbose boo
1514
1487
redelegateDst ,
1515
1488
fmt .Sprint (action .Amount )+ `stake` ,
1516
1489
`--from` , `validator` + fmt .Sprint (action .TxSender ),
1517
- `--gas-prices` , `0.0025stake` ,
1518
- `--gas-adjustment` , `1.5` ,
1519
1490
`--chain-id` , string (tr .chainConfigs [action .Chain ].ChainId ),
1520
1491
`--home` , tr .getValidatorHome (action .Chain , action .TxSender ),
1521
1492
`--node` , tr .getValidatorNode (action .Chain , action .TxSender ),
1522
1493
// Need to manually set gas limit past default (200000), since redelegate has a lot of operations
1523
- `--gas` , "auto " ,
1494
+ `--gas` , "900000 " ,
1524
1495
`--keyring-backend` , `test` ,
1525
1496
`-y` ,
1526
1497
)
@@ -1646,9 +1617,7 @@ func (tr TestConfig) unjailValidator(action unjailValidatorAction, verbose bool)
1646
1617
`--chain-id` , string (tr .chainConfigs [action .Provider ].ChainId ),
1647
1618
`--home` , tr .getValidatorHome (action .Provider , action .Validator ),
1648
1619
`--node` , tr .getValidatorNode (action .Provider , action .Validator ),
1649
- `--gas` , "auto" ,
1650
- `--gas-prices` , `0.0025stake` ,
1651
- `--gas-adjustment` , `1.5` ,
1620
+ `--gas` , "900000" ,
1652
1621
`--keyring-backend` , `test` ,
1653
1622
`-y` ,
1654
1623
)
@@ -1706,9 +1675,6 @@ func (tr TestConfig) registerRepresentative(
1706
1675
`--commission-max-change-rate` , "0.01" ,
1707
1676
`--min-self-delegation` , "1" ,
1708
1677
`--from` , `validator` + fmt .Sprint (val ),
1709
- `--gas` , "auto" ,
1710
- `--gas-prices` , `0.0025stake` ,
1711
- `--gas-adjustment` , `1.5` ,
1712
1678
`--chain-id` , string (tr .chainConfigs [action .Chain ].ChainId ),
1713
1679
`--home` , tr .getValidatorHome (action .Chain , val ),
1714
1680
`--node` , tr .getValidatorNode (action .Chain , val ),
@@ -1773,9 +1739,7 @@ func (tr TestConfig) submitChangeRewardDenomsProposal(action submitChangeRewardD
1773
1739
`--chain-id` , string (providerChain .ChainId ),
1774
1740
`--home` , tr .getValidatorHome (providerChain .ChainId , action .From ),
1775
1741
`--node` , tr .getValidatorNode (providerChain .ChainId , action .From ),
1776
- `--gas` , "auto" ,
1777
- `--gas-prices` , `0.0025stake` ,
1778
- `--gas-adjustment` , `1.5` ,
1742
+ `--gas` , "9000000" ,
1779
1743
`--keyring-backend` , `test` ,
1780
1744
`-y` ,
1781
1745
).CombinedOutput ()
@@ -1928,7 +1892,7 @@ func (tr TestConfig) assignConsumerPubKey(action assignConsumerPubKeyAction, ver
1928
1892
gas = "9000000"
1929
1893
}
1930
1894
assignKey := fmt .Sprintf (
1931
- `%s tx provider assign-consensus-key %s '%s' --from validator%s --chain-id %s --home %s --node %s --gas %s --gas-prices %s --gas-adjustment 1.5 -- keyring-backend test -y -o json` ,
1895
+ `%s tx provider assign-consensus-key %s '%s' --from validator%s --chain-id %s --home %s --node %s --gas %s --keyring-backend test -y -o json` ,
1932
1896
tr .chainConfigs [ChainID ("provi" )].BinaryName ,
1933
1897
string (tr .chainConfigs [action .Chain ].ChainId ),
1934
1898
action .ConsumerPubkey ,
@@ -1937,7 +1901,6 @@ func (tr TestConfig) assignConsumerPubKey(action assignConsumerPubKeyAction, ver
1937
1901
tr .getValidatorHome (ChainID ("provi" ), action .Validator ),
1938
1902
tr .getValidatorNode (ChainID ("provi" ), action .Validator ),
1939
1903
gas ,
1940
- `0.0025stake` ,
1941
1904
)
1942
1905
1943
1906
//#nosec G204 -- Bypass linter warning for spawning subprocess with cmd arguments.
0 commit comments