|
|
@ -127,7 +127,7 @@ func (node *Node) proposeNewBlock() (*types.Block, error) { |
|
|
|
|
|
|
|
|
|
|
|
// Prepare cross links
|
|
|
|
// Prepare cross links
|
|
|
|
var crossLinksToPropose types.CrossLinks |
|
|
|
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() |
|
|
|
node.pendingCLMutex.Lock() |
|
|
|
allPending, err := node.Blockchain().ReadPendingCrossLinks() |
|
|
|
allPending, err := node.Blockchain().ReadPendingCrossLinks() |
|
|
|
node.pendingCLMutex.Unlock() |
|
|
|
node.pendingCLMutex.Unlock() |
|
|
|