Commit Graph

43 Commits

Author SHA1 Message Date
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
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
Stephen Buttolph c1357a9eba
Merge branch 'master' into custom-genesis 2020-03-30 21:06:10 -04:00
bbuttrick 7b8b690df5 Add a ConcurrentRepolls variable to make the polling throughput configurable with a minimum threshold 2020-03-28 16:55:11 -04:00
Stephen Buttolph 10779d168d
Merge branch 'master' into custom-genesis 2020-03-27 12:11:19 -04:00
swdee 7c821abfaf changed gecko command line arguments to use flagset so we can control the exit code 2020-03-22 12:25:47 +13:00
StephenButtolph a00cba51cf Added generic genesis 2020-03-10 16:15:54 -04:00
StephenButtolph b9e34e3b15 init repo 2020-03-10 15:20:34 -04:00