Merge pull request #519 from cosmos/486-update-tendermint-0.34
Update tendermint to v0.34.0-rc6
This commit is contained in:
commit
c5c4b4330d
@ -4,6 +4,10 @@
|
||||
import { Adaptor } from "./adaptor";
|
||||
import { v0_33 } from "./v0-33";
|
||||
|
||||
const hashes = {
|
||||
v0_34: ["ca2c9df"],
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns an Adaptor implementation for a given tendermint version.
|
||||
* Throws when version is not supported.
|
||||
@ -11,7 +15,7 @@ import { v0_33 } from "./v0-33";
|
||||
* @param version full Tendermint version string, e.g. "0.20.1"
|
||||
*/
|
||||
export function adaptorForVersion(version: string): Adaptor {
|
||||
if (version.startsWith("0.33.") || version.startsWith("0.34.")) {
|
||||
if (version.startsWith("0.33.") || version.startsWith("0.34.") || hashes.v0_34.includes(version)) {
|
||||
return v0_33;
|
||||
} else {
|
||||
throw new Error(`Unsupported tendermint version: ${version}`);
|
||||
|
||||
@ -38,18 +38,17 @@ export const tendermintInstances: readonly TendermintInstance[] = [
|
||||
appVersion: 1,
|
||||
},
|
||||
},
|
||||
// Re-enable testing (https://github.com/cosmos/cosmjs/issues/486)
|
||||
// {
|
||||
// url: "localhost:11134",
|
||||
// version: "0.34.x",
|
||||
// blockTime: 500,
|
||||
// expected: {
|
||||
// appCreator: "Cosmoshi Netowoko",
|
||||
// p2pVersion: 8,
|
||||
// blockVersion: 11,
|
||||
// appVersion: 1,
|
||||
// },
|
||||
// },
|
||||
{
|
||||
url: "localhost:11134",
|
||||
version: "0.34.x",
|
||||
blockTime: 500,
|
||||
expected: {
|
||||
appCreator: "Cosmoshi Netowoko",
|
||||
p2pVersion: 8,
|
||||
blockVersion: 11,
|
||||
appVersion: 1,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export const defaultInstance: TendermintInstance = tendermintInstances[0];
|
||||
|
||||
@ -5,7 +5,7 @@ command -v shellcheck > /dev/null && shellcheck "$0"
|
||||
# Find latest patch releases at https://hub.docker.com/r/tendermint/tendermint/tags/
|
||||
declare -a TM_VERSIONS
|
||||
TM_VERSIONS[33]=v0.33.8
|
||||
TM_VERSIONS[34]=latest
|
||||
TM_VERSIONS[34]=v0.34.0-rc6
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ command -v shellcheck > /dev/null && shellcheck "$0"
|
||||
|
||||
declare -a TM_VERSIONS
|
||||
TM_VERSIONS[33]=v0.33.8
|
||||
TM_VERSIONS[34]=latest
|
||||
TM_VERSIONS[34]=v0.34.0-rc6
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user