diff --git a/wormchain/Dockerfile.ict b/wormchain/Dockerfile.ict index f186b286cc..65c8b86b5f 100644 --- a/wormchain/Dockerfile.ict +++ b/wormchain/Dockerfile.ict @@ -28,7 +28,7 @@ WORKDIR /home/heighliner COPY --from=builder /app/build/wormchaind /usr/bin # copy over c bindings (libwasmvm.x86_64.so, etc) -COPY --from=builder /go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.1.1/internal/api/* /usr/lib +COPY --from=builder /go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.1.1/internal/api/* /usr/lib/ EXPOSE 26657 EXPOSE 26656 diff --git a/wormchain/x/wormhole/client/cli/genesis.go b/wormchain/x/wormhole/client/cli/genesis.go index 5d55a37bc5..6fd842c3d9 100644 --- a/wormchain/x/wormhole/client/cli/genesis.go +++ b/wormchain/x/wormhole/client/cli/genesis.go @@ -449,6 +449,9 @@ func CmdGenerateSlashingParamsUpdateVaa() *cobra.Command { if err != nil { return err } + if minSignedPerWindowDec.LT(sdk.ZeroDec()) || minSignedPerWindowDec.GT(sdk.OneDec()) { + return fmt.Errorf("min signed per window must be greater than or equal to 0.000000000000000000 and less than or equal to 1.000000000000000000") + } downtimeJailDuration, err := cmd.Flags().GetUint64(FLAG_DOWNTIME_JAIL_DURATION) if err != nil { @@ -463,6 +466,9 @@ func CmdGenerateSlashingParamsUpdateVaa() *cobra.Command { if err != nil { return err } + if slashFractionDoubleSignDec.LT(sdk.ZeroDec()) || slashFractionDoubleSignDec.GT(sdk.OneDec()) { + return fmt.Errorf("slash fraction double sign must be greater than or equal to 0.000000000000000000 and less than or equal to 1.000000000000000000") + } slashFractionDowntime, err := cmd.Flags().GetString(FLAG_SLASH_FRACTION_DOWNTIME) if err != nil { @@ -472,6 +478,9 @@ func CmdGenerateSlashingParamsUpdateVaa() *cobra.Command { if err != nil { return err } + if slashFractionDowntimeDec.LT(sdk.ZeroDec()) || slashFractionDowntimeDec.GT(sdk.OneDec()) { + return fmt.Errorf("slash fraction downtime must be greater than or equal to 0.000000000000000000 and less than or equal to 1.000000000000000000") + } slashingUpdate := make([]byte, 40) binary.BigEndian.PutUint64(slashingUpdate[:8], signedBlocksWindow)