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

Can a transaction appear in multiple layers? #84

Open
lrettig opened this issue Jun 1, 2020 · 2 comments
Open

Can a transaction appear in multiple layers? #84

lrettig opened this issue Jun 1, 2020 · 2 comments

Comments

@lrettig
Copy link
Member

lrettig commented Jun 1, 2020

As discussed on today's design review call, we need to decide what happens if the same tx appears in blocks in multiple layers. Does the consensus layer output this tx in later layers, or ignore it entirely? Is gas charged for it? Does this depend upon whether the tx was contextually valid or not?

CC @noamnelke @tal-m @iddo333

@avive
Copy link
Contributor

avive commented Jun 18, 2020

I think that the latest answer from research from our recent discussions about this is that technically duplicated transactions may be on multiple layers of the mesh (in the case that somehow a node that included the tx in a later block, didn't see that the same tx was already in a block in a previous recent layer but that such duplicated tx will never appear in the filtered sorted input list for the STF in the node. So part of the preparation rules of the input tx list for the stf is that the tx didn't appear in a previous layer already (and so was or will be proceed by STF for that layer. @tal-m - can you please confirm we got this right?

@lrettig
Copy link
Member Author

lrettig commented Jun 18, 2020

Linking spacemeshos/api#8

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

2 participants