Skip to content

Commit 1846766

Browse files
committed
Remove useless node_id parameter from PeerManager constructor
1 parent e2f36a0 commit 1846766

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

bindings/src/peermanager.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ ffi! {
5858
log_ptr: Ref<ffilogger_fn::LogExtern>,
5959

6060
our_node_secret_ptr: Ref<Bytes32>,
61-
our_node_id_ptr: Ref<Bytes33>,
6261
handle: Out<FFIArcPeerManagerHandle>
6362
) -> FFIResult {
6463
let network = unsafe_block!("" => *network_ref.as_ref());
@@ -68,11 +67,6 @@ ffi! {
6867
let o = unsafe_block!("" => our_node_secret_ptr.as_ref());
6968
o.clone().into()
7069
};
71-
let our_node_id: secp256k1::PublicKey = {
72-
let o = unsafe_block!("" => our_node_id_ptr.as_ref());
73-
o.clone().into()
74-
};
75-
7670
let install_watch_tx_ref = unsafe_block!("function pointer lives as long as ChainWatchInterface and it points to valid data" => install_watch_tx_ptr.as_ref());
7771
let install_watch_outpoint_ref = unsafe_block!("function pointer lives as long as ChainWatchInterface and it points to valid data" => install_watch_outpoint_ptr.as_ref());
7872
let watch_all_txn_ref = unsafe_block!("function pointer lives as long as ChainWatchInterface and it points to valid data" => watch_all_txn_ptr.as_ref());
@@ -99,7 +93,6 @@ ffi! {
9993

10094
let seed = unsafe_block!("It points to valid length buffer" => seed.as_ref());
10195
let peer_man =
102-
10396
FFISimpleArcPeerManager::new(msg_handler, our_node_secret.clone(), &seed.bytes, logger_arc);
10497
unsafe_block!("" => handle.init(FFIArcPeerManagerHandle::alloc(peer_man)));
10598
FFIResult::ok()

0 commit comments

Comments
 (0)