Open dino-rodriguez opened 6 years ago
What is the high-level design here? Is it documented anywhere?
I assume this simply means:
sendMoney
on the plugin and expects to never handleMoney
either.)@karzak That's helpful context, thanks.
The design I have been working on in my head looks something like this:
sendMoney
)The goal here is to reduce the connector to being effectively a router. It might still do some balance/throughout tracking internally to facilitate smarter routing or security but this would not be for settlement purposes.
The plugins will either be "servers" servicing multiple accounts at a single endpoint or host-to-host connections servicing a single high-volume connection to another connector.
Does that make sense and align with the direction you have in mind?
Ethereum
Lightning/Bitcoin
XRP
A possible solution to explore is to move the balance logic down to BTP. This would make BTP stateful though, if we want to persist balances.
This should be done before TC2.