public override object Clone()
        {
            var clone = new ChainHeadersBehavior(this.Chain, this.chainState, this.initialBlockDownloadState, this.loggerFactory)
            {
                CanSync = this.CanSync,
                CanRespondToGetHeaders = this.CanRespondToGetHeaders,
                AutoSync = this.AutoSync,
            };

            return(clone);
        }
Example #2
0
        public override object Clone()
        {
            var clone = new ChainHeadersBehavior(this.Chain, this.SharedState)
            {
                CanSync = this.CanSync,
                CanRespondToGetHeaders = this.CanRespondToGetHeaders,
                AutoSync = this.AutoSync,
                _State   = this._State
            };

            return(clone);
        }