utils.GetLogInstance().Debug("Received new prepare signature","numReceivedSoFar",len(prepareSigs),"validatorAddress",validatorAddress,"PublicKeys",len(consensus.PublicKeys))
utils.GetLogInstance().Debug("Received new prepare signature","numReceivedSoFar",len(prepareSigs),"validatorAddress",validatorAddress,"PublicKeys",len(consensus.PublicKeys))
prepareSigs[validatorAddress]=&sign
prepareSigs[validatorAddress]=&sign
prepareBitmap.SetKey(validatorPeer.ConsensusPubKey,true)// Set the bitmap indicating that this validator signed.
prepareBitmap.SetKey(validatorPubKey,true)// Set the bitmap indicating that this validator signed.
utils.GetLogInstance().Debug("Received new VRF commit","numReceivedSoFar",len((*vrfs)),"validatorAddress",validatorAddress,"PublicKeys",len(dRand.PublicKeys))
utils.GetLogInstance().Debug("Received new VRF commit","numReceivedSoFar",len((*vrfs)),"validatorAddress",validatorAddress,"PublicKeys",len(dRand.PublicKeys))
(*vrfs)[validatorAddress]=drandMsg.Payload
(*vrfs)[validatorAddress]=drandMsg.Payload
dRand.bitmap.SetKey(validatorPeer.ConsensusPubKey,true)// Set the bitmap indicating that this validator signed.
dRand.bitmap.SetKey(senderPubKey,true)// Set the bitmap indicating that this validator signed.
utils.GetLogInstance().Info(fmt.Sprintf("[Resharded][epoch:%d] I stay at shard %d, %s",core.GetEpochFromBlockNumber(newBlock.NumberU64()),myShard,aboutLeader),"BlsAddress",blsAddr)
utils.GetLogInstance().Info(fmt.Sprintf("[Resharded][epoch:%d] I stay at shard %d, %s",core.GetEpochFromBlockNumber(newBlock.NumberU64()),myShard,aboutLeader),"BlsPubKey",hex.EncodeToString(myBlsPubKey))
}else{
}else{
utils.GetLogInstance().Info(fmt.Sprintf("[Resharded][epoch:%d] I got resharded to shard %d, %s",core.GetEpochFromBlockNumber(newBlock.NumberU64()),myShard,aboutLeader),"BlsAddress",blsAddr)
utils.GetLogInstance().Info(fmt.Sprintf("[Resharded][epoch:%d] I got resharded to shard %d from shard %d, %s",core.GetEpochFromBlockNumber(newBlock.NumberU64()),myShard,node.blockchain.ShardID(),aboutLeader),"BlsPubKey",hex.EncodeToString(myBlsPubKey))
}
}
}else{
}else{
utils.GetLogInstance().Info(fmt.Sprintf("[Resharded][epoch:%d] Somehow I got kicked out",core.GetEpochFromBlockNumber(newBlock.NumberU64())),"BlsAddress",blsAddr)
utils.GetLogInstance().Info(fmt.Sprintf("[Resharded][epoch:%d] Somehow I got kicked out",core.GetEpochFromBlockNumber(newBlock.NumberU64())),"BlsPubKey",hex.EncodeToString(myBlsPubKey))