Commit 65efdfc 1 parent 8ba15a3 commit 65efdfc Copy full SHA for 65efdfc
File tree 3 files changed +2
-6
lines changed
3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ ADD start /
53
53
RUN ["chmod" , "+x" , "start" ]
54
54
55
55
ARG PROTOCOL_VERSION_DEFAULT
56
+ RUN test -n "$PROTOCOL_VERSION_DEFAULT" || (echo "Image build arg PROTOCOL_VERSION_DEFAULT required and not set" && false)
56
57
ENV PROTOCOL_VERSION_DEFAULT $PROTOCOL_VERSION_DEFAULT
57
58
58
59
ENTRYPOINT ["/start" ]
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ __PHONY__: run logs build build-deps build-deps-core build-deps-horizon build-de
2
2
3
3
REVISION =$(shell git -c core.abbrev=no describe --always --exclude='* ' --long --dirty)
4
4
TAG? =dev
5
- PROTOCOL_VERSION_DEFAULT? =
5
+ PROTOCOL_VERSION_DEFAULT? =22
6
6
XDR_REPO? =https://github.com/stellar/rs-stellar-xdr.git
7
7
XDR_REF? =main
8
8
CORE_REPO? =https://github.com/stellar/stellar-core.git
Original file line number Diff line number Diff line change @@ -531,11 +531,6 @@ function upgrade_local() {
531
531
# Wait for server
532
532
while ! echo " Stellar-core http server listening!" | nc localhost 11626 & > /dev/null; do sleep 1; done
533
533
534
- # Default to latest version supported by core if no default or explicit version was set
535
- if [ -z " $PROTOCOL_VERSION " ]; then
536
- export PROTOCOL_VERSION=` curl -s http://localhost:11626/info | jq -r ' .info.protocol_version' `
537
- fi
538
-
539
534
if [ " .$PROTOCOL_VERSION " == " .none" ] ; then
540
535
return
541
536
fi
You can’t perform that action at this time.
0 commit comments