Giter VIP home page Giter VIP logo

neo-go-api's People

Contributors

kevaundray avatar

Watchers

 avatar

neo-go-api's Issues

getsys and getnodestatus proposal

Currently it is a problem to ask a node for it's connected nodes and build a nodelist from that information. With the addition of two new rpc calls; getsys and getnodestatusthis will become easier. A new port of 10555 will be used.

getnodestatus request:

{
"jsonrpc": "2.0",
"method": "getnodestatus",
"params":["http://seed4.travala.com:1055"],
"id": 1
}

getnodestatus repsonse:

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"p2p" : 10334,
"json-rpc" : 10332,
"monitor" : true
}

}
getsys request:

{
"jsonrpc": "2.0",
"method": "getsys",
"params":["http://seed4.travala.com:1055"],
"id": 1
}

getnodestatus repsonse:

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"cpu" : 2,
"memory" : "2GB",
}

}

If monitor is true and the cpu and memory requirements meet the standard, then we will add them to the list. By default, monitor will be false, and port 1055 should always be on.

Replacing aws dynamodb with leveldb - Proposal

Instead of putting the information in dynamodb, we could use leveldb and make this client a speaker node.

A speaker node is a node which uses a lot more memory and storage than a normal node. rpc calls such as gettxout and network statistics, could be delegated to these nodes, lessening the burden on the other nodes. If the database was ported locally, then the speaker node, could use a rpc server to serve out the network statistics instead. The traditional nodes would therefore be tasked solely with upholding the status of the network.

P2P Status and Websocket

P2p status and web socket status:

Previously: the ports, were pinged however this may not be a reliable solution and instead a handshake protocol should be built so that the nodes are asked directly.

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.