fix timestamp marshal

pull/1218/head
Richard Liu 5 years ago
parent 1e13aa884f
commit 9eb1a39fb8
  1. 2
      internal/hmyapi/types.go

@ -105,7 +105,7 @@ func RPCMarshalBlock(b *types.Block, inclTx bool, fullTx bool) (map[string]inter
"size": hexutil.Uint64(b.Size()),
"gasLimit": hexutil.Uint64(head.GasLimit),
"gasUsed": hexutil.Uint64(head.GasUsed),
"timestamp": head.Time, // TODO(ricl): should be hexutil.Uint64
"timestamp": hexutil.Uint64(head.Time.Uint64()),
"transactionsRoot": head.TxHash,
"receiptsRoot": head.ReceiptHash,
}

Loading…
Cancel
Save