Skip to content

Module questions #3341

Answered by dpc
toyota-corolla0 asked this question in Q&A
Oct 9, 2023 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Are inputs and outputs verified in a single threaded manner in the same order by all guardians?

The Federation needs to reach a consensus, so there has to be an ordering of how things are being processed. Anything else would be a serious bug.

I would need to check if we call process_output single-threaded in order, but I'd guess that yes.

 If yes, how should I store that data structure.

In a database. Serialize using Encodable and store. See how other modules are storing their data. You might want to decompose it into individually update-able parts for performance reasons.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@toyota-corolla0
Comment options

@dpc
Comment options

dpc Oct 10, 2023
Maintainer

@elsirion
Comment options

Answer selected by toyota-corolla0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants