-
Notifications
You must be signed in to change notification settings - Fork 4
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
Discuss architecture #1
Comments
Don't think the node is essential for now. It is enough to connect to an elements node if needed. Abstracting this dependency behind the
With this architecture, it is crucial for the This makes me wonder what's the reason for this effort: why do we want the UtxoScanner to not be related to the PeersPool? They are part of the same " |
The main benefit would be to run this services in heterogeneous setup like a browser if compiled to WASM for example. Having a "pluggable" repository, would allow us to use localStorage for example. |
FYI may be interesting using WebRTC for doing Bitcoin Peer calls https://github.com/mappum/webcoin via bridges https://github.com/mappum/webcoin-bridge |
the first commit proposes an architecture that differs from the neutrino's one:
neutrino-elements
is not a full node likeneutrino
: it means that we never send message to other peers. ThePeer
interface aims to only fetch data. The idea is to be able to use an explorer (or a full node or whatever compliant to Peer interface) to get the data of the chain. In my opinion, it is not necessary to implement a full node to be able to use the compact block filter: we only need filters and block headers. Of course, later we could write an element's full node and use it as a "PeersPool".neutrino
strongly coupled theChainService
(which sync the chain data) and theutxoScanner
(uses block filters to find elements). Here I choose to use the Repository pattern in order to separate the service that fetches the data and the one that uses filters to find elements of the chain. The main idea is to be able to useUtxoScanner
without running thePeersPool
service if we already have a DB containing headers and filters.cc @tiero @altafan @sekulicd
The text was updated successfully, but these errors were encountered: