public ResultWrapper <SynchingResult> eth_syncing() { var result = new SynchingResult { IsSynching = false }; Logger.Debug($"eth_syncing request, result: {result.ToJson()}"); return(ResultWrapper <SynchingResult> .Success(result)); }
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)); }
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)); }