WIP: Common ChainListener implementations and example
[rust-lightning] / lightning-c-bindings / demo.c
index 44442ef3d56ce58c8f906b25107fd48fe98eb9bb..3f7c4be9d2fe2b9307d51173f15702c995a5949e 100644 (file)
@@ -54,11 +54,11 @@ int main() {
                .free = NULL
        };
 
-       LDKManyChannelMonitor mon = {
+       LDKWatch mon = {
                .this_arg = NULL,
-               .add_monitor = add_channel_monitor,
-               .update_monitor = update_channel_monitor,
-               .get_and_clear_pending_monitor_events = monitors_pending_monitor_events,
+               .watch_channel = add_channel_monitor,
+               .update_channel = update_channel_monitor,
+               .release_pending_monitor_events = monitors_pending_monitor_events,
                .free = NULL,
        };
 
@@ -68,7 +68,7 @@ int main() {
                .free = NULL,
        };
 
-       LDKKeysManager keys = KeysManager_new(&node_seed, net, 0, 0);
+       LDKKeysManager keys = KeysManager_new(&node_seed, 0, 0);
        LDKKeysInterface keys_source = KeysManager_as_KeysInterface(&keys);
 
        LDKUserConfig config = UserConfig_default();