Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add osusergo flag and missing previewnet case #5418

Merged
merged 2 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ WORKDIR /app

ARG GOARCH=amd64
# TAGS can be overriden to modify the go build tags (e.g. build without netgo)
ARG TAGS="netgo"
ARG TAGS="netgo,osusergo"
# CC flag can be overwritten to specify a C compiler
ARG CC=""
# CGO_FLAG uses ADX instructions by default, flag can be overwritten to build without ADX
Expand Down
2 changes: 1 addition & 1 deletion state/protocol/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
// more details on this value.
func DefaultEpochCommitSafetyThreshold(chain flow.ChainID) (uint64, error) {
switch chain {
case flow.Mainnet, flow.Testnet, flow.Sandboxnet:
case flow.Mainnet, flow.Testnet, flow.Sandboxnet, flow.Previewnet:
Copy link
Member

Choose a reason for hiding this comment

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

return 1_000, nil
case flow.Localnet, flow.Benchnet, flow.BftTestnet, flow.Emulator:
return 100, nil
Expand Down
Loading