Skip to content

Commit

Permalink
go fmt (#6101)
Browse files Browse the repository at this point in the history
  • Loading branch information
farazdagi committed Jun 3, 2020
1 parent e79ba09 commit 7429221
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions validator/db/manage_test.go
Expand Up @@ -16,8 +16,8 @@ import (
)

type storeHistory struct {
Proposals map[[48]byte]bitfield.Bitlist
Attestations map[[48]byte]map[uint64]uint64
Proposals map[[48]byte]bitfield.Bitlist
Attestations map[[48]byte]map[uint64]uint64
}

func TestMerge(t *testing.T) {
Expand Down Expand Up @@ -49,8 +49,8 @@ func TestMerge(t *testing.T) {
mergedAttestations[k] = v
}
mergedStoreHistory := storeHistory{
Proposals: mergedProposals,
Attestations: mergedAttestations,
Proposals: mergedProposals,
Attestations: mergedAttestations,
}

targetDirectory := testutil.TempDir() + "/target"
Expand Down Expand Up @@ -225,8 +225,8 @@ func prepareStore(store *Store, pubKeys [][48]byte) (*storeHistory, error) {
return nil, err
}
history := storeHistory{
Proposals: proposals,
Attestations: attestations,
Proposals: proposals,
Attestations: attestations,
}
return &history, nil
}
Expand All @@ -250,7 +250,7 @@ func prepareStoreAttestations(store *Store, pubKeys [][48]byte) (map[[48]byte]ma
attestations := make(map[[48]byte]map[uint64]uint64)

for i, key := range pubKeys {
attestationHistoryMap := make(map[uint64]uint64)
attestationHistoryMap := make(map[uint64]uint64)
attestationHistoryMap[0] = uint64(i)
attestationHistory := &slashpb.AttestationHistory{
TargetToSource: attestationHistoryMap,
Expand Down
4 changes: 2 additions & 2 deletions validator/flags/flags.go
Expand Up @@ -99,12 +99,12 @@ var (
}
// SplitSourceDirectory defines the location of the validator database that will be split.
SplitSourceDirectory = &cli.StringFlag{
Name: "split-source-dir",
Name: "split-source-dir",
Usage: "The directory containing the validator database that will be split.",
}
// SplitTargetDirectory defines the location where the split outcome will be stored.
SplitTargetDirectory = &cli.StringFlag{
Name: "split-target-dir",
Name: "split-target-dir",
Usage: "The directory where the split outcome will be stored.",
}
// UnencryptedKeysFlag specifies a file path of a JSON file of unencrypted validator keys as an
Expand Down

0 comments on commit 7429221

Please sign in to comment.