Skip to content

Commit 5603fff

Browse files
feat(key-wallet): expose instant_send_locks accessor on ManagedWalletInfo (#712)
Adds a read-only `instant_send_locks()` getter so external diagnostic surfaces (e.g. the iOS memory explorer) can list the txids that have received an IS-lock without bypassing the `pub(crate)` mutation boundary on the field. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ca507a9 commit 5603fff

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

  • key-wallet/src/wallet/managed_wallet_info

key-wallet/src/wallet/managed_wallet_info/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,17 @@ impl ManagedWalletInfo {
126126
pub fn increment_transactions(&mut self) {
127127
self.metadata.total_transactions += 1;
128128
}
129+
130+
/// Read-only access to the InstantSend lock txid set.
131+
///
132+
/// Exposes `instant_send_locks` (a `pub(crate)` field marked
133+
/// `serde(skip)`) so external diagnostic surfaces (e.g. the iOS
134+
/// memory explorer) can list the txids that have received an
135+
/// IS-lock without bypassing the encapsulation that keeps mutation
136+
/// inside this crate.
137+
pub fn instant_send_locks(&self) -> &HashSet<Txid> {
138+
&self.instant_send_locks
139+
}
129140
}
130141

131142
/// Re-export types from account module for convenience

0 commit comments

Comments
 (0)