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

prevalidation #17

Open
nicolasochem opened this issue Apr 15, 2022 · 0 comments
Open

prevalidation #17

nicolasochem opened this issue Apr 15, 2022 · 0 comments

Comments

@nicolasochem
Copy link
Contributor

Relay

The relay receives operations and keeps them until they are included. But they could become no longer valid, for example:

  • user got tired of waiting and used regular mempool
  • user tries to buy an NFT that has already been purchased by someone else

Tezos has a "preapply" endoint which lets you check whether the operation would be applied.

I think preapply does:

As a result, if this fails, we should remove the operation from the relay's mempool.

Endpoint

The endpoint should also prevalidate the current winner of the auction, before submitting it, otherwise the baker won't include the operation and the flashbaker won't earn the fee.

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

No branches or pull requests

1 participant