Merge pull request #1218 from lzl124631x/ricl-timestamp

fix timestamp marshal
pull/1222/head
Richard Liu 5 years ago committed by GitHub
commit 60bfb8daf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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