Skip to content

Commit

Permalink
also show stats on non-root nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ineiti committed Dec 9, 2015
1 parent 4c289d4 commit d05f772
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
23 changes: 15 additions & 8 deletions app/conode/cross_compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ if [ ! "$1" ]; then
fi
VERSION=$1

echo Cross-compiling for platforms and cpus

compile(){
BINARY=$1
echo Compiling $BINARY
Expand All @@ -23,15 +21,24 @@ done
rm conode-bin/$BINARY-darwin-386
}

compile conode
cd stamp
compile stamp
cd ..
mv stamp/conode-bin/* conode-bin
rmdir stamp/conode-bin
if [ ! "$2" ]; then
go build
echo Cross-compiling for platforms and cpus
compile conode
cd stamp
compile stamp
cd ..
mv stamp/conode-bin/* conode-bin
rmdir stamp/conode-bin
fi

echo Copying scripts to the binary-directory
cp start-conode* conode-bin
cp update.sh conode-bin
cd real
cat *pub > hostlist
../conode build hostlist
cd ..
cp real/config.toml conode-bin
TAR=conode-$VERSION.tar.gz

Expand Down
6 changes: 2 additions & 4 deletions app/conode/roundstats.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ func (round *RoundStats) Commitment(in []*sign.SigningMessage, out *sign.Signing

func (round *RoundStats) SignatureBroadcast(in *sign.SigningMessage, out []*sign.SigningMessage) error {
err := round.RoundStamperListener.SignatureBroadcast(in, out)
if err == nil && round.IsRoot {
dbg.Lvlf1("This is round %d with %d messages - %d since start.",
round.RoundNbr, in.SBm.Messages, round.Node.Messages)
}
dbg.Lvlf1("This is round %d with %d messages - %d since start.",
round.RoundNbr, in.SBm.Messages, round.Node.Messages)
return err
}

0 comments on commit d05f772

Please sign in to comment.