adding log print in case Hare failed validating block
@@ -373,9 +373,11 @@ func (app *SpacemeshApp) initServices(nodeID types.NodeId, swarm service.Service
for _, b := range ids {
res, err := mdb.GetBlock(b)
if err != nil {
+ app.log.With().Error("failed to validate block", log.BlockId(uint64(b)))
return false
}
if res == nil {
+ app.log.With().Error("failed to validate block (BUG BUG BUG - GetBlock return err nil and res nil)", log.BlockId(uint64(b)))
return false
}
