Merge pull request #3135 from filecoin-project/feat/genesis-block-linkage
proper genesis block history
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user