Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

async state machines #7

Closed
keppel opened this issue Aug 31, 2017 · 1 comment
Closed

async state machines #7

keppel opened this issue Aug 31, 2017 · 1 comment

Comments

@keppel
Copy link
Owner

keppel commented Aug 31, 2017

this is important for a few reasons:

  • allows lotion to be the glue between tendermint and a program written in any other language. this is the sort of thing where Node shines.
  • allows a merkle-ized data store for the app state.

transactions will still be handled serially, they just don't have to mutate the state synchronously.

@keppel
Copy link
Owner Author

keppel commented Nov 29, 2017

delaying async transaction handlers for as long as possible. probably will eventually support

app.use((state, tx)=>{
  return new Promise((resolve, reject)=> {
    // ...
  })
})

but let's keep tx handlers sync for a while.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant