Skip to content

Commit

Permalink
reduce weight of message enable CCTX
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Dec 13, 2024
1 parent 507b430 commit 7504de4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace --user $(shell id -u):$(shell id -g) $(protoImageName)

proto-format:
@echo "--> Formatting Protobuf files"
@$(protoImage) find ./ -name "*.proto" -exec clang-format -i {} \;
@echo "--> Formatting Protobuf files" @$(protoImage) find ./ -name "*.proto" -exec clang-format -i {} \;
.PHONY: proto-format

typescript: proto-format
Expand Down
6 changes: 3 additions & 3 deletions x/crosschain/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ const (
DefaultWeightAddOutboundTracker = 10
DefaultWeightAddInboundTracker = 10
DefaultWeightRemoveOutboundTracker = 10
DefaultWeightVoteGasPrice = 100
DefaultWeightVoteOutbound = 100
DefaultWeightVoteInbound = 100
DefaultWeightVoteGasPrice = 50
DefaultWeightVoteOutbound = 10
DefaultWeightVoteInbound = 10
DefaultWeightWhitelistERC20 = 10
DefaultWeightMigrateTssFunds = 1
DefaultWeightUpdateTssAddress = 10
Expand Down
2 changes: 1 addition & 1 deletion x/observer/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const (
// DefaultWeightMsgTypeMsgEnableCCTX We use a high weight for this operation
// to ensure that it is present in the block more number of times than any operation that changes the validator set
// Arrived at this number based on the weights used in the cosmos sdk staking module and through some trial and error
DefaultWeightMsgTypeMsgEnableCCTX = 3650
DefaultWeightMsgTypeMsgEnableCCTX = 100
DefaultWeightMsgTypeMsgDisableCCTX = 10
DefaultWeightMsgTypeMsgVoteTSS = 10
DefaultWeightMsgTypeMsgUpdateKeygen = 10
Expand Down

0 comments on commit 7504de4

Please sign in to comment.