コード例 #1
0
        internal static unsafe FFIResult create_peer_manager(
            IntPtr seed,
            UserConfig *userConfig,

            ChannelManagerHandle channelManagerHandle,
            InstallWatchTx installWatchTx,
            InstallWatchOutPoint installWatchOutPoint,
            WatchAllTxn watchAllTxn,
            GetChainUtxo getChainUtxo,
            FilterBlock filterBlock,
            ReEntered reEntered,

            Log log,

            IntPtr ourNodeSecret,
            out PeerManagerHandle handle,
            bool check = true
            ) =>
        MaybeCheck(_create_peer_manager(
                       seed,
                       userConfig,
                       channelManagerHandle,
                       ref installWatchTx,
                       ref installWatchOutPoint,
                       ref watchAllTxn,
                       ref getChainUtxo,
                       ref filterBlock,
                       ref reEntered,

                       ref log,
                       ourNodeSecret,
                       out handle),
                   check);
コード例 #2
0
        private static extern unsafe FFIResult _create_peer_manager(
            IntPtr seedPtr,
            UserConfig *userConfig,

            ChannelManagerHandle channelManagerHandle,
            ref InstallWatchTx installWatchTx,
            ref InstallWatchOutPoint installWatchOutPoint,
            ref WatchAllTxn watchAllTxn,
            ref GetChainUtxo getChainUtxo,
            ref FilterBlock filterBlock,
            ref ReEntered reEntered,

            ref Log log,

            IntPtr ourNodeSecret,
            out PeerManagerHandle handle
            );