mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-09 06:33:16 +00:00
pex: remove legacy proto messages (#7147)
This PR implements the proto changes made in https://github.com/tendermint/spec/pull/352, removing the legacy messages that were used in the pex reactor.
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
VERS=0.7.1
|
||||
|
||||
set -eo pipefail
|
||||
|
||||
: ${VERS:=master}
|
||||
URL_PATH=archive/
|
||||
if [[ VERS -ne master ]]; then
|
||||
URL_PATH=archive/refs/tags/v
|
||||
fi
|
||||
|
||||
# Edit this line to clone your branch, if you are modifying protobuf files
|
||||
curl -qL "https://github.com/tendermint/spec/archive/refs/tags/v${VERS}.tar.gz" | tar -xjf - spec-"$VERS"/proto/
|
||||
curl -qL "https://github.com/tendermint/spec/${URL_PATH}${VERS}.tar.gz" | tar -xjf - spec-"$VERS"/proto/
|
||||
|
||||
cp -r ./spec-"$VERS"/proto/tendermint/** ./proto/tendermint
|
||||
|
||||
@@ -17,7 +21,7 @@ echo "proto files have been generated"
|
||||
|
||||
echo "removing copied files"
|
||||
|
||||
rm -rf ./proto/tendermint/abci/types.proto
|
||||
rm -rf ./proto/tendermint/abci
|
||||
rm -rf ./proto/tendermint/blocksync/types.proto
|
||||
rm -rf ./proto/tendermint/consensus/types.proto
|
||||
rm -rf ./proto/tendermint/mempool/types.proto
|
||||
@@ -30,6 +34,6 @@ rm -rf ./proto/tendermint/types/evidence.proto
|
||||
rm -rf ./proto/tendermint/types/params.proto
|
||||
rm -rf ./proto/tendermint/types/types.proto
|
||||
rm -rf ./proto/tendermint/types/validator.proto
|
||||
rm -rf ./proto/tendermint/version/version.proto
|
||||
rm -rf ./proto/tendermint/version/types.proto
|
||||
|
||||
rm -rf ./spec-"$VERS"
|
||||
|
||||
Reference in New Issue
Block a user