rpc: fix method to calculate block hash and fix mismatch block hash in eth.getBlock response (#755)

This commit is contained in:
Louis Liu
2021-01-31 23:20:22 -03:00
committed by GitHub
parent e1349e46a3
commit 6d11e23326
4 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ func getEthTransactionByHash(cliCtx context.CLIContext, hashHex string) ([]byte,
return nil, err
}
blockHash := common.BytesToHash(block.Block.Header.Hash())
blockHash := common.BytesToHash(block.Block.Hash())
ethTx, err := rpctypes.RawTxToEthTx(cliCtx, tx.Tx)
if err != nil {