-
Notifications
You must be signed in to change notification settings - Fork 4
Add setup for Testnet. Optimize sync time #22
Conversation
network = parsed_args.network | ||
data = toml.load(file) | ||
|
||
if network == "testnet": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactored L18-L76 in a new function with early exits and removed else
/ elif
branches?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed (refactored).
Dockerfile
Outdated
WORKDIR /go/mx-chain-proxy-go-mainnet/cmd/proxy | ||
RUN go build | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not related to these changes, maybe in a future PR; we have also for proxy appVersion
and commitID
based on build data, so it can be build like this -ldflags="-X main.appVersion=$(git --git-dir /workspace/mx-chain-devnet-config/.git describe --tags --long --dirty) -X main.commitID=$(git --git-dir /workspace/mx-chain-devnet-config/.git rev-parse HEAD)"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partially fixed - appVersion
, but without commitID
- just as for the Node.
8f2ddc8
Optimize sync time:
Define setup for Testnet in docker-compose. Omit "re-construction services", since they will be removed here anyway:
Use
prefs.toml
overrides, where possible.