diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a92a4b63cd..1b2332a8011 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -69,7 +69,8 @@ Ref: https://keepachangelog.com/en/1.0.0/ ### State Machine Breaking * (light-clients/07-tendermint) [\#2554](https://github.com/cosmos/ibc-go/pull/2554) Forbid negative values for `TrustingPeriod`, `UnbondingPeriod` and `MaxClockDrift` (as specified in ICS-07). -* (06-solomachine) [\#2744](https://github.com/cosmos/ibc-go/pull/2744) `Misbehaviour.ValidateBasic()` now only enforces that signature data does not match when the signature paths are different. +* (06-solomachine) [\#2744](https://github.com/cosmos/ibc-go/pull/2744) `Misbehaviour.ValidateBasic()` now only enforces that signature data does not match when the signature paths are different. +* (06-solomachine) [\#2748](https://github.com/cosmos/ibc-go/pull/2748) Adding sentinel value for header path in 06-solomachine. ### Improvements diff --git a/modules/light-clients/06-solomachine/header.go b/modules/light-clients/06-solomachine/header.go index d85cc7507d8..633c25425bc 100644 --- a/modules/light-clients/06-solomachine/header.go +++ b/modules/light-clients/06-solomachine/header.go @@ -10,6 +10,9 @@ import ( "github.com/cosmos/ibc-go/v6/modules/core/exported" ) +// SentinelHeaderPath defines a placeholder path value used for headers in solomachine client updates +const SentinelHeaderPath = "solomachine:header" + var _ exported.ClientMessage = &Header{} // ClientType defines that the Header is a Solo Machine. diff --git a/modules/light-clients/06-solomachine/update.go b/modules/light-clients/06-solomachine/update.go index 3ea49d75fc2..ae32cc95cae 100644 --- a/modules/light-clients/06-solomachine/update.go +++ b/modules/light-clients/06-solomachine/update.go @@ -57,7 +57,7 @@ func (cs ClientState) verifyHeader(ctx sdk.Context, cdc codec.BinaryCodec, clien Sequence: header.Sequence, Timestamp: header.Timestamp, Diversifier: cs.ConsensusState.Diversifier, - Path: []byte{}, + Path: []byte(SentinelHeaderPath), Data: dataBz, } diff --git a/testing/solomachine.go b/testing/solomachine.go index 342491b453b..2397d13167f 100644 --- a/testing/solomachine.go +++ b/testing/solomachine.go @@ -126,7 +126,7 @@ func (solo *Solomachine) CreateHeader(newDiversifier string) *solomachine.Header Sequence: solo.Sequence, Timestamp: solo.Time, Diversifier: solo.Diversifier, - Path: []byte{}, + Path: []byte(solomachine.SentinelHeaderPath), Data: dataBz, }