feat(chain): Add initial_changeset to graphs

Add `initial_changeset` to TxGraph and IndexedTxGraph
This commit is contained in:
Daniela Brozzoni
2023-08-16 17:39:35 +02:00
parent ea50b6a932
commit 80f5ecf3be
8 changed files with 49 additions and 9 deletions

View File

@@ -20,6 +20,7 @@ mod txout_index;
pub use txout_index::*;
/// Represents updates to the derivation index of a [`KeychainTxOutIndex`].
/// It maps each keychain `K` to its last revealed index.
///
/// It can be applied to [`KeychainTxOutIndex`] with [`apply_changeset`]. [`ChangeSet] are
/// monotone in that they will never decrease the revealed derivation index.