Commit Graph

56 Commits

Author SHA1 Message Date
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 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 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
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
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
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
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
StephenButtolph aa60e61c5c 1-way handshake on a staking network 2020-04-18 22:47:53 -04:00
StephenButtolph f40ea1ef45 Changed default values to cascade 2020-04-17 03:51:14 -04:00
Stephen Buttolph 42baab2881
Move Geth to a plugin connected at runtime
* removed coreth + geth dependency for the C-chain, still have nat + crypto dependencies

* Added first past of nat traversal

* Removed go-eth dependency for secp256k1

* renamed db files to not repeat the package title

* Added rpcdb, untested

* Added rpcdb tests

* removed defer from loop

* cleaned up tests

* Started working on the rpc chain VM

* First pass of vm plugin support

* Added http over grpc

* added beta support for http handlers

* updated vms for the rpcvms

* Added error returns for factories

* Added EVM back to the genesis

* Added the EVM factory

* Added EVM aliasing, fixed nil pointer bugs during shutdown

* Added plugin folder

* Removed plugins folder, add default params for the plugin dir

* Added http RPC test

* Added cascade evm genesis

* Removed debug line

* removed more debug lines

* Cleaned up import statement

* Changed default plugin dir to ./plugins

* build evm plugin auto in the build script
2020-04-16 11:39:20 -04:00
StephenButtolph 7fa26e1240 Improved the ip error message for a public network 2020-04-06 16:30:51 -04:00
StephenButtolph b60262c48c Changed defaults for pre-release 2020-04-06 14:54:57 -04:00
StephenButtolph 4050be294b Updated ansible bootstraps + default params 2020-04-03 13:40:08 -04:00
StephenButtolph cd0b914efc Added local network keys 2020-04-03 00:02:13 -04:00
StephenButtolph fd083776f4 Added multiple genesii 2020-04-02 23:43:02 -04:00
StephenButtolph 90f7ba2d6a updated default K and Alpha values for cascade 2020-04-01 13:23:36 -04:00
StephenButtolph 8dedd4c711 removed old keys 2020-03-31 20:51:55 -04:00
StephenButtolph 7a369e66b0 Added testnet defaults 2020-03-31 18:32:10 -04:00