|
|
@ -1184,17 +1184,25 @@ func New( |
|
|
|
node.serviceManager = service.NewManager() |
|
|
|
node.serviceManager = service.NewManager() |
|
|
|
|
|
|
|
|
|
|
|
// log all pending crosslinks
|
|
|
|
// log all pending crosslinks
|
|
|
|
|
|
|
|
invalidToDelete := []types.CrossLink{} |
|
|
|
allPending, err := node.Blockchain().ReadPendingCrossLinks() |
|
|
|
allPending, err := node.Blockchain().ReadPendingCrossLinks() |
|
|
|
if err == nil { |
|
|
|
if err == nil { |
|
|
|
for _, pending := range allPending { |
|
|
|
for _, pending := range allPending { |
|
|
|
|
|
|
|
if pending.EpochF.Int64() < 1100 { |
|
|
|
utils.Logger().Info(). |
|
|
|
utils.Logger().Info(). |
|
|
|
Uint32("shard", pending.ShardID()). |
|
|
|
Uint32("shard", pending.ShardID()). |
|
|
|
Int64("epoch", pending.Epoch().Int64()). |
|
|
|
Int64("epoch", pending.Epoch().Int64()). |
|
|
|
Uint64("blockNum", pending.BlockNum()). |
|
|
|
Uint64("blockNum", pending.BlockNum()). |
|
|
|
Int64("viewID", pending.ViewID().Int64()). |
|
|
|
Int64("viewID", pending.ViewID().Int64()). |
|
|
|
Interface("hash", pending.Hash()). |
|
|
|
Interface("hash", pending.Hash()). |
|
|
|
Msg("[PendingCrossLinksOnInit] pending cross links") |
|
|
|
Msg("[PendingCrossLinksOnInit] delete pending cross links") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
invalidToDelete = append(invalidToDelete, pending) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
node.Blockchain().DeleteFromPendingCrossLinks(invalidToDelete) |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
utils.Logger().Error(). |
|
|
|
utils.Logger().Error(). |
|
|
|
Err(err). |
|
|
|
Err(err). |
|
|
|