|
|
|
@ -127,7 +127,7 @@ func (node *Node) proposeNewBlock() (*types.Block, error) { |
|
|
|
|
|
|
|
|
|
// Prepare cross links
|
|
|
|
|
var crossLinksToPropose types.CrossLinks |
|
|
|
|
if node.NodeConfig.ShardID == 0 { |
|
|
|
|
if node.NodeConfig.ShardID == 0 && node.Blockchain().Config().IsStaking(node.Worker.GetCurrentHeader().Epoch()) { |
|
|
|
|
node.pendingCLMutex.Lock() |
|
|
|
|
allPending, err := node.Blockchain().ReadPendingCrossLinks() |
|
|
|
|
node.pendingCLMutex.Unlock() |
|
|
|
|