diff --git a/dash-spv-ffi/src/client.rs b/dash-spv-ffi/src/client.rs index b588a5bb7..4c5545927 100644 --- a/dash-spv-ffi/src/client.rs +++ b/dash-spv-ffi/src/client.rs @@ -30,6 +30,15 @@ pub struct FFIDashSpvClient { shutdown_token: CancellationToken, } +impl FFIDashSpvClient { + /// Returns the shared masternode list engine, if initialized. + pub fn masternode_list_engine( + &self, + ) -> Option>> { + self.inner.masternode_list_engine().ok() + } +} + /// Create a new SPV client and return an opaque pointer. /// /// # Safety