Merge pull request #3135 from filecoin-project/feat/genesis-block-linkage

proper genesis block history
This commit is contained in:
Łukasz Magiera
2020-08-18 19:28:55 +02:00
committed by GitHub
7 changed files with 80 additions and 10 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ func (a *GasAPI) GasEstimateGasPremium(ctx context.Context, nblocksincl uint64,
ts := a.Chain.GetHeaviestTipSet()
for i := uint64(0); i < nblocksincl*2; i++ {
if len(ts.Parents().Cids()) == 0 {
if ts.Height() == 0 {
break // genesis
}