Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin authored Jul 25, 2023
2 parents 3febd1b + 73d338a commit e6f6475
Show file tree
Hide file tree
Showing 10 changed files with 3,185 additions and 1,410 deletions.
1 change: 1 addition & 0 deletions cmd/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@ $ %s tx link-then-start demo-path --timeout 5s`, appName, appName)),
cmd = initBlockFlag(a.viper, cmd)
cmd = processorFlag(a.viper, cmd)
cmd = updateTimeFlags(a.viper, cmd)
cmd = flushIntervalFlag(a.viper, cmd)
return cmd
}

Expand Down
9 changes: 5 additions & 4 deletions proto/cosmos/crypto/sr25519/keys.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ import "gogoproto/gogo.proto";
// Originally github.com/cosmos/cosmos-sdk/crypto/keys/sr25519
option go_package = "github.com/cosmos/relayer/v2/relayer/chains/cosmos/keys/sr25519";

option (gogoproto.messagename_all) = true;
option (gogoproto.messagename_all) = true;
option (gogoproto.goproto_stringer_all) = false;
option (gogoproto.goproto_getters_all) = false;
option (gogoproto.goproto_getters_all) = false;

// PubKey defines a sr25519 ECDSA public key.
message PubKey {
option (gogoproto.goproto_stringer) = false;
option (gogoproto.goproto_stringer) = false;

bytes key = 1 [(gogoproto.casttype) = "github.com/cometbft/cometbft/crypto/sr25519.PubKey"];
bytes key = 1 [ (gogoproto.casttype) =
"github.com/cometbft/cometbft/crypto/sr25519.PubKey" ];
}
8 changes: 8 additions & 0 deletions relayer/chains/cosmos/log.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cosmos

import (
"errors"
"reflect"

"github.com/cosmos/cosmos-sdk/codec/types"
Expand All @@ -10,6 +11,7 @@ import (
transfertypes "github.com/cosmos/ibc-go/v7/modules/apps/transfer/types"

clienttypes "github.com/cosmos/ibc-go/v7/modules/core/02-client/types"
chantypes "github.com/cosmos/ibc-go/v7/modules/core/04-channel/types"
"github.com/cosmos/relayer/v2/relayer/provider"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
Expand Down Expand Up @@ -54,6 +56,12 @@ func (cc *CosmosProvider) LogFailedTx(res *provider.RelayerTxResponse, err error
fields = append(fields, msgTypesField(msgs))

if err != nil {

if errors.Is(err, chantypes.ErrRedundantTx) {
cc.log.Debug("Redundant message(s)", fields...)
return
}

// Make a copy since we may continue to the warning
errorFields := append(fields, zap.Error(err))
cc.log.Error(
Expand Down
253 changes: 159 additions & 94 deletions relayer/chains/penumbra/core/crypto/v1alpha1/crypto.pb.go

Large diffs are not rendered by default.

Loading

0 comments on commit e6f6475

Please sign in to comment.