Client create
parameters are ignored
#1921
Labels
A: bug
Admin: something isn't working
I: CLI
Internal: related to the relayer's CLI
I: configuration
Internal: related to Hermes configuration
I: logic
Internal: related to the relaying logic
O: usability
Objective: cause to improve the user experience (UX) and ease using the product
Milestone
Summary of Bug
When creating a client with
hermes create client SRC DST
we can pass three parameters:-d, --clock-drift <CLOCK_DRIFT>
-p, --trusting-period <TRUSTING_PERIOD>
-t, --trust-threshold <TRUST_THRESHOLD>
It seems that these parameters are just ignored by Hermes.
Version
I think this was added recently (#836), but I reproduced on current master
hermes 0.12.0+ffb2c522
ffb2c52
Steps to Reproduce
We know the following: In config.toml we set for chain
ibc-1
:trusting_period = '1days'
clock_drift = '500s'
as the basis for computing the clock drifttrust_threshold = { numerator = '1', denominator = '3' }
These are the default we would expect to be able to overwrite whenever we create a client for source chain
ibc-1
.For trusting period parameter
-p
Steps:
ibc-1
and destinationibc-0
overwritting the trusting periodhermes query client state ibc-0 07-tendermint-3 | grep trusting
It is still using the default 1day instead of 3days.
For trust threshold
-t
hermes create client ibc-0 ibc-1 -t 2/3
hermes query client state ibc-0 07-tendermint-3 | grep -A3 trust_level
For max clock drift
-d
hermes create client ibc-0 ibc-1 -d 1s
hermes query client state ibc-0 07-tendermint-5 | grep -A3 drift
Acceptance Criteria
create client
options are correctly applied in the CLIFor Admin Use
The text was updated successfully, but these errors were encountered: