Commit Graph

51 Commits

Author SHA1 Message Date
StephenButtolph d38405178b final version bump to denali 2020-05-31 18:01:09 -04:00
StephenButtolph d7e67f00b7 Bumped version number 2020-05-30 13:35:46 -04:00
StephenButtolph 18e1a5ca4f await chain shutdowns correctly 2020-05-29 18:08:44 -04:00
StephenButtolph bb11465d7e added listAddresses API to the AVM 2020-05-25 22:29:36 -04:00
StephenButtolph cbc5811fb8 Removed unneeded global variable 2020-05-25 17:45:50 -04:00
StephenButtolph 25ca13000c Added metrics to the networking lib 2020-05-25 16:02:03 -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
StephenButtolph b3baae5be4 Commented network and added onAccept gossiping 2020-05-22 16:04:48 -04:00
Tyler Smith fcd13e7d90
FEATURE: Add Health API. 2020-05-19 11:07:48 -07:00
StephenButtolph 34909f72f5 removed xputtests to get the build to pass 2020-05-18 14:57:31 -04:00
StephenButtolph b4306585a4 Switched to a pure go networking stack 2020-05-17 23:47:43 -04: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
StephenButtolph 4497839c2c Exit the node if the http server errors 2020-05-13 00:51:30 -04:00
StephenButtolph ed11d05dfd Close the signal channel on node shutdown 2020-05-11 22:11:28 -04:00
StephenButtolph 2c644b2fff Cleaned up signal handling from PR feedback 2020-05-11 21:58:10 -04:00
StephenButtolph a5a3c703f1 Removed cgo signal handlers 2020-05-06 20:57:45 -04:00
StephenButtolph 87a175eaaf Changed signal handling to use go signal handlers 2020-05-06 20:55:52 -04:00
StephenButtolph a4a171c219 Changed connTimeout to 60s rather than defaulting to 3m 2020-04-22 15:15:48 -04:00
StephenButtolph f1cfa2aa51 Added server ip + port to error logging 2020-04-22 12:46:54 -04:00
StephenButtolph f592ecfb7b Don't refresh peers from peerlists if already attempting to connect 2020-04-21 14:32:00 -04:00
StephenButtolph 6bcedf1d64 wip 2020-04-20 20:00:36 -04:00
StephenButtolph aa60e61c5c 1-way handshake on a staking network 2020-04-18 22:47:53 -04:00
StephenButtolph c6b92425ef Added connections 2020-04-18 21:02:40 -04:00
StephenButtolph 1092abe844 Changed to support 1-way connections 2020-04-18 20:34:19 -04:00
StephenButtolph dde8e97590 Merge branch 'master' into fix-oversized-message 2020-04-17 02:41:20 -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 0933380c99 Correctly configure the max message size for non-staking networks 2020-04-15 16:54:39 -04:00
StephenButtolph fd083776f4 Added multiple genesii 2020-04-02 23:43:02 -04:00
StephenButtolph 4f868bda6e Added sanity check to the database on startup 2020-03-31 18:56:05 -04:00
StephenButtolph 9d4be014e9 merged 2020-03-30 22:10:31 -04:00
StephenButtolph 4d34dc042d merged 2020-03-30 22:06:29 -04:00
StephenButtolph 00332620a6 Implemented Properties 2020-03-30 17:46:18 -04:00
StephenButtolph a2c0ad56f7 Implemented NFTs 2020-03-30 16:23:06 -04:00
StephenButtolph 87ea21c63f linked atomic swaps to main 2020-03-26 18:04:41 -04:00
Dan Laine 633e72394f fix bug where no chains other than platform created if staking disabled 2020-03-19 17:59:12 -04:00
StephenButtolph 29282f07ac Added shared memory to the context 2020-03-19 17:14:27 -04:00
Dan Laine 6c2b969b29 Merge remote-tracking branch 'origin' into custom-genesis 2020-03-18 14:03:28 -04:00
Dan Laine 5ca0a909e4 WIP. Blockchain creation works in simple cases but still very buggy. 2020-03-16 17:21:38 -04:00
Dan Laine 45805cbac7 Merge branch 'create-blockchain-changes' into custom-genesis 2020-03-16 12:19:06 -04:00
StephenButtolph acaf5400ef Merge branch 'master' of github.com:ava-labs/gecko 2020-03-13 17:32:49 -04:00
Stephen Buttolph 00df659961
Perf (#13)
- Added support for xput tests on the AVM
- Implemented an AVM wallet for throughput tests.
- Fixed credential bug in the AVM for transactions that depend on un-confirmed UTXOs.
2020-03-13 17:31:23 -04:00
Stephen Buttolph 820d793cfc
Merge branch 'master' into msg-size 2020-03-12 16:53:34 -04:00
Dan Laine d5cdf6a6cc Merge branch 'master' into development 2020-03-12 14:35:41 -04:00
Dan Laine 946ec3d09e remove unused consts 2020-03-12 14:34:39 -04:00
Stephen Buttolph 8489567517
Merge branch 'master' into msg-size 2020-03-12 14:30:36 -04:00
Stephen Buttolph 686ab14e8b
Merge branch 'master' into get-node-id 2020-03-12 12:42:46 -04:00
StephenButtolph 2f1f4ddd23 Added a GetNodeID API call to the admin api 2020-03-12 12:30:05 -04:00
StephenButtolph 683e10af3e properly set the max message size with salticidae 2020-03-12 12:11:45 -04:00
StephenButtolph a00cba51cf Added generic genesis 2020-03-10 16:15:54 -04:00