Commit Graph

67 Commits

Author SHA1 Message Date
StephenButtolph eefaed4b1a added error reporting to nat.Map 2020-06-24 11:41:22 -04:00
StephenButtolph 2e218ea508 merged 2020-06-23 20:20:57 -04:00
StephenButtolph 1d4c368462 added local path to plugin 2020-06-23 18:23:22 -04:00
Dan Laine 3d374a73db enable keystore by default 2020-06-23 17:30:45 -04:00
Dan Laine c7356a581d open HTTP port iff HTTP server not listening on localhost 2020-06-22 13:06:18 -04:00
Dan Laine 38f7e23647 disable keystore and admin APIs by default 2020-06-22 13:05:47 -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 fb51e6a443 check failed port mapping
handle failed mapping

set retry to 20
2020-06-16 12:06:24 -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
Stephen Buttolph 34e1c9de2f
Merge branch 'master' into version-versions 2020-06-15 13:56:33 -04:00
Aaron Buchwald ba2b214b58 Decouple staking and tls encryption for internode communication 2020-06-15 09:39:56 -04:00
Alex Willmer 760c32c4ac main: Added database version & default network to -version 2020-06-13 09:37:08 +01:00
Aaron Buchwald 64b2df39b5
Split admin api into admin and info apis 2020-06-10 16:47:31 -04:00
StephenButtolph 2bab495e9b added version flag 2020-06-07 19:12:55 -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
danlaine b3edb8637a
lower log level (#43)
* lower log level

* lower log for 'asserions are enabled'
2020-06-03 14:18:28 -04:00
StephenButtolph b8bd018938 only exit the dispatch loop if the node is closing 2020-06-02 18:59:34 -04:00
StephenButtolph 18e11359af returned dispatch error from the node 2020-06-02 15:26:30 -04:00
StephenButtolph d38405178b final version bump to denali 2020-05-31 18:01:09 -04:00
StephenButtolph 0f18f514b7 updated bootstrap ip 2020-05-31 17:17:35 -04:00
StephenButtolph 3c48165ef9 attempt multiple plugin directory locations 2020-05-31 16:37:51 -04:00
StephenButtolph f24cdffc90 set up ips/ids for denali 2020-05-30 16:31:43 -04:00
StephenButtolph cea5e2d7bc Set up denali genesis 2020-05-30 15:50:37 -04:00
StephenButtolph d7e67f00b7 Bumped version number 2020-05-30 13:35:46 -04:00
StephenButtolph bb11465d7e added listAddresses API to the AVM 2020-05-25 22:29:36 -04:00
StephenButtolph 858658a61f Updated cascade IPs 2020-05-25 17:57:22 -04:00
StephenButtolph cbc5811fb8 Removed unneeded global variable 2020-05-25 17:45:50 -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
Tyler Smith fcd13e7d90
FEATURE: Add Health API. 2020-05-19 11:07:48 -07:00
StephenButtolph b4306585a4 Switched to a pure go networking stack 2020-05-17 23:47:43 -04:00
Alex Willmer 7f94a13fb2
Merge branch 'master' into rpc-host 2020-05-14 21:26:14 +01: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
Alex Willmer 07156719a1 main: Represent the Gecko banner without escape strings
Purely cosmetic, included only because it was bugging me. Please feel
free to reject it, with no hard feelings.
2020-05-13 22:06:44 +01:00
Dan Laine fa230e6e90 fix typo 2020-05-11 11:48:16 -04:00
StephenButtolph 69065c50b5 Changed sk indexing, bumped version 2020-05-10 19:26:39 -04:00
Dan Laine cb3110f424 fix error handling. Use env variable expansion. Change defaults to use /home/danlaine 2020-05-08 18:17:54 -04:00
Dan Laine 03ddc6c034 fix bug 2020-05-07 15:17:13 -04:00
Dan Laine 6bd84af8ec generate staking key at ~/.gecko/staking/staker.key if no key given. 2020-05-07 14:34:32 -04:00
Dan Laine 197521af51 change default db dir to ~/.gecko/db 2020-04-29 13:44:25 -04:00
StephenButtolph acfa6e4a68 changed version bump from patch to minor to remove accidential replay attacks 2020-04-28 16:30:48 -04:00
StephenButtolph 52bbfb669b Bump db version 2020-04-28 16:10:47 -04:00
StephenButtolph 4b077209d5 Updated client version 2020-04-24 14:44:04 -04:00