node: feature flag for legacy p2p support (#6056)

This commit is contained in:
Erik Grinaker
2021-02-16 11:57:16 -05:00
committed by GitHub
parent 16bbe8c862
commit b6be889b97
4 changed files with 286 additions and 51 deletions
+1
View File
@@ -27,6 +27,7 @@ RUN cd test/e2e && make app && cp build/app /usr/bin/app
WORKDIR /tendermint
VOLUME /tendermint
ENV TMHOME=/tendermint
ENV TM_LEGACY_P2P=true
EXPOSE 26656 26657 26660 6060
ENTRYPOINT ["/usr/bin/entrypoint"]
+2
View File
@@ -71,8 +71,10 @@ func waitForNode(node *e2e.Node, height int64, timeout time.Duration) (*rpctypes
if err != nil {
return nil, err
}
ctx, cancel := context.WithTimeout(context.Background(), timeout)
defer cancel()
for {
status, err := client.Status(ctx)
switch {