Closed vojtechsimetka closed 1 year ago
The issue is, that in order to get a timestamp when a post was created, we would have to make an API call for each one of the posts. This is known pain https://ethereum-magicians.org/t/proposal-for-adding-blocktimestamp-to-logs-object-returned-by-eth-getlogs-and-related-requests/11183 . Ultimately the solution is to have some cache mechanism but even then it is somewhat wasteful.
However, I think we can have creative ways how to alleviate the problem since we have the blocknumber when the post was sent:
Just add the timestamp to the emitted event? That's the option I chose for Boardwalk because it scales way better even though it's not super clean and costs a bit more gas.
This is no longer an issue.
The issue is, that in order to get a timestamp when a post was created, we would have to make an API call for each one of the posts. This is known pain https://ethereum-magicians.org/t/proposal-for-adding-blocktimestamp-to-logs-object-returned-by-eth-getlogs-and-related-requests/11183 . Ultimately the solution is to have some cache mechanism but even then it is somewhat wasteful.
However, I think we can have creative ways how to alleviate the problem since we have the blocknumber when the post was sent: