Commit Graph

84 Commits

Author SHA1 Message Date
Dan Laine fa4cd10efe address PR comments 2020-07-03 13:45:54 -04:00
Dan Laine 1d2e1eb00e style 2020-06-30 16:55:05 -04:00
Dan Laine d3a4dcffef add comment; handle error on health check registration 2020-06-30 16:51:41 -04:00
Dan Laine 1be948f38c add health check to ensure default subnet is bootstrapped. add monotonicHealthCheck type 2020-06-30 14:31:30 -04:00
Dan Laine 4c75989056 don't ignore errors when adding routes; improve logging 2020-06-24 13:27:10 -04:00
StephenButtolph a61d1638a3 only log to info based on the beacons 2020-06-23 20:58:35 -04:00
StephenButtolph 6ba9d2264d version bump to 0.5.7 2020-06-23 20:29:03 -04:00
StephenButtolph 2e218ea508 merged 2020-06-23 20:20:57 -04:00
StephenButtolph 32812e5375 re-added the admin API calls to be backwards compatible 2020-06-19 18:36:45 -04:00
StephenButtolph 6c34fd79eb version bump 2020-06-19 17:56:35 -04:00
StephenButtolph be6be7ae1c reverted breaking changes 2020-06-18 01:45:58 -04:00
Stephen Buttolph 8f009cfa4a
Merge branch 'master' into upnp 2020-06-17 22:34:10 -04:00
StephenButtolph 0e16d298ae merged 2020-06-17 15:54:55 -04:00
StephenButtolph 8edcb1689b bump version for everest 2020-06-16 16:52:46 -04:00
Hongbo Zhang 210ad164f3 resolve comments for PR 71; change log leves; type check
type check

...
2020-06-16 12:12:37 -04:00
Hongbo Zhang 3cfba77c70 staking internal port and external port could be different
get mapped port entry; change interface to mapper
2020-06-16 12:06:23 -04:00
Hongbo Zhang aaa00b3488 upnp 2020-06-16 12:03:01 -04:00
Stephen Buttolph c86265baf8
Merge branch 'master' into split-admin-api 2020-06-15 14:06:38 -04:00
Aaron Buchwald ba2b214b58 Decouple staking and tls encryption for internode communication 2020-06-15 09:39:56 -04:00
Aaron Buchwald 64b2df39b5
Split admin api into admin and info apis 2020-06-10 16:47:31 -04:00
StephenButtolph 6a8e831af6 Added version to admin api 2020-06-10 03:15:03 -04:00
StephenButtolph f3bea7140f version bump 2020-06-10 02:59:19 -04:00
StephenButtolph c86838f2e8 Moved rpcchainvm logs to live under their chain 2020-06-08 11:53:55 -04:00
StephenButtolph 22d63033ba weight based on the beacons rather than the validators 2020-06-08 11:13:15 -04:00
StephenButtolph 4e521e128a version bump 2020-06-08 03:15:36 -04:00
StephenButtolph 2bab495e9b added version flag 2020-06-07 19:12:55 -04:00
StephenButtolph 9cae34dcfc Merge branch 'network-upgrade' into c-chain-local-rpc 2020-06-07 18:13:32 -04:00
StephenButtolph f9f1f08b9b load balance the P-chain bootstrapping, bump the version 2020-06-07 12:54:53 -04:00
Dan Laine 670227d318 add --version CLI that prints version and quits 2020-06-05 18:42:48 -04:00
Determinant 70ab3160ce make JSON-RPC local by default; add basic logging for C-Chain 2020-06-05 15:00:12 -04:00
Dan Laine 425817a36d print version on start 2020-06-04 15:55:29 -04:00
StephenButtolph 465dd81379 bump patch version 2020-06-02 19:00:42 -04:00
StephenButtolph b8bd018938 only exit the dispatch loop if the node is closing 2020-06-02 18:59:34 -04:00
StephenButtolph d38405178b final version bump to denali 2020-05-31 18:01:09 -04:00
StephenButtolph d7e67f00b7 Bumped version number 2020-05-30 13:35:46 -04:00
StephenButtolph 18e1a5ca4f await chain shutdowns correctly 2020-05-29 18:08:44 -04:00
StephenButtolph bb11465d7e added listAddresses API to the AVM 2020-05-25 22:29:36 -04:00
StephenButtolph cbc5811fb8 Removed unneeded global variable 2020-05-25 17:45:50 -04:00
StephenButtolph 25ca13000c Added metrics to the networking lib 2020-05-25 16:02:03 -04:00
StephenButtolph 40cb65ed8f merged 2020-05-23 17:19:16 -04:00
Stephen Buttolph b333fbe2a5
Merge branch 'master' into TS_health 2020-05-23 14:03:24 -04:00
StephenButtolph b3baae5be4 Commented network and added onAccept gossiping 2020-05-22 16:04:48 -04:00
Tyler Smith fcd13e7d90
FEATURE: Add Health API. 2020-05-19 11:07:48 -07:00
StephenButtolph 34909f72f5 removed xputtests to get the build to pass 2020-05-18 14:57:31 -04:00
StephenButtolph b4306585a4 Switched to a pure go networking stack 2020-05-17 23:47:43 -04:00
Alex Willmer b9ceddd052 api: add --http-host to restrict RPC bind address
± ./build/ava --http-host localhost --public-ip <redacted>
  ___       ________               __            ___
 / _ \_/\  /  _____/  ____   ____ |  | ______   / _ \_/\
 \/ \___/ /   \  ____/ __ \_/ ___\|  |/ /  _ \  \/ \___/
          \    \_\  \  ___/\  \___|    <  <_> )
           \______  /\___  >\___  >__|_ \____/
                  \/     \/     \/     \/
...
INFO [05-14|21:09:54] /api/server.go#53: API server listening on
"localhost:9650"
INFO [05-14|21:09:54] /api/server.go#106: adding route
/ext/vm/jvYyfQTxGMJLuGWa55kdP2p2zSUYsQ5Raupu4TW34ZAUBAbtq
...

The node continues to partcipate in consensus, but RPC calls are
restricted to the localhost interface

$ ss -lnt | grep 965
LISTEN  0        4096           127.0.0.1:9650           0.0.0.0:*
LISTEN  0        10               0.0.0.0:9651           0.0.0.0:*

$ curl -X POST --data '{
>     "id": '$(date +%s)',
>     "jsonrpc": "2.0",
>     "method": "admin.getNodeID",
>     "params":{}
> }' -H 'content-type:application/json;' 127.0.0.1:9650/ext/admin
{"jsonrpc":"2.0","result":{"nodeID":"2iEwniZihec5S2anxDpKGenZB7Cs112Ap"},"id":1589486853}

$ curl -X POST --data '{
>     "id": '$(date +%s)',
>     "jsonrpc": "2.0",
>     "method": "admin.getNodeID",
>     "params":{}
> }' -H 'content-type:application/json;' 192.168.43.60:9650/ext/admin
curl: (7) Failed to connect to 192.168.43.60 port 9650: Connection
refused
2020-05-14 21:12:33 +01:00
StephenButtolph 4497839c2c Exit the node if the http server errors 2020-05-13 00:51:30 -04:00
StephenButtolph ed11d05dfd Close the signal channel on node shutdown 2020-05-11 22:11:28 -04:00
StephenButtolph 2c644b2fff Cleaned up signal handling from PR feedback 2020-05-11 21:58:10 -04:00
StephenButtolph a5a3c703f1 Removed cgo signal handlers 2020-05-06 20:57:45 -04:00