Giter Site home page Giter Site logo

neo-tools's People

Contributors

perfect-web avatar uvmetal avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

neo-tools's Issues

FEAT: RPC Transaction Lookup

Add RPC-based transaction lookup to loosen coupling with Neoscan.

*Note: A lookup wrapper could be configured to try Neoscan first, then fall back to RPC if criteria are unmet.

Beautify Output Option

CLI modules could use a beautify option to control terminal output.

Ideas include color, layout, quoting

Feature: Node Selection: Try Another Node on Error

  • Add configuration option to attempt to repeat an operation with another node or to test a node first to ensure it meets optimum node criteria
  • findWorkingNode(): start with best node using getBestNode() or similar then tryNode(node).
  • tryNode(node): run a test on node "node" if it meets criteria for a given operation. If it fails, try again with another node.
  • Identify optimum node criteria

Disable Dynamic Node Selection by Default

There is currently an advisory warning users against the use of dynamic node selection as it can generate a volume of traffic during the selection process. To alleviate this issue, create a CLI option to active dynamic selection, with a preference to use a lower cost automatic node selection algorithm by default.

Feature: Cache Chain

All CLI tools that query the chain should cache the chain as they produce data then refer to this data instead of the network when possible.

Potential SSL Issue: Queuing for follow up

fetter [12 minutes ago]
It looks like this could be related:

nodejs/node#19359

Ping First: 0
Using network: MainNet
Using method: connection
Node Count: 10
[ { url: 'https://seed1.cityofzion.io:443' }, { url: 'https://seed2.cityofzion.io:443' }, { url: 'https://seed3.cityofzion.io:443' }, { url: 'https://seed4.cityofzion.io:443' }, { url: 'https://seed5.cityofzion.io:443' }, { url: 'https://seed6.cityofzion.io:443' }, { url: 'https://seed7.cityofzion.io:443' }, { url: 'https://seed8.cityofzion.io:443' }, { url: 'https://seed9.cityofzion.io:443' }, { url: 'https://seed0.cityofzion.io:443' } ]
rpc query getconnections: https://seed1.cityofzion.io:443
rpc query getconnections: https://seed2.cityofzion.io:443
rpc query getconnections: https://seed3.cityofzion.io:443
rpc query getconnections: https://seed4.cityofzion.io:443
rpc query getconnections: https://seed5.cityofzion.io:443
rpc query getconnections: https://seed6.cityofzion.io:443
rpc query getconnections: https://seed7.cityofzion.io:443
rpc query getconnections: https://seed8.cityofzion.io:443
rpc query getconnections: https://seed9.cityofzion.io:443
rpc query getconnections: https://seed0.cityofzion.io:443
/home/fet/nwd/phetter/neotools/src/nodejs/neo-rpc/v2.9.0/client/module/getNodesBy.js: https://seed7.cityofzion.io:443.getNodesBy.connections().error: Error: write EPROTO 139724717692736:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/s23_clnt.c:802:

/home/fet/nwd/phetter/neotools/src/nodejs/neo-rpc/v2.9.0/client/module/getNodesBy.js: https://seed8.cityofzion.io:443.getNodesBy.connections().error: Error: write EPROTO 139724717692736:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/s23_clnt.c:802:

/home/fet/nwd/phetter/neotools/src/nodejs/neo-rpc/v2.9.0/client/module/getNodesBy.js: https://seed6.cityofzion.io:443.getNodesBy.connections().error: Error: write EPROTO 139724717692736:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/s23_clnt.c:802:

/home/fet/nwd/phetter/neotools/src/nodejs/neo-rpc/v2.9.0/client/module/getNodesBy.js: https://seed9.cityofzion.io:443.getNodesBy.connections().error: Error: write EPROTO 139724717692736:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/s23_clnt.c:802:

/home/fet/nwd/phetter/neotools/src/nodejs/neo-rpc/v2.9.0/client/module/getNodesBy.js: https://seed0.cityofzion.io:443.getNodesBy.connections().error: Error: write EPROTO 139724717692736:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/s23_clnt.c:802:

/home/fet/nwd/phetter/neotools/src/nodejs/neo-rpc/v2.9.0/client/cli/getNodesBy.js: getNodesByPing().rankedNodes: [ { url: 'https://seed5.cityofzion.io:443', connections: 12, ping: undefined }, { url: 'https://seed3.cityofzion.io:443', connections: 21, ping: undefined }, { url: 'https://seed2.cityofzion.io:443', connections: 24, ping: undefined }, { url: 'https://seed1.cityofzion.io:443', connections: 25, ping: undefined }, { url: 'https://seed4.cityofzion.io:443', connections: 25, ping: undefined } ]
5 of 10 nodes responded

'[{"url":"https://seed5.cityofzion.io:443","connections":12},{"url":"https://seed3.cityofzion.io:443","connections":21},{"url":"https://seed2.cityofzion.io:443","connections":24},{"url":"https://seed1.cityofzion.io:443","connections":25},{"url":"https://seed4.cityofzion.io:443","connections":25}]'

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.