fix: ethtypes: Correct 'no transactions' hash in NewEthBlock

This commit is contained in:
Łukasz Magiera
2023-02-06 17:17:19 +01:00
parent 424824019b
commit 5dc56841ea
2 changed files with 16 additions and 10 deletions
+1 -1
View File
@@ -1598,7 +1598,7 @@ func newEthBlockFromFilecoinTipSet(ctx context.Context, ts *types.TipSet, fullTx
return ethtypes.EthBlock{}, xerrors.Errorf("error loading messages for tipset: %v: %w", ts, err)
}
block := ethtypes.NewEthBlock()
block := ethtypes.NewEthBlock(len(msgs) > 0)
// this seems to be a very expensive way to get gasUsed of the block. may need to find an efficient way to do it
gasUsed := int64(0)