-
Notifications
You must be signed in to change notification settings - Fork 20.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frontier console node admin interface #485
Conversation
- require became loadScript(), no require is supplied - bignumber_js.go: heredoc v2.0.3 minified fixed for otto Regexp incompatibility https://github.com/robertkrimen/otto#regular-expression-incompatibility - bignumber.min.js also updated in mist/assets/ext - ethereum_js.go: latest master minified - assetPath in constructor - Eval/Exec/Handle/ToVal nice API - jsre tests
Fix the tests please |
Conflicts: cmd/ethereum/js.go javascript/types.go
Caps string | ||
RemoteAddress string | ||
LocalAddress string | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this type necessary? Can't it just return peers directly?
Same for NodeInfo
.
@@ -251,6 +309,7 @@ func (s *Ethereum) StateDb() common.Database { return s.stateDb } | |||
func (s *Ethereum) ExtraDb() common.Database { return s.extraDb } | |||
func (s *Ethereum) IsListening() bool { return true } // Always listening | |||
func (s *Ethereum) PeerCount() int { return s.net.PeerCount() } | |||
func (s *Ethereum) PeerInfo() int { return s.net.PeerCount() } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this about? Is that intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely not, thanks for spotting. Will fix in #512
Frontier console node admin interface
👍 |
* swarm/network/stream: fix syncer ticker leak * swarm/network/stream: a better ticker stop for syncer SetNextBatch
…gner-at-checkpoint Fix ethereum#482: Ignore order of masternodes list
…thereum#23635) (ethereum#485) * core/state/snapshot: fix BAD BLOCK error when snapshot is generating * core/state/snapshot: alternative fix for the snapshot generator * add comments and minor update Co-authored-by: Martin Holst Swende <[email protected]> * core/state/snapshot: fix BAD BLOCK error when snapshot is generating * core/state/snapshot: alternative fix for the snapshot generator * add comments and minor update Co-authored-by: Martin Holst Swende <[email protected]> Co-authored-by: Ziyuan Zhong <[email protected]> Co-authored-by: Martin Holst Swende <[email protected]>
* initial commit * safe latest error * remove json listener * fix: debug block unit test * remove jsonrpc listener from server * fix: consume network's find port in heimdall client test * update key in log while startup * linters * fix Co-authored-by: Manav Darji <[email protected]>
Co-authored-by: Liam Lai <[email protected]>
based on #484
This PR implements a node admin interface as speced here
https://github.com/ethereum/go-ethereum/wiki/Frontier-Console
accessible via the
admin
object in the Frontier JS Console and VMp2p server and discover/table exposes Node to support nodeInfo()
eth implements NodeInfo() and PeersInfo() to support the node admin interface
see #459