Code Monkey home page Code Monkey logo

eosplayer's People

Contributors

bagaking avatar cristianyt avatar dependabot[bot] avatar zyp94021 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

eosplayer's Issues

Provide support for test nodes

  1. provide ability to test node's connection
  2. provide ability to test node's http-plugin
  3. provide reliable nodes list
  4. switch nodes automatically when a problem occurs

the error ERR_GET_SCATTER_FAILED are often encountered

desc

In the case where scatter is normally injected, no scatter is found and an error message pops up.

env

version: 1.3.0-beta
chrome 70

phenomenon

  • After one occurrence, it will be encountered every time.
  • It seems to be strongly associated with a specific DAPP on a specific device.
  • Scatter is actually loaded normally.
  • The problem disappears after clearing the local storage.
  • When the problem occurs, scatter seems to be frozen.

possible reasons

  • error in the logic that uses local storage.
  • error in the process of checking scatter.
  • error in the handling of the chain's config. e.g. a wrong chain-id set.

Provide actions notifier

  1. listening specific account-actions and send notification to application layer.
  2. quick response
  3. error check
  4. avoid replay

getIdentity error: concurrent

When there are multiple concurrent getIdentity requests, scatter will only return the first one.

Thats's a matter of scatter

test case:

await (eosplayer.scatter.getIdentity({ accounts: [eosplayer.netConf], }));
await (eosplayer.scatter.getIdentity({ accounts: [eosplayer.netConf], }));
await (eosplayer.scatter.getIdentity({ accounts: [eosplayer.netConf], }));

expect

three results are returned.

result

only one result are returned.

conclusion

thus, when you call several eosplayer.getIdentity() concurrently, only the first request will return, and the others will die in the scheduler

solution

using a message queue

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.