Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Add setup for Testnet. Optimize sync time #22

Merged
merged 5 commits into from
Nov 15, 2023

Conversation

andreibancioiu
Copy link
Contributor

@andreibancioiu andreibancioiu commented Nov 13, 2023

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.

@andreibancioiu andreibancioiu self-assigned this Nov 13, 2023
@iulianpascalau iulianpascalau self-requested a review November 13, 2023 13:25
iulianpascalau
iulianpascalau previously approved these changes Nov 13, 2023
network = parsed_args.network
data = toml.load(file)

if network == "testnet":

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed (refactored).

ssd04
ssd04 previously approved these changes Nov 13, 2023
Dockerfile Outdated
Comment on lines 64 to 66
WORKDIR /go/mx-chain-proxy-go-mainnet/cmd/proxy
RUN go build

Copy link

@ssd04 ssd04 Nov 13, 2023

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)"

Copy link
Contributor Author

@andreibancioiu andreibancioiu Nov 15, 2023

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.

@andreibancioiu andreibancioiu dismissed stale reviews from ssd04 and iulianpascalau via 8f2ddc8 November 15, 2023 12:55
@andreibancioiu andreibancioiu merged commit 3e2ac6d into main Nov 15, 2023
@andreibancioiu andreibancioiu deleted the testnet-plus-optimize-sync-time branch November 15, 2023 13:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants