Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

block timestamp format #102

Closed
ppedziwiatr opened this issue May 12, 2022 · 0 comments · Fixed by #103
Closed

block timestamp format #102

ppedziwiatr opened this issue May 12, 2022 · 0 comments · Fixed by #103
Assignees

Comments

@ppedziwiatr
Copy link
Contributor

ppedziwiatr commented May 12, 2022

Hey,

it seems that ArLocal stores the block timestamps in ms - eg: https://testnet.redstone.tools/block/hash/yntizjk6y1s913sqk2xlvr2orlbkpaxbo4pkesukhj3n7rsgsdig0vbs0mbtaakh

"timestamp": 1651833550758

The mainnet (arweave.net and nodes) returns the block timestamp in seconds - eg:
https://arweave.net/block/hash/fVUSZD3gZr1LpmzqRpgFFUZT5ZsDd1-uvRZbT7tiM4t29xLl9LTdIXAwXJOB5I-g
"timestamp":1624197593

That's a bit problematic - e.g. in case of testing a smart contract that expects timestamp in seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants