Exemple #1
0
        public static NodeSettings FromNative(Knuth.Native.Config.NodeSettings native)
        {
            var res = new NodeSettings();

            res.SyncPeers                  = native.sync_peers;
            res.SyncTimeoutSeconds         = native.sync_timeout_seconds;
            res.BlockLatencySeconds        = native.block_latency_seconds;
            res.RefreshTransactions        = native.refresh_transactions;
            res.CompactBlocksHighBandwidth = native.compact_blocks_high_bandwidth;
            return(res);
        }
Exemple #2
0
        public Knuth.Native.Config.NodeSettings ToNative()
        {
            var native = new Knuth.Native.Config.NodeSettings();

            native.sync_peers                    = this.SyncPeers;
            native.sync_timeout_seconds          = this.SyncTimeoutSeconds;
            native.block_latency_seconds         = this.BlockLatencySeconds;
            native.refresh_transactions          = this.RefreshTransactions;
            native.compact_blocks_high_bandwidth = this.CompactBlocksHighBandwidth;
            return(native);
        }