Commit Graph

6 Commits

Author SHA1 Message Date
Mononaut
e845157610 Refactor API/Core bridge & mempool tracking.
API:
- Better RPC handling (cache credentials)
- Process transaction prevouts in dedicated Tasks
- Consume ZMQ sequence msgs
- Track mempool count precisely
- Cache prevouts for mempool transactions
- Send mempool count with every client msg, instead of reconstructing client-side
- Only send block ids over websocket, let clients fetch the full block data via http

Client:
- Simplify transaction queue to avoid setTimeouts
  - improves experience in background tabs
  - no longer need to hold back txs, as duplicates are now handled API-side
- Use API-supplied mempool count, instead of tracking it client-side
- Make mempoolCount a Svelte spring store, so updates transition smoothly
2022-02-18 18:07:58 -06:00
Mononaut
14a1c54352 Extend txs and blocks with prevouts and fees
Fetch prevouts for solo and block transactions,
and calculate input values & tx fees.

Naive initial implementation with no caching,
so block processing is sloooooooooooooow.
2022-02-13 22:48:40 -06:00
Mononaut
be85d5d853 Dedicated RPC process, wait for ibd on startup 2022-01-23 16:55:10 -06:00
Mononaut
a343ec1bc6 Docker config, compatibility & env var support 2022-01-23 16:54:04 -06:00
Mononaut
12118c93a3 Separate donation logic from tx streaming server 2021-12-24 10:04:11 -06:00
Mononaut
739b8518ef Prep server for monorepo 2021-12-02 17:00:19 -06:00