Skip to content

Commit d513a82

Browse files
authored
make fmt. (#2)
Run make fmt
1 parent a9c2895 commit d513a82

File tree

5 files changed

+16
-17
lines changed

5 files changed

+16
-17
lines changed

cmd/buildtools/genesis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var (
3636
timestampFile string
3737
forceUpdate bool
3838

39-
genesisFile string
39+
genesisFile string
4040

4141
networkName string
4242
sourceFile string

cmd/goal/node.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
package main
1818

1919
import (
20-
"encoding/json"
2120
"encoding/base64"
21+
"encoding/json"
2222
"fmt"
2323
"os"
2424
"time"
@@ -347,7 +347,7 @@ var pendingTxnsCmd = &cobra.Command{
347347
var waitCmd = &cobra.Command{
348348
Use: "wait",
349349
Short: "Waits for the node to make progress",
350-
Long: "Waits for the node to make progress, which includes catching up",
350+
Long: "Waits for the node to make progress, which includes catching up",
351351
Args: validateNoPosArgsFn,
352352
Run: func(cmd *cobra.Command, _ []string) {
353353
client := ensureAlgodClient(ensureSingleDataDir())
@@ -360,16 +360,16 @@ var waitCmd = &cobra.Command{
360360
endTime := time.After(time.Second * time.Duration(waitSec))
361361
for {
362362
select {
363-
case <-endTime:
364-
reportErrorf("Timed out waiting for node to make progress")
365-
case <-time.After(500 * time.Millisecond):
366-
stat, err = client.Status()
367-
if err != nil {
368-
reportErrorf(errorNodeStatus, err)
369-
}
370-
if startRound != stat.LastRound {
371-
os.Exit(0)
372-
}
363+
case <-endTime:
364+
reportErrorf("Timed out waiting for node to make progress")
365+
case <-time.After(500 * time.Millisecond):
366+
stat, err = client.Status()
367+
if err != nil {
368+
reportErrorf(errorNodeStatus, err)
369+
}
370+
if startRound != stat.LastRound {
371+
os.Exit(0)
372+
}
373373
}
374374
}
375375
},

data/bookkeeping/genesis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ type Genesis struct {
5959
Timestamp int64 `codec:"timestamp"`
6060

6161
// Arbitrary genesis comment string - will be excluded from file if empty
62-
Comment string `codec:"comment"`
62+
Comment string `codec:"comment"`
6363
}
6464

6565
// LoadGenesisFromFile attempts to load a Genesis structure from a (presumably) genesis.json file.

data/ledger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func makeGenesisBlocks(proto protocol.ConsensusVersion, genesisBal GenesisBalanc
5353
if !ok {
5454
return nil, fmt.Errorf("unsupported protocol %s", proto)
5555
}
56-
56+
5757
poolAddr := basics.Address(genesisBal.rewardsPool)
5858
incentivePoolBalanceAtGenesis := genesisBal.balances[poolAddr].MicroAlgos
5959

ledger/eval.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,7 @@ func startEvaluator(l ledgerForEvaluator, hdr bookkeeping.BlockHeader, aux *eval
175175
}
176176

177177
if aux == nil {
178-
aux = &evalAux{
179-
}
178+
aux = &evalAux{}
180179
}
181180

182181
base := &roundCowBase{

0 commit comments

Comments
 (0)