]> Untitled Git - bdk/commit
feat(chain): Add method for constructing `TxGraph` from a `ChangeSet`
authoruvuvuwu <2003danielsu@gmail.com>
Sun, 6 Apr 2025 00:03:47 +0000 (12:03 +1200)
committeruvuvuwu <2003danielsu@gmail.com>
Mon, 7 Apr 2025 01:47:01 +0000 (13:47 +1200)
commitf68cfa8afb7602d36a9b5c41552b2fc6de2c9ac2
treeec32df9a0ecf4b636cec284154573477b0aeb03e
parent5817ed07f220c787a26e234307f8308d3ab6165e
feat(chain): Add method for constructing `TxGraph` from a `ChangeSet`

* Added a `from_changeset()` function to `TxGraph` implementation
* This function initializes a new `TxGraph` and applies the given `ChangeSet`
* The method allows constructing a `TxGraph` directly from a `ChangeSet`,
  simplifying graph creation.
crates/chain/src/tx_graph.rs