txgraph: Add initial version (feature)

This adds an initial version of the txgraph module, with the TxGraph class.
It encapsulates knowledge about the fees, sizes, and dependencies between all
mempool transactions, but nothing else.

In particular, it lacks knowledge about txids, inputs, outputs, CTransactions,
... and so forth. Instead, it exposes a generic TxGraph::Ref type to reference
nodes in the TxGraph, which can be passed around and stored by layers on top.
This commit is contained in:
Pieter Wuille
2024-08-21 14:37:00 -04:00
parent 6eab3b2d73
commit 8ad3ed2681
3 changed files with 1278 additions and 0 deletions

1138
src/txgraph.cpp Normal file

File diff suppressed because it is too large Load Diff