Rename fields of tx_graph::Additions

* Changed `tx` to `txs`
* Changed `txout` to `txouts`
This commit is contained in:
Shourya742
2023-04-30 09:43:28 +05:30
committed by 志宇
parent 1c3cbefa4d
commit ac80829caa
5 changed files with 35 additions and 35 deletions

View File

@@ -51,10 +51,10 @@ impl<A: Anchor, I: Indexer> IndexedTxGraph<A, I> {
self.index.apply_additions(index_additions);
for tx in &graph_additions.tx {
for tx in &graph_additions.txs {
self.index.index_tx(tx);
}
for (&outpoint, txout) in &graph_additions.txout {
for (&outpoint, txout) in &graph_additions.txouts {
self.index.index_txout(outpoint, txout);
}
@@ -73,10 +73,10 @@ where
let graph_additions = self.graph.apply_update(update);
let mut index_additions = I::Additions::default();
for added_tx in &graph_additions.tx {
for added_tx in &graph_additions.txs {
index_additions.append(self.index.index_tx(added_tx));
}
for (&added_outpoint, added_txout) in &graph_additions.txout {
for (&added_outpoint, added_txout) in &graph_additions.txouts {
index_additions.append(self.index.index_txout(added_outpoint, added_txout));
}