X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FRapidGossipSync.cs;h=3937e289edc40059c57f8a222913c15357e90f46;hb=8de7213fbf663ff60322896282dad51e8ab2f001;hp=6a727b5a2a614681fd0346b284b2ce987d2a2f98;hpb=7811d2191440c55034e1abfbf3be442d4b25481b;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/RapidGossipSync.cs b/c_sharp/src/org/ldk/structs/RapidGossipSync.cs index 6a727b5a..3937e289 100644 --- a/c_sharp/src/org/ldk/structs/RapidGossipSync.cs +++ b/c_sharp/src/org/ldk/structs/RapidGossipSync.cs @@ -43,7 +43,7 @@ public class RapidGossipSync : CommonBase { * `sync_path`: Path to the file where the gossip update data is located */ public Result_u32GraphSyncErrorZ sync_network_graph_with_file_path(string sync_path) { - long ret = bindings.RapidGossipSync_sync_network_graph_with_file_path(this.ptr, sync_path); + long ret = bindings.RapidGossipSync_sync_network_graph_with_file_path(this.ptr, InternalUtils.encodeString(sync_path)); GC.KeepAlive(this); GC.KeepAlive(sync_path); if (ret >= 0 && ret <= 4096) { return null; } @@ -58,7 +58,7 @@ public class RapidGossipSync : CommonBase { * `update_data`: `&[u8]` binary stream that comprises the update data */ public Result_u32GraphSyncErrorZ update_network_graph(byte[] update_data) { - long ret = bindings.RapidGossipSync_update_network_graph(this.ptr, update_data); + long ret = bindings.RapidGossipSync_update_network_graph(this.ptr, InternalUtils.encodeUint8Array(update_data)); GC.KeepAlive(this); GC.KeepAlive(update_data); if (ret >= 0 && ret <= 4096) { return null; } @@ -74,7 +74,7 @@ public class RapidGossipSync : CommonBase { * `current_time_unix`: `Option` optional current timestamp to verify data age */ public Result_u32GraphSyncErrorZ update_network_graph_no_std(byte[] update_data, org.ldk.structs.Option_u64Z current_time_unix) { - long ret = bindings.RapidGossipSync_update_network_graph_no_std(this.ptr, update_data, current_time_unix.ptr); + long ret = bindings.RapidGossipSync_update_network_graph_no_std(this.ptr, InternalUtils.encodeUint8Array(update_data), current_time_unix.ptr); GC.KeepAlive(this); GC.KeepAlive(update_data); GC.KeepAlive(current_time_unix);