update consensus and committee informatin for at end of every epoch; fix bls library source broken

pull/1738/head
chao 5 years ago
parent 3e8309423c
commit 8458f581ea
  1. 4
      node/node_syncing.go
  2. 7
      scripts/setup_bls_build_flags.sh

@ -235,7 +235,9 @@ SyncingLoop:
node.Consensus.BlocksNotSynchronized()
}
node.stateSync.SyncLoop(bc, worker, false)
if node.NodeConfig.Role() == nodeconfig.ExplorerNode {
// update the consensus and committee information at the end of epoch including explorer node
// only when the syncing shard is different than node's own shard, we don't update it
if node.Blockchain().ShardID() == bc.ShardID() && core.ShardingSchedule.IsLastBlock(bc.CurrentBlock().NumberU64()) {
node.Consensus.UpdateConsensusInformation()
}
if willJoinConsensus {

@ -35,10 +35,3 @@ case $OS in
export DYLD_FALLBACK_LIBRARY_PATH=$LD_LIBRARY_PATH
;;
esac
if [ "$1" == '-v' ]; then
echo "{ \"CGO_CFLAGS\" : \"$CGO_CFLAGS\",
\"CGO_LDFLAGS\" : \"$CGO_LDFLAGS\",
\"LD_LIBRARY_PATH\" : \"$LD_LIBRARY_PATH\",
\"DYLD_FALLBACK_LIBRARY_PATH\" : \"$DYLD_FALLBACK_LIBRARY_PATH\"}" | jq "."
fi

Loading…
Cancel
Save