Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit cd5b582

Browse files
authored
Merge pull request #741 from iotaledger/remove/genesis-snapshot-submodule
Remove submodule for genesis-snapshot to enable import by other projects
2 parents df4e244 + a71b225 commit cd5b582

File tree

8 files changed

+16
-240
lines changed

8 files changed

+16
-240
lines changed

.github/workflows/build_tools.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424

2525
- name: Build genesis-snapshot tool
2626
working-directory: tools/genesis-snapshot
27-
run: go mod tidy && go build .
27+
run: go build .

.github/workflows/feature-network-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
- uses: actions/setup-go@v5
4646
with:
47-
go-version-file: 'tools/genesis-snapshot/go.mod'
47+
go-version-file: 'go.mod'
4848
cache: false
4949

5050
- name: Print Go version

scripts/go_mod_tidy.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,4 @@ pushd tools/gendoc
77
go mod tidy
88
popd
99

10-
pushd tools/genesis-snapshot
11-
go mod tidy
12-
popd
13-
1410
popd

tools/genesis-snapshot/go.mod

Lines changed: 0 additions & 69 deletions
This file was deleted.

tools/genesis-snapshot/go.sum

Lines changed: 0 additions & 145 deletions
This file was deleted.

tools/genesis-snapshot/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ func main() {
1818
parsedOpts, configSelected := parseFlags()
1919
opts := presets.Base
2020
if strings.Contains(configSelected, ".yml") {
21-
if yamlOpts, err := presets.GenerateFromYaml(configSelected); err != nil {
21+
yamlOpts, err := presets.GenerateFromYaml(configSelected)
22+
if err != nil {
2223
panic(err)
23-
} else {
24-
opts = append(opts, yamlOpts...)
2524
}
25+
opts = append(opts, yamlOpts...)
2626
} else {
2727
switch configSelected {
2828
case "docker":

tools/genesis-snapshot/presets/presets.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ import (
1616
)
1717

1818
var (
19-
// use defaults from iota.go
19+
// use defaults from iota.go.
2020
protocolParamsBase = iotago.NewV3SnapshotProtocolParameters(
2121
iotago.WithNetworkOptions("default", iotago.PrefixTestnet),
2222
)
2323

24-
// use defaults from iota.go
24+
// use defaults from iota.go.
2525
protocolParamsDocker = iotago.NewV3SnapshotProtocolParameters(
2626
iotago.WithNetworkOptions("docker", iotago.PrefixTestnet),
2727
iotago.WithTimeProviderOptions(5, time.Now().Unix(), 10, 7),
2828
iotago.WithLivenessOptions(10, 15, 3, 6, 8),
2929
)
3030

31-
// use defaults from iota.go
31+
// use defaults from iota.go.
3232
protocolParamsFeature = iotago.NewV3SnapshotProtocolParameters(
3333
iotago.WithNetworkOptions("feature", iotago.PrefixTestnet),
3434
iotago.WithTimeProviderOptions(666666, time.Now().Unix()-100_000, 10, 13),

0 commit comments

Comments
 (0)