forked from cerc-io/laconicd-deprecated
rpc: fix method to calculate block hash and fix mismatch block hash in eth.getBlock response (#755)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user