Commit Graph

810 Commits

Author SHA1 Message Date
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
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