Skip to content

Commit

Permalink
go fmt, scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulSnow committed Jan 25, 2018
1 parent 40d3968 commit 5c5111d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion common/adminBlock/EntryEndOfMinute.go
Expand Up @@ -33,7 +33,7 @@ func NewEndOfMinuteEntry(minuteNumber byte) *EndOfMinuteEntry {

func (e *EndOfMinuteEntry) MarshalBinary() ([]byte, error) {
var buf primitives.Buffer

e.AdminIDType = uint32(e.Type())

err := buf.PushByte(e.Type())
Expand Down
2 changes: 1 addition & 1 deletion common/adminBlock/EntryIncreaseServerCount.go
Expand Up @@ -34,7 +34,7 @@ func (e *IncreaseServerCount) Type() byte {

func (e *IncreaseServerCount) MarshalBinary() ([]byte, error) {
var buf primitives.Buffer

e.AdminIDType = uint32(e.Type())

err := buf.PushByte(e.Type())
Expand Down
2 changes: 1 addition & 1 deletion engine/factomParams.go
Expand Up @@ -178,7 +178,7 @@ func ParseCmdLine(args []string) *FactomParams {

sync2Ptr := flag.Int("sync2", -1, "Set the initial blockheight for the second Sync pass. Used to force a total sync, or skip unnecessary syncing of entries.")

DebugConsolePtr :=flag.Bool("DebugConsole",false,"Enable DebugConsole")
DebugConsolePtr := flag.Bool("DebugConsole", false, "Enable DebugConsole")

flag.CommandLine.Parse(args)

Expand Down
6 changes: 3 additions & 3 deletions engine/factomd.go
Expand Up @@ -15,10 +15,10 @@ import (
"github.com/FactomProject/factomd/common/primitives"
"github.com/FactomProject/factomd/state"

"bufio"
log "github.com/sirupsen/logrus"
"io"
"net"
"bufio"
"os/exec"
)

Expand Down Expand Up @@ -57,7 +57,7 @@ func Factomd(params *FactomParams, listenToStdin bool) interfaces.IState {
}

// launch debug console if requested
if (params.DebugConsole) {
if params.DebugConsole {
launchDebugServer()
}

Expand Down Expand Up @@ -147,7 +147,7 @@ func launchDebugServer() {
os.Stderr.WriteString("This is stderr!\n")

// Start a listener port to connect to the debug server
ln, err := net.Listen("tcp", ":8091");
ln, err := net.Listen("tcp", ":8091")
if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/nettest/followers.sh
@@ -1,5 +1,5 @@
. fd
echo 'tail -f out1.txt | grep ^[^2]'
g factomd -prefix="x" -count=1 -networkPort="34341" -port="8092" -ControlPanelPort="9081" -logPort="6062" -db=Map -peers="127.0.0.1:34340" -network=LOCAL -blktime=60 -net=alot+ > out1.txt
g factomd -prefix="x" -count=1 -networkPort="34341" -port="8092" -ControlPanelPort="9081" -logPort="6062" -db=Map -peers="127.0.0.1:34340" -network=LOCAL -blktime=30 -net=alot+ > out1.txt


2 changes: 1 addition & 1 deletion scripts/nettest/servers.sh
@@ -1,5 +1,5 @@
. fd
echo 'tail -f out0.txt | grep ^[^2]'
g factomd -count=16 -port="8091" -networkPort="34340" -logPort="6061" -peers="127.0.0.1:34341" -network=LOCAL -blktime=30 -net=alot+ -startdelay=30 > out0.txt
g factomd -count=16 -port="8091" -networkPort="34340" -logPort="6061" -peers="127.0.0.1:34341" -network=LOCAL -blktime=30 -net=alot+ -startdelay=1 > out0.txt


0 comments on commit 5c5111d

Please sign in to comment.