Commit Graph

776 Commits

Author SHA1 Message Date
Stephen Buttolph b333fbe2a5
Merge branch 'master' into TS_health 2020-05-23 14:03:24 -04:00
Stephen Buttolph 386b37e35d
Merge pull request #164 from moreati/rpc-host
api: Allow bind address of RPC server to be restricted
2020-05-23 14:03:05 -04:00
Fabio Barone 79ca8a756f removed obsolete before_install_osx.sh 2020-05-23 12:46:11 -05:00
Stephen Buttolph 18f43ee406
Merge branch 'master' into rpc-host 2020-05-23 13:42:07 -04:00
Stephen Buttolph aed0f42699
Merge branch 'master' into osx-test 2020-05-23 13:36:49 -04:00
Stephen Buttolph c3f9a50228
Merge pull request #171 from StephenButtolph/atomic-block-cleanup
Clean up the acceptance of atomic blocks
2020-05-23 13:36:17 -04:00
Stephen Buttolph 8ee3f1e6b3
Merge branch 'master' into atomic-block-cleanup 2020-05-23 13:24:47 -04:00
Dan Laine 0a28f16cbe periodically print bootstrap progress to log. don't fetch ancestry of same vertex multiple times 2020-05-22 17:41:47 -04:00
StephenButtolph 8ac34c28ae removed unused fields 2020-05-22 17:37:08 -04:00
StephenButtolph b3baae5be4 Commented network and added onAccept gossiping 2020-05-22 16:04:48 -04:00
Dan Laine d2998e8c57 more verbose logging in voting handlers 2020-05-22 15:56:33 -04:00
StephenButtolph 3892a62f28 Added more race tests 2020-05-22 01:45:56 -04:00
StephenButtolph 3533e91c94 Added connectivity test 2020-05-22 00:47:11 -04:00
StephenButtolph ffd1c5c89e Added a best effort getVersion request 2020-05-20 15:49:06 -04:00
StephenButtolph fb142d1df5 Added GetVersion test 2020-05-20 15:46:17 -04:00
StephenButtolph 83c060a098 Added version tests 2020-05-20 12:03:55 -04:00
StephenButtolph 896cafdcbb debugging utxo error 2020-05-20 11:37:01 -04:00
Tyler Smith 26fc63429c
CLEANUP: Fix godoc string. 2020-05-19 11:18:02 -07:00
Tyler Smith 99aa6d3724
BUGFIX: Use atomic reads/writes for heartbeats. 2020-05-19 11:07:48 -07:00
Tyler Smith 14daa76e92
TWEAK: Rename getHealth to getLiveness.
This enables a future getReady that has different checks.
2020-05-19 11:07:48 -07:00
Tyler Smith fcd13e7d90
FEATURE: Add Health API. 2020-05-19 11:07:48 -07:00
Stephen Buttolph e21601b4fe
Merge pull request #172 from cmontag/master
ks ImportUser password check

Resolves additional context mentioned in #136
2020-05-18 16:34:04 -04:00
StephenButtolph 41975897b7 Send peerlist once the version message is received 2020-05-18 16:04:14 -04:00
Fabio Barone b84506ee6e re-enable full build 2020-05-18 14:58:29 -05:00
Fabio Barone 385b375edb only build, no test 2020-05-18 14:32:12 -05:00
Fabio Barone 1bcf6ad8d3 try with the existing salticidae version 2020-05-18 14:12:21 -05:00
Collin Montag e2ba60d3ac added importuser test 2020-05-18 15:07:23 -04:00
StephenButtolph 34909f72f5 removed xputtests to get the build to pass 2020-05-18 14:57:31 -04:00
Collin Montag f655592a1c standard password error 2020-05-18 14:36:37 -04:00
Collin Montag b2a85ccecd ks importuser fix 2020-05-18 14:19:15 -04:00
StephenButtolph b004e9a014 import cleanup 2020-05-18 13:03:45 -04:00
Collin Montag a6c8a224e4 Merge branch 'master' of github.com:ava-labs/gecko 2020-05-18 12:19:56 -04:00
Collin Montag e9218c733b ks importuser password check 2020-05-18 12:18:48 -04:00
Stephen Buttolph 6777212c74
Merge pull request #170 from StephenButtolph/staking-disabled-connections
If staking is disabled, always attempt to reconnect to a peer
2020-05-18 11:56:22 -04:00
StephenButtolph 503c90e839 Clean up the acceptance of atomic blocks 2020-05-18 11:33:58 -04:00
StephenButtolph 91de93a26a If staking is disabled, always attempt to reconnect to a peer 2020-05-18 11:22:15 -04:00
StephenButtolph 9c9b5bf51d Remove handler correctly 2020-05-18 00:54:06 -04:00
StephenButtolph b4306585a4 Switched to a pure go networking stack 2020-05-17 23:47:43 -04:00
Fabio Barone 8c762aa812 travis no support for docker on MacOS; try 'normal' build 2020-05-15 18:25:49 -05:00
Fabio Barone 91f7e2a879 actually install docker 2020-05-15 15:21:12 -05:00
Fabio Barone 369b14140e before install specific to OS 2020-05-15 15:11:33 -05:00
Fabio Barone 0a4904be97 use build matrix to define bionic 2020-05-15 14:46:22 -05:00
Fabio Barone 79d0ac67cf try osx build 2020-05-15 14:39:05 -05: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
Stephen Buttolph 7c4abdea66
Merge pull request #167 from StephenButtolph/mem-cleanup
added required copy(true) to addr
2020-05-14 15:05:43 -04:00
Stephen Buttolph 8f409e28f6
Merge branch 'master' into mem-cleanup 2020-05-14 14:34:46 -04:00
StephenButtolph 5c915d54b3 added required copy(true) to addr 2020-05-14 14:25:45 -04:00
Stephen Buttolph ccdc7b8e28
Merge pull request #165 from moreati/banner-tidy
main: Represent the Gecko banner without escape strings
2020-05-14 12:47:30 -04: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