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

Mock ingest transactions & produce blocks #323

Closed
karlfloersch opened this issue Jul 8, 2019 · 0 comments · Fixed by #325
Closed

Mock ingest transactions & produce blocks #323

karlfloersch opened this issue Jul 8, 2019 · 0 comments · Fixed by #325
Assignees
Labels
@pigi/aggregator Tasks for @pigi/aggregator

Comments

@karlfloersch
Copy link
Contributor

karlfloersch commented Jul 8, 2019

The aggregator must accept transactions, and produce blocks with state updates which result from those transactions. This process is independent from the authentication of transactions or the state transition calculations. Therefore we can create an initial version which simply accepts transactions with ingestTransaction() where the transaction is simply the StateUpdate which will be included in the next block. These StateUpdates will be added to a queue which is then emptied periodically to produce a next block.

The function calls would look something like:

Some of this functionality was started in -- https://github.com/plasma-group/pigi/pull/280/files .

@karlfloersch karlfloersch added the @pigi/aggregator Tasks for @pigi/aggregator label Jul 8, 2019
@karlfloersch karlfloersch changed the title Ingest mocked transactions & produce blocks periodically Implement mocked ingest txs & produce blocks periodically Jul 8, 2019
@karlfloersch karlfloersch changed the title Implement mocked ingest txs & produce blocks periodically Mock ingest transactions & produce blocks Jul 8, 2019
@karlfloersch karlfloersch reopened this Jul 8, 2019
@willmeister willmeister self-assigned this Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@pigi/aggregator Tasks for @pigi/aggregator
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants