Skip to content

Commit d05f772

Browse files
committed
also show stats on non-root nodes
1 parent 4c289d4 commit d05f772

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

app/conode/cross_compile.sh

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ if [ ! "$1" ]; then
66
fi
77
VERSION=$1
88

9-
echo Cross-compiling for platforms and cpus
10-
119
compile(){
1210
BINARY=$1
1311
echo Compiling $BINARY
@@ -23,15 +21,24 @@ done
2321
rm conode-bin/$BINARY-darwin-386
2422
}
2523

26-
compile conode
27-
cd stamp
28-
compile stamp
29-
cd ..
30-
mv stamp/conode-bin/* conode-bin
31-
rmdir stamp/conode-bin
24+
if [ ! "$2" ]; then
25+
go build
26+
echo Cross-compiling for platforms and cpus
27+
compile conode
28+
cd stamp
29+
compile stamp
30+
cd ..
31+
mv stamp/conode-bin/* conode-bin
32+
rmdir stamp/conode-bin
33+
fi
3234

3335
echo Copying scripts to the binary-directory
3436
cp start-conode* conode-bin
37+
cp update.sh conode-bin
38+
cd real
39+
cat *pub > hostlist
40+
../conode build hostlist
41+
cd ..
3542
cp real/config.toml conode-bin
3643
TAR=conode-$VERSION.tar.gz
3744

app/conode/roundstats.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ func (round *RoundStats) Commitment(in []*sign.SigningMessage, out *sign.Signing
3838

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

0 commit comments

Comments
 (0)