chain-api: stop ancestors lookup at block #0 (#4560)

This commit is contained in:
Chris Sosnin
2021-12-18 17:50:08 +03:00
committed by GitHub
parent 686d82a437
commit 5e80287475
3 changed files with 35 additions and 3 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ where
Ok(None) => None,
Ok(Some(header)) => {
// stop at the genesis header.
if header.number == 1 {
if header.number == 0 {
None
} else {
hash = header.parent_hash;