Commit Graph

698 Commits

Author SHA1 Message Date
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
Stephen Buttolph f290f7377e
Merge pull request #160 from StephenButtolph/require-http-port
Exit the node if the http server errors
2020-05-13 13:56:57 -04:00
StephenButtolph 4497839c2c Exit the node if the http server errors 2020-05-13 00:51:30 -04:00
Stephen Buttolph 19db6fe6d5
Merge pull request #156 from moreati/editorconfig
Standardise newline and trailing whitespace conventions
2020-05-12 22:32:54 -04:00
Stephen Buttolph 18533a87e3
Merge branch 'master' into editorconfig 2020-05-12 22:19:15 -04:00
Stephen Buttolph f247f1c007
Merge pull request #155 from moreati/bash-strict
build: Fail loudly if bash variables are unset, or a pipeline errors
2020-05-12 22:18:59 -04:00
Stephen Buttolph b818b3c11f
Merge branch 'master' into bash-strict 2020-05-12 21:37:19 -04:00
Stephen Buttolph 05b02d3f6c
Merge pull request #149 from StephenButtolph/consensus-updates
Consensus updates
2020-05-12 16:40:53 -04:00
StephenButtolph 136a2559f0 commented the requests structs 2020-05-12 15:50:53 -04:00
StephenButtolph b291ddaa91 lowered log level for byz node logging 2020-05-12 15:18:02 -04:00
StephenButtolph 9cd8789b3f merged 2020-05-12 14:50:35 -04:00
Stephen Buttolph df786101a5
Merge pull request #147 from ava-labs/less-logs
Lower low level for many messages to improve UX. Improve wording of some messages.
2020-05-12 14:38:02 -04:00
StephenButtolph f0be1c47dc lowered log level for byz node logging. Added bootstrapping finish logs 2020-05-12 14:26:38 -04:00
StephenButtolph 56bbee491c Merge branch 'master' into less-logs 2020-05-12 14:02:49 -04:00
Stephen Buttolph 7a4b1a0fdc
Merge pull request #141 from adasari/delete_keystore_user
Added DeleteUser API. Resolves #107
2020-05-12 11:55:04 -04:00
Stephen Buttolph 939226f29f
Merge branch 'master' into delete_keystore_user 2020-05-12 11:42:30 -04:00
Stephen Buttolph 0f27ceca15
Merge pull request #146 from StephenButtolph/atomic-get-balance
Atomic get balance
2020-05-12 01:37:40 -04:00
StephenButtolph 5e6e3d61f2 merged 2020-05-12 01:27:13 -04:00
Stephen Buttolph a77e20a9d8
Merge pull request #145 from ava-labs/move-keys-dir
add staking key/cert generation
2020-05-12 00:57:35 -04:00
Anil Dasari deb71d519c remove keyvalue slice 2020-05-12 10:15:33 +05:30
Anil Dasari 59e38e369c error descrption fix 2020-05-12 10:10:46 +05:30
StephenButtolph b96ff7099e Fixed test-inventory key location 2020-05-11 23:21:08 -04:00
Stephen Buttolph 12d44c1996
Merge branch 'master' into move-keys-dir 2020-05-11 22:59:42 -04:00
Stephen Buttolph ac9eeef3da
Merge pull request #144 from StephenButtolph/get-tx
Added GetTx method to the AVM endpoint
2020-05-11 22:54:02 -04:00
StephenButtolph 1dc6fb77b9 merged 2020-05-11 22:41:05 -04:00
Stephen Buttolph f50c3cc1b4
Merge pull request #143 from StephenButtolph/go-signals
Go signals
2020-05-11 22:33:39 -04:00
StephenButtolph 0c2354dbae Fixed race in platformvm repolling 2020-05-11 22:24:28 -04:00
StephenButtolph ed11d05dfd Close the signal channel on node shutdown 2020-05-11 22:11:28 -04:00
Stephen Buttolph fe192b7df9
Merge branch 'master' into go-signals 2020-05-11 21:58:42 -04:00