Giter Site home page Giter Site logo

network's Introduction

network

network's People

Contributors

sisou avatar bettelstab avatar danimoh avatar dependabot[bot] avatar nibhar avatar curdbecker avatar mraveux avatar paberr avatar onmax avatar

Stargazers

ip config avatar Yaku avatar Alexsey Ramzaev avatar Hervé avatar

Watchers

James Cloos avatar Marvin W avatar  avatar  avatar  avatar ip config avatar  avatar  avatar Yaku avatar

network's Issues

Warn on wrongly set system clock

If the user's system clock is wrongly set, blocks can be rejected and the consensus fails to be established.
The miner ui detects this error and shows a warning.
Similarly, the network iframe should fire an event that then get's handled by the Network client or Safe + Hub to display a warning.
The code used in the miner to detect a misconfigured system clock on consensus-established and peers-changed events is as follows:

    _checkComputerClock() {
        // if computer clock deviates too much from network time show a warning. To recover from this state, user has to
        // reload as the netword time offset does not get recalculated.
        if (this.$.network.peerCount < 3 // ask at least 3 peers for their time
            || Math.abs(this.$.network.time.now() - Date.now()) < Nimiq.Block.TIMESTAMP_DRIFT_MAX * 1000) return;
        this.ui.clockMisconfigured();
        this.stopMining();
    }

I consider this quite an important issue (and therefore labeled it as bug) as it prevents the user from doing anything meaningful in the Safe / Hub without giving him any clue.

Cross-tab singleton connection

Add some communication layer between network iFrames that enables us to use the same NanoApi instance for all open tabs.

TBD: Configuration

It would be nice if one deployment of this service would suffice to allow multiple CDNs, networks... in short: config as needed by the user of networkClient.

Suggestions:

  • Introduce config files and own entry point for each config
  • OR pass config via url parameters

Problems to consider: core API might change for different versions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.