-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: ibc relayer don't work well with default tx prioritization s…
…trategy (#652) * Problem: ibc relayer don't work well with default tx prioritization stretegy Closes: #634 Solution: - set dynamic fee extension option in hermes * check relayer tx fee in integration test * Update integration_tests/configs/ibc.jsonnet * renames
- Loading branch information
Showing
8 changed files
with
80 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,25 @@ | ||
{ pkgs ? import ./default.nix { } }: | ||
let | ||
version = "v1.0.0-rc.2"; | ||
srcUrl = { | ||
x86_64-linux = { | ||
url = | ||
"https://github.com/informalsystems/ibc-rs/releases/download/${version}/hermes-${version}-x86_64-unknown-linux-gnu.tar.gz"; | ||
sha256 = "sha256-ms+3Ka8Ijbx63OXQzzNZ1kLrwVJDIVnvyc1TG69bun0="; | ||
}; | ||
x86_64-darwin = { | ||
url = | ||
"https://github.com/informalsystems/ibc-rs/releases/download/${version}/hermes-${version}-x86_64-apple-darwin.tar.gz"; | ||
sha256 = "sha256-ygp49IPTXKqK12gE8OiyXjXhkJvfUZNuXVnS14SVScQ="; | ||
}; | ||
}.${pkgs.stdenv.system} or (throw | ||
"Unsupported system: ${pkgs.stdenv.system}"); | ||
in | ||
pkgs.stdenv.mkDerivation { | ||
{ src | ||
, lib | ||
, stdenv | ||
, darwin | ||
, rustPlatform | ||
, symlinkJoin | ||
, openssl | ||
}: | ||
rustPlatform.buildRustPackage rec { | ||
name = "hermes"; | ||
inherit version; | ||
src = pkgs.fetchurl srcUrl; | ||
sourceRoot = "."; | ||
installPhase = '' | ||
echo "hermes" | ||
echo $out | ||
install -m755 -D hermes $out/bin/hermes | ||
''; | ||
|
||
meta = with pkgs.lib; { platforms = with platforms; linux ++ darwin; }; | ||
|
||
inherit src; | ||
cargoSha256 = "sha256-42yTWf7fFEko0n/Y7AA2vA2s/gMypcZDvbbd9DAcuRw="; | ||
cargoBuildFlags = "-p ibc-relayer-cli"; | ||
buildInputs = lib.optionals stdenv.isDarwin [ | ||
darwin.apple_sdk.frameworks.Security | ||
darwin.libiconv | ||
]; | ||
doCheck = false; | ||
RUSTFLAGS = "--cfg ossl111 --cfg ossl110 --cfg ossl101"; | ||
OPENSSL_NO_VENDOR = "1"; | ||
OPENSSL_DIR = symlinkJoin { | ||
name = "openssl"; | ||
paths = with openssl; [ out dev ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters