Skip to content

Commit feaa1d5

Browse files
committed
Fixed nil map issue
1 parent 937ea6e commit feaa1d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

database/ldb/dblock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ func (db *LevelDb) FetchAllUnconfirmedDirBlockInfo() (dirBlockInfoMap map[string
435435
if iter.Value()[len(iter.Value())-1] == 0 {
436436
_, err := dBInfo.UnmarshalBinaryData(iter.Value())
437437
if err != nil {
438-
return nil, err
438+
return dirBlockInfoMap, err
439439
}
440440
dirBlockInfoMap[dBInfo.DBMerkleRoot.String()] = dBInfo
441441
}

0 commit comments

Comments
 (0)