Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.

Conversation

@veqtor
Copy link
Collaborator

@veqtor veqtor commented Mar 16, 2021

This modification to the API allows for quantizing max timestamp to conseil request, which makes a certain feed given such a 1 minute quantized timestamp act in an immutable way, this is good because if someone mints before fetching offset 1 we get duplicate items, also we are able to set cache headers.
Because there is cloudflare we then hit edge cache so we get only one request per minute.
This works perfectly because Tezos has ~1 minute block time

There are UI changes that go with this change

@veqtor
Copy link
Collaborator Author

veqtor commented Mar 18, 2021

@anonymoussprocket do you have time to review my PR, I can test and review yours, so @crzypatchwork has a bit more to go on before he merge our PRs.
You will need to check out and run UI PR and point env to localhost in the UI, since I change route a bit

@crzypatchwork crzypatchwork merged commit 73c8786 into hicetnunc2000:master Mar 19, 2021
@veqtor veqtor deleted the edge_cache_feed branch April 12, 2021 20:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants