示例#1
0
        public ResultWrapper <SynchingResult> eth_syncing()
        {
            var result = new SynchingResult {
                IsSynching = false
            };

            Logger.Debug($"eth_syncing request, result: {result.ToJson()}");
            return(ResultWrapper <SynchingResult> .Success(result));
        }
示例#2
0
        public ResultWrapper <SynchingResult> eth_syncing()
        {
            var result = new SynchingResult {
                IsSynching = false
            };

            if (Logger.IsTrace)
            {
                Logger.Trace($"eth_syncing request, result: {result.ToJson()}");
            }
            return(ResultWrapper <SynchingResult> .Success(result));
        }
示例#3
0
        public ResultWrapper <SynchingResult> eth_syncing()
        {
            var result = new SynchingResult
            {
                IsSynching    = true,
                CurrentBlock  = new Quantity(_blockchainBridge.Head.Number),
                HighestBlock  = new Quantity(_blockchainBridge.BestKnown),
                StartingBlock = new Quantity(0)
            };

            if (Logger.IsTrace)
            {
                Logger.Trace($"eth_syncing request, result: {result.ToJson()}");
            }
            return(ResultWrapper <SynchingResult> .Success(result));
        }