Skip to content

Commit 8f2fc7a

Browse files
committed
bindings: expose set_next_index_to_use
1 parent 897d379 commit 8f2fc7a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lwk_bindings/src/lightning.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,13 @@ impl BoltzSession {
507507
pub fn next_index_to_use(&self) -> u32 {
508508
self.inner.next_index_to_use()
509509
}
510+
511+
/// Set the next index to use for deriving keypairs
512+
///
513+
/// This may be necessary to handle multiple sessions with the same mnemonic.
514+
pub fn set_next_index_to_use(&self, next_index_to_use: u32) {
515+
self.inner.set_next_index_to_use(next_index_to_use);
516+
}
510517
}
511518

512519
#[uniffi::export]

0 commit comments

Comments
 (0)