Skip to content

Commit f41cc1c

Browse files
LLFourndanielabrozzoni
authored andcommitted
fix: s/index_tx_graph/indexed_tx_graph/g
1 parent da8cfd3 commit f41cc1c

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

crates/bdk/src/wallet/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ impl<D> Wallet<D> {
248248

249249
let changeset = db.load_from_persistence().map_err(NewError::Persist)?;
250250
chain.apply_changeset(&changeset.chain);
251-
indexed_graph.apply_changeset(changeset.index_tx_graph);
251+
indexed_graph.apply_changeset(changeset.indexed_tx_graph);
252252

253253
let persist = Persist::new(db);
254254

crates/chain/src/keychain.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,26 +133,26 @@ pub struct WalletChangeSet<K, A> {
133133
/// ChangeSet to [`IndexedTxGraph`].
134134
///
135135
/// [`IndexedTxGraph`]: crate::indexed_tx_graph::IndexedTxGraph
136-
pub index_tx_graph: indexed_tx_graph::ChangeSet<A, ChangeSet<K>>,
136+
pub indexed_tx_graph: indexed_tx_graph::ChangeSet<A, ChangeSet<K>>,
137137
}
138138

139139
impl<K, A> Default for WalletChangeSet<K, A> {
140140
fn default() -> Self {
141141
Self {
142142
chain: Default::default(),
143-
index_tx_graph: Default::default(),
143+
indexed_tx_graph: Default::default(),
144144
}
145145
}
146146
}
147147

148148
impl<K: Ord, A: Anchor> Append for WalletChangeSet<K, A> {
149149
fn append(&mut self, other: Self) {
150150
Append::append(&mut self.chain, other.chain);
151-
Append::append(&mut self.index_tx_graph, other.index_tx_graph);
151+
Append::append(&mut self.indexed_tx_graph, other.indexed_tx_graph);
152152
}
153153

154154
fn is_empty(&self) -> bool {
155-
self.chain.is_empty() && self.index_tx_graph.is_empty()
155+
self.chain.is_empty() && self.indexed_tx_graph.is_empty()
156156
}
157157
}
158158

@@ -166,9 +166,9 @@ impl<K, A> From<local_chain::ChangeSet> for WalletChangeSet<K, A> {
166166
}
167167

168168
impl<K, A> From<indexed_tx_graph::ChangeSet<A, ChangeSet<K>>> for WalletChangeSet<K, A> {
169-
fn from(index_tx_graph: indexed_tx_graph::ChangeSet<A, ChangeSet<K>>) -> Self {
169+
fn from(indexed_tx_graph: indexed_tx_graph::ChangeSet<A, ChangeSet<K>>) -> Self {
170170
Self {
171-
index_tx_graph,
171+
indexed_tx_graph,
172172
..Default::default()
173173
}
174174
}

example-crates/example_electrum/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn main() -> anyhow::Result<()> {
6868

6969
let graph = Mutex::new({
7070
let mut graph = IndexedTxGraph::new(index);
71-
graph.apply_changeset(init_changeset.index_tx_graph);
71+
graph.apply_changeset(init_changeset.indexed_tx_graph);
7272
graph
7373
});
7474

@@ -277,7 +277,7 @@ fn main() -> anyhow::Result<()> {
277277

278278
let chain = chain.apply_update(final_update.chain)?;
279279

280-
let index_tx_graph = {
280+
let indexed_tx_graph = {
281281
let mut changeset =
282282
indexed_tx_graph::ChangeSet::<ConfirmationHeightAnchor, _>::default();
283283
let (_, indexer) = graph
@@ -292,7 +292,7 @@ fn main() -> anyhow::Result<()> {
292292
};
293293

294294
ChangeSet {
295-
index_tx_graph,
295+
indexed_tx_graph,
296296
chain,
297297
}
298298
};

example-crates/example_esplora/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn main() -> anyhow::Result<()> {
7070
// aren't strictly needed here.
7171
let graph = Mutex::new({
7272
let mut graph = IndexedTxGraph::new(index);
73-
graph.apply_changeset(init_changeset.index_tx_graph);
73+
graph.apply_changeset(init_changeset.indexed_tx_graph);
7474
graph
7575
});
7676
let chain = Mutex::new({

0 commit comments

Comments
 (0)