Commit Graph

54 Commits

Author SHA1 Message Date
Jeff Schroeder 62a82b86ae
doc: how to run the guardian node behind a NAT
Shoutout to @0xshipthecode and the RockawayX Infra team for helping test
and develop the patch for this in #3786.
2024-04-25 17:28:59 -04:00
Jeff Schroeder c1a87b92f8
docs: always pull latest guardian image to run a spy 2024-04-25 17:28:59 -04:00
Jeff Schroeder 2712dd3f3f
node: upgrade to go 1.21.9 (#3855)
* node: update quic-go

Ran via:

    go get github.com/quic-go/quic-go@v0.42.0

* node: update mongo-drive dependency

Ran via:

    go get go.mongodb.org/mongo-driver@latest

* node: upgrade libp2p-go

Ran via:

    go get github.com/libp2p/go-libp2p@v0.33.1

Refs: #3863

* node: fallout from the go upgrade in the go.sum

Run via:

    go mod tidy

This updates the go.sum and removes unnecessary indirect references.

* docs: use go1.21.8

* github: use go1.21.8

Except for wormchain.

* node: update dockerfiles to use go 1.21.8

This was done with scripts/update-go-version.sh

* scripts: update linter dockerfile to use go 1.21.8

This was done with scripts/update-go-version.sh

* wormchain: update ibc-relayer to use go 1.21.8

This was done with scripts/update-go-version.sh

* scripts: add update-go-version.sh

This is a little helper to make updating the version of go a bit nicer.

* scripts: update-go-version.sh fixes

* set the default docker command to "dokcer"
* update the comment for the humongous sed command for dockerfiles

* github: fix go linting

* Upgrade golangci-lint to a version built with go 1.21.x. The older
  version was a binary version built with go 1.20.x and it was failing
  against the newer code built with go 1.21.x
* print the golangci-lint version in each run to see what version of go
  it was built with in case there are incompatibilties during the next
  upgrade
* remove the linter config skipping over pkg/supervisor entirely and
  instead put in an override to ignore the `unused` linter for the
  pkg/supervisor testhelpers bits for unsed test functions necessary
  to satisfy the test interface.

* scripts: update golang linter cli invocation

* github: use the latest version of golangci-lint

Because 1.52.2 is built with go 1.20.x which has issues with this project
now that it is upgraded to 1.21.8.

* node: remove implicit memory aliasing in a loop

Caught by an upgraded golangci-lint with the gosec linter:

    ::medium file=node/pkg/watchers/evm/connectors/batch_poller.go,line=226,col=8::G601: Implicit memory aliasing in for loop. (gosec)
    ::medium file=node/pkg/watchers/evm/connectors/batch_poller.go,line=285,col=8::G601: Implicit memory aliasing in for loop. (gosec)
    ::medium file=node/pkg/watchers/evm/connectors/batch_poller_test.go,line=128,col=37::G601: Implicit memory aliasing in for loop. (gosec)

See also: https://husni.dev/beware-of-implicit-memory-aliasing-in-go-foor-loop/

* node: update logging

* Update go to 1.21.9

Automated via:

    scripts/update-go-version.sh 1.21.9

* node: update test root context teardown time

Otherwise things get really sad.

* scripts: additions to update-go-versions.sh

* Standardized on prefacing functions with `function` for consistency
* Added a few more comments to explain how things work
* Automatically increment the go version and toolchain in go.mod
* Standardized on prefacing functions with `function` for consistency
* Make the go image debian version a variable for ease of maintenance

* node: update go.mod to specify 1.21.9

* node: update node tests

Review feedback from @pires

* scripts: run go mod tidy in update-go-version.sh

Required after running go mod edit or it refuses to build.

* node: update go.mod

Running `go mod tidy` removes the toolchain so the build works.

* node: update node tests

---------

Co-authored-by: Ryan Hamphrey <hamphreyryan26@gmail.com>
2024-04-19 14:43:36 -04:00
bruce-riley d036e70740
Node/P2P: Add default bootstrap peers (#3852)
* Node/P2P: Add default bootstrap peers

* Rework

* Update ccqlistener
2024-03-22 14:27:03 -05:00
Jeff Schroeder b175dd43c8
docs: quit the spelling spam typo fix PRs with cspell magic (#3845)
* Add cspell configuration and custom dictionary

The goal is to cut down on both incoming tyops, and well meaning but
spammy tyop fix PRs.

To run cspell locally install it and run:

    cspell '**/*.md' \
        --config cspell.config.yaml \
        --words-only \
        --unique \
        --quiet | sort --ignore-case

* docs: cspell updates

* wormchain: cspell updates

* aptos: cspell updates

* node: cspell updates

* algorand: cspell updates

* whitepapers: cspell updates

* near: cspell updates

* solana: cspell updates

* terra: cspell updates

* cosmwasm: cspell updates

* ethereum: cspell updates

* clients: cspell updates

* cspell updates for DEVELOP document

* github: run cspell github action

* sdk: cspell updates

* github: only run cspell on markdown files

* algorand: EMMITTER --> EMITTER

Suggested-by: @evan-gray

* cspell: removed from dictionary

Suggested-by: @evan-gray

* aptos and node: cspell updates

Suggested-by: @evan-gray

* cosmowasm: doc updates for terra2

Suggested-by: @evan-gray

* algorand: cspell updates

Suggested-by: @evan-gray

* algorand: cspell updates

Suggested-by: @evan-gray

* cspell: updated custom word dictionary

This resorts the dictionary and adds a few new words from the
algorand/MEMORY.md document around varints and integers.

* cspell: sort the dictionary how vscode does it

On macOS the sorting is locale dependent. To do this on macOS, you have
to invert the case, do a character insensitive sort, and then invert the
case again:

    LC_COLLATE="en_US.UTF-8" cspell '**/*.md' --config cspell.config.yaml \
        --words-only \
        --unique \
        --no-progress \
        --quiet \
    | tr 'a-zA-Z' 'A-Za-z' \
    | sort --ignore-case \
    | tr 'a-zA-Z' 'A-Za-z'

This requires the `LC_COLLATE` variable to be set to `en_US.UTF-8`, or it
will not do the right thing.

* docs: grammar clean up

---------

Co-authored-by: Evan Gray <battledingo@gmail.com>
2024-03-20 15:40:02 -04:00
bruce-riley a2bdc8d0c8
Docs/Testnet: Add P2P to bootstrap peers (#3737) 2024-01-25 08:29:39 -06:00
Bing Yu 7acbacd0ea
node: Add config file support (#3710)
* node: Add logic to read file config and bind flags

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: add guardian node config to node.yaml

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: fix path typo

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: modularize initFileConfig

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: update ethRPC to the correct url

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: update config file path

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: add initial config file testing data

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: add test for flag precedence over config file

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: add test cases for flag, env var and config file precedence

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: use backticks as expected output

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: update comments

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: handle binding errors

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: create separate test functions

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: absolute filepath -> relative filepath

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* docs: Add guardian config file usage

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: update config file name and env var prefix

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

---------

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>
2024-01-20 02:05:23 +08:00
Jeff Schroeder 126d330b07 docs: remove certus one references from operations 2023-12-19 12:55:12 -06:00
iwantanode 6fcb329698 fix typo operations.md 2023-12-12 11:24:41 -06:00
Bruce Riley f658fd930a Node/Doc: Add Staking Fund to CCQ bootstrap 2023-11-29 11:11:06 -05:00
bruce-riley 6461d8ea67
Doc: Add bootstrap peers to operations.md (#3549)
* Doc: Add bootstrap peers to operations.md

* Add Staking fund to spy
2023-11-21 16:53:44 -06:00
smithit2000 efdb10e39a
Update operations.md (#3544)
added bootstrap peer
2023-11-17 10:42:09 -06:00
Ben Guidarelli 42e64a2e3c
docs: adding more bootstraps for testnet spy (#3402) 2023-09-27 16:16:55 -04:00
Jeff Schroeder cce7b7596b docs: add a section on running the guardian spy 2023-09-13 14:32:17 -04:00
jumpsiegel 091ee0877d
WH-1934: upgrade golang to 1.19 (#1941)
* upgrade to golang 1.19.3

Co-authored-by: tbjump <>
Co-authored-by: tbjump <unknown>
2022-11-28 07:48:27 -06:00
Evan Gray f28e39c490 certusone -> wormhole-foundation 2022-08-26 12:48:14 -04:00
Dmitriy Fishman 0db91bf8c0 Fix a typo in operations.md 2022-02-10 14:51:02 -05:00
victorshevtsov d80da14852 docs: fixed broken
Fixed broken link to 0005_data_availability.md
2022-01-13 08:17:39 -05:00
Leo 00c046e81e Bump Go to 1.17.5
commit-id:359d3fb7
2021-12-13 15:38:17 +01:00
Leo d34e16be66 docs: point out that node keys should be persisted
Hi Joe

Change-Id: Id6434199ed3f96cd06cb4ef6d57216d79cef3dc6
2021-09-28 12:58:27 +00:00
Leo 7887c289d9 docs: undocument systemd sockets
We don't need zero-downtime restarts anymore, and the socket unit
lifecycle is annoying to deal with (the socket can't be enabled if
the unit is already started). Much easier to use the capability.

Change-Id: I9d3cb5428eb0e35554866e6e42b7759569b12efb
2021-09-28 12:58:27 +00:00
Leo 8b0fbb60d2 docs: document --publicWeb
Change-Id: I84f52fac668c60750c08393a532a9bca9d10d452
2021-09-13 17:51:47 +00:00
Leo 4f22a44969 Bump Go to 1.17
Change-Id: Ideb635db1a553c5de4a0b700a080f935249990fb
2021-08-31 08:58:17 +00:00
Leo e98463cfe3 node: rename bridge/ to node/
Calling guardiand a bridge dates back to v1 and no longer makes sense.

Change-Id: I27d24a5d7a64c3e37d6a5ce9c402c6248ad9c59e
2021-08-26 11:36:36 +02:00
Leo 053cf2e66a Add account indexing guidelines for concurrent usage with v1
Change-Id: Icfca131f55515f030e3af75364a37f91c40ef56c
2021-07-30 14:15:57 +00:00
Leo d5e6c844e3 node/pkg/solana: add initial logic for block-by-block requests
CPI part is untested.

Commitment level is hardcoded to "finalized", but can be refactored
to use both "committed" and "finalized" later.

certusone/wormhole#248

Change-Id: I5ae7711c306b33650367e6f7a417ab9d88753612
2021-07-29 12:14:01 +00:00
Leo 89c1c92c7f docs: update operations.md
Change-Id: Ief25490d553430a679512f8135173bacc37b90be
2021-07-21 19:52:51 +00:00
Leo 052d922036 Clean up docs and packages for v2
Change-Id: I1020e648f4a8bd51412cf06196e78665308efdac
2021-07-21 19:46:10 +02:00
Leo 60775101c5 docs: update to account for removed agent build
Change-Id: Iec5267ccf3b3dfbcd121800cc4f1d4bf5093a6f5
2021-07-20 23:17:47 +02:00
Leo 584bfcba2d node: remove terra fee payer
Change-Id: Iffdf5a790fd546b9b43137ee03018da3d94d3ac8
2021-07-20 23:17:47 +02:00
Leo ce6b39e3be devnet,docs: remove agent build and deployment
Change-Id: I04ab07f6db21918297e891de5475f61d22f58cc5
2021-07-20 23:17:47 +02:00
Leo 9fce2e9ded take an axe to the docs
Delete outdated documentation and generic-ify the remainder.

Change-Id: I4e11e59e6da00d49f9ea4fd5d1155769debda55e
2021-04-16 15:49:26 +02:00
Leo c51a2da83f Update operations.md 2021-02-04 20:09:33 +01:00
Leo 201581b1de Update operations.md 2021-02-01 23:56:50 +01:00
Leo 245f47f112 Document status server in operations.md 2021-01-27 15:07:27 +01:00
Leo cb7ddb5a90 docs/operations.md: fix typo
Fixes #158
2021-01-23 01:55:30 +01:00
Leo b5d8993f44 devnet: Add new command line flags for native Solana poller 2021-01-21 11:40:58 +01:00
Leo 108f050c0e Clarify public keys vs public key's hashes in comments and docs 2021-01-21 00:59:50 +01:00
Leo 9f2f609bc1 Bump Go and pin all Docker images to digests 2021-01-19 16:15:54 +01:00
Leopold Schabel 2c8b411a6b
Update operations.md 2020-12-08 17:27:22 +01:00
Leo 1c4ed7839d Update operations.md 2020-12-07 21:28:55 +01:00
Leo 0f498df470 Update operations.md 2020-12-07 21:28:33 +01:00
Leo f58aa25dc8 Bump version 2020-12-07 18:05:41 +01:00
Leo 45b93f569f operations.md: os-level dependencies 2020-12-07 17:44:03 +01:00
Leo 477cde5da7 Bump version to v0.1.1 2020-12-07 11:17:53 +01:00
Leo 2a4ca51028 Clean up operations.md 2020-12-07 09:21:01 +01:00
Leo 89afda64bf Add systemd units to operations.md 2020-12-06 22:51:35 +01:00
Leo 3013f24d59 Update operations.md 2020-12-06 19:25:42 +01:00
Leo d015422be7 Add Makefile for production builds 2020-12-06 19:21:43 +01:00
Leo d1f572c70f operations.md: set capabilities 2020-12-01 11:58:41 +01:00