Closed piggydoughnut closed 3 years ago
So, the battle plan is to run a couple of SPV servers ( KMD full nodes ), those will be run with addressindex=1
spentindex=1
so they will have a full index of all addresses and their txs. Those will be our explorer nodes. These servers will be added as peers to our nspv coin configuration (which is in the coins file of libnspv repo).
Plus we will have a local db for storing wallet txs. We will query the explorer nodes with some frequency during the day to make sure we are aware of all the txs that happen in the network by our address.
Add local db to store wallet transactions.
https://javascript.info/indexeddb https://jsstore.net/ or https://dexie.org/
NSPV docs https://developers.komodoplatform.com/basic-docs/smart-chains/smart-chain-setup/nspv.html#introduction