Commit Graph

582 Commits

Author SHA1 Message Date
bruce-riley 53703d8ffc
Node: ibc watcher (#2566)
* Node: IBC watcher

* Rework event parsing, add tests

* Config changes

* Config changes

* Start converting to tendermint

* More functionality

* Minor test changes

* Formatting changes

* Code review rework

* Rework event parsing

* More rework

* More rework

* Tweak some log levels

* More rework

* More rework

* Don't enable Terra2 over IBC

* Fix issue with error reporting

* More review rework

* Switch from connection IDs to channel IDs

* Remove unused errC from go routines
2023-04-17 09:54:36 -05:00
bruce-riley 4f1feb3899
Node/Gov: Split up CoinGecko queries (#2573)
* Node/Gov: Split up CoinGecko queries

* Fix typos

* Minor logging change

* Add tests
2023-04-13 08:18:41 -05:00
Paul Noel 2016da7713
node: revert "node/pkg/watchers: add RunWithScissors" (#2620)
This reverts commit 9b8bed4dbf.
2023-04-11 17:55:43 -04:00
tbjump 58f55288f3 node: enforce msg.EmitterAddress != 0 2023-04-11 12:55:49 -07:00
bruce-riley 199159b563
Node/Gov: Fix panic in public RPC (#2601)
* Node/Gov: Fix panic in public RPC

* governor: mitigate nil ptr deref

---------

Co-authored-by: Jeff Schroeder <jeffschroeder@computer.org>
2023-04-10 16:47:23 -05:00
Paul Noel 9b8bed4dbf node/pkg/watchers: add RunWithScissors 2023-04-10 12:59:27 -04:00
bruce-riley a846036b6e
Node/Acct: Logging changes (#2574)
* Node/Acct: Logging changes

* Missed some!

* Switch to using logger.With()

* Still missed some.

* Missed one more

* Yet again

* Missed a few

* Don't need .With in AcctGetData
2023-04-06 13:32:00 -05:00
Paul Noel 048595f3da node/pkg/watchers: add doc 2023-04-06 13:56:49 +00:00
bruce-riley f9758b38e7
SDK/Node: Sepolia deployment (#2567) 2023-04-03 09:24:17 -05:00
bruce-riley a52acb52a3
Node: Generate readiness labels programmatically (#2540)
* Node: Generate readiness labels programmatically

Change-Id: Ica03a7cc314b92a0521afad053ffa20f03ff6529

* Move obsolete  labels into test code

Change-Id: I682ec4ca2ea36be1f53b3f6d39f2da4191e2805f

* Code review rework

Change-Id: Idc8f17265a0b6ef357ac98707d20cc2486001520

* Redesign based on feedback

* Near tests failing

* Fix panic in solana
2023-03-27 12:50:21 -05:00
Conor Patrick 50a5977baf node: fix deserialization issue for modify_message 2023-03-23 18:10:04 -05:00
bruce-riley 18e8e14402
Node: Circle Integration governance fixes (#2507) 2023-03-16 09:13:50 -05:00
Conor Patrick 6324a239f9 accountant: address comments from #2513 2023-03-16 08:48:25 -05:00
Conor Patrick 0f123dedb1 node: use new action and module for accountant modify_balance 2023-03-16 08:48:25 -05:00
bruce-riley 2658868ba6
Node: Support VAAs with large payloads (#2518)
* Node: Support VAAs with large payloads

Change-Id: Ie09bdc8ea0813ee90f9b686f3fe95365baa4014f

* Clean up tests

Change-Id: I983a40a2e7763271c8212ac18455b8b45e48fd3e
2023-03-14 14:32:30 -04:00
bruce-riley 0dc0aefa08
Node/acct minor fixes (#2502)
* Node/Acct: logonly should not block anything

Change-Id: Ie398596fcaf296a37a9f9a447f70a12d16c5dbe9

* Node/Acct: Increase audit interval

Change-Id: I90b59cb6a353d98a7eb210a6802946d082e0eda6

* Node/Watcher: Log txHash when reobs fails

Change-Id: I1b0b5d9ca53097d8f766264fb225f7592bd76f5b

* Remove unnecessary log message

Change-Id: I838f5e19d705cb086856199e1316b6e9592ced41

* Remove reference to devnet from log msg

Change-Id: Iffaf850751d742b253a03611b4f75f5af183c10e

* Tweak log msg

Change-Id: I98e48eed99058903a0b26c6db67bb0a06bad365b
2023-03-14 09:32:46 -05:00
bruce-riley 9802f9cf2b
Node/Watcher/EVM: Fix TimeOfBlockByHash (#2517)
* Node/Watcher/EVM: Fix TimeOfBlockByHash

* Tweak log messages

* Remove obsolete source file
2023-03-14 08:21:11 -05:00
tbjump f311517dcf node/telemetry: Fix message encoding for Google Cloud Logging 2023-03-09 15:07:10 -05:00
bruce-riley bed48eb9e8
Node/Acct: Handle large batch status queries (#2491)
* Node:Acct: Handle large batch status queries

Change-Id: I29a8f3d88644eae1f20632318d5a497ac08720f5

* Comment change

Change-Id: I1bf3fd020e2e816edb1a81de4fcb5428f7733484
2023-03-09 11:33:57 -05:00
tbjump 6def9b306c
node/telemetry: fix nullpointer, _privateLogEntry, tests (#2482)
1. Fix a nullpointer dereference bug caused by not cloning everything in (enc *guardianTelemetryEncoder) Clone()
2. Fix a bug that caused logs marked with _privateLogEntry to still be sent to telemetry because when a child logger is created (logger.With(zap.Bool("_privateLogEntry", true))) the extra fields will go into the encoder's buffer and will not be passed to EncodeEntry(entry zapcore.Entry, fields []zapcore.Field). This bug had no production impact because the telemetry logger was broken (see (1))
3. make the telemetry module testable and add unit tests

Co-authored-by: tbjump <>
2023-03-08 11:58:51 -08:00
Evan Gray 9da2bd4150 node: fix aptos reobservation 2023-03-07 13:21:56 -05:00
Evan Gray 053b73375b node: acct increase submission channel size 2023-03-07 13:11:17 -05:00
Evan Gray be7ac27130 node: remove unnecessary lcd dependency for acct 2023-03-07 13:11:17 -05:00
bruce-riley 5023ffec2b
Node: Circle Integration governance support (#2444)
* Node: Circle Integration governance support

* Fix spacing

* Code review rework
2023-03-06 13:23:48 -06:00
Hendrik Hofstadt 36c34bec1c
node: remove unused legacy code (#2441)
* node: remove discord notifier

Change-Id: If309974f73be35bddb3004e62ff9a0e1d06efab8

* node: remove legacy devnet features

Change-Id: I6f9dac21cb44846f638996c3aa5eb8376794cd78
2023-03-03 16:14:39 +01:00
bruce-riley 26da76077e
Node: Rename Arbitrum connector (#2432)
* Node: Rename Arbitrum connector

Change-Id: I3cb2212f923f260ae92f6bd97b747f9839495744

* Rename the class

Change-Id: I9f8dd5efd3d5e058c1ed70750215144908dbafef
2023-03-01 11:14:25 -05:00
tbjump 73841556ba
node: add request logging with --publicRpcLogDetail and --logPublicRpcToTelemetry (#2390)
Release Notes
New guardiand cli options:
--publicRpcLogDetail [string]
none -- no logging of gRPC requests at all
minimal -- only log gRPC methods
full (default) -- additionally log user-agent and gRPC request payload
--logPublicRpcToTelemetry [bool]
false do not send publicrpc logs to Google Cloud Logging
true (default) -- (current behavior)

Co-authored-by: tbjump <>
2023-03-01 07:10:04 -08:00
tbjump c81b5b8df5 node/tools: update dlv to v1.9.1
Change-Id: I420e905343118083b72fcffd40d461dca733ce83
2023-02-27 09:21:01 -08:00
Conor Patrick d4e0445785 node: calculate digests using Vaa type or using message prefix 2023-02-27 08:52:42 -06:00
Paul Noel ae7de3d575 node: Bedrock changes 2023-02-23 22:26:28 -05:00
marcus-jump 6a1271c824
node/p2p: Protect P2P peers (#2344)
Co-authored-by: marcus-jump, tbjump
2023-02-23 15:51:27 -08:00
bruce-riley a2d09dad4b
Node: Base watcher support for testnet (#2424)
* Node: Base watcher support for testnet

* Add a comment

* Add base to rpc dump command
2023-02-23 18:37:35 -05:00
Hendrik Hofstadt 1409550130 node: fix near watcher tests
Change-Id: I76f0863da66b14291fbaaa671b1440197dca7bcd
2023-02-23 07:11:50 -08:00
tbjump fc1ca4ffb9 node/accountant: defense-in-depth ensure accountant does not create messages outside its domain 2023-02-22 06:53:37 -08:00
Evan Gray 718cd3b1b3 node: new message support in vaa verify 2023-02-17 13:46:27 -05:00
Conor Patrick bbec427145 accountant: minor cleanup 2023-02-16 18:03:47 -05:00
Paul Noel b1525333eb node/cmd: add optimism 2023-02-16 15:17:43 -06:00
Conor Patrick bd7406afbf node: add keccak256 as an admin command 2023-02-16 09:36:09 -06:00
Conor Patrick b35480f966 accountant: address review comments for modify governance vaa 2023-02-15 06:23:25 -08:00
Conor Patrick 4640b6ae73 node: add modify governance vaa for token bridge 2023-02-15 06:23:25 -08:00
tbjump c6745e50f8 node/grpc: add logging of x-forwarded-for to gRPC middleware 2023-02-14 06:54:33 -08:00
tbjump 71188d66d1 node/p2p: enforce freshness of heartbeats and correctness of guardianAddr 2023-02-13 07:51:03 -08:00
tbjump f4ec4bfde9 node/p2p: move createSignedHeartbeat to separate function 2023-02-13 07:51:03 -08:00
bruce-riley c84e37e403
Node/p2p: add sub too slow metric (#2361) 2023-02-13 10:11:17 -05:00
bruce-riley 9412845e1b
Node/Gov: add is governed check (#2351)
* Node/Gov: add is governed check

Change-Id: I451a6466453a292f77088a9203eaf2f5958ab4ab

* Node/Gov: Don't use named return values

Change-Id: Ia4e04e496b0b1525a6cf31fca82d3851e0978cdb
2023-02-13 10:10:52 -05:00
Paul Noel 4d91465e9e node/pkg: update generated file 2023-02-13 14:47:30 +00:00
Paul Noel ca72e25a48 node: add dump-rpcs command 2023-02-13 14:47:30 +00:00
Conor Patrick 7e982cb032 wormchain: address comments for migrating wasmd contracts 2023-02-07 12:15:11 -06:00
Conor Patrick aac92a19e7 wormchain: add migrating contracts with vaa 2023-02-07 12:15:11 -06:00
Bruce Riley f6825e242e Node/Watcher: make pyth ws restart on all errors
Change-Id: I9956876d4fa8f9fc4614d1e9e294a252cd3b7610
2023-02-07 11:33:22 -05:00
Paul Noel 1658dbffec node/pkg/watcher: add timeouts 2023-02-06 16:32:25 -05:00
bruce-riley f2be500799
Node: Increase channel to bigtable (#2343)
Change-Id: I93410c3dd9d8e2a2afaa76e5e2c66d2ae1a1e2ae
2023-02-06 10:41:33 -05:00
Paul Noel d8f4740717
node: Fix defer (#2334)
* node: Fix defer

* node/pkg/wathcers: fix error
2023-02-06 08:38:45 -06:00
Bruce Riley 1ca872018b Acct: Node change to set prefix on obs 2023-01-31 21:16:18 -05:00
Jeff Schroeder cca154baf6
node: slightly less verbose guardian logging at info level (#2293)
* node: aptos watcher block height logging to debug

It would be nice to redo this log entry to log something more human
readable in addition to a json blob, but one thing at a time.

* node: near watcher info logging to debug

The near watcher logs when attempting to poll a block and when it
successfully polls a block in addition to some metrics. These are useful
logs, but more suited for debug loglevel.

* node: log cosmwasm watcher block height to debug

* node: log solana empty slots as debug

This cuts down on an enormous amount of additional logging.

* node: update logging in sui watcher

* Set some info logs to debug
* Fix tyop of missmatch --> mismatch
2023-01-31 09:24:33 -05:00
bruce-riley 4116f8454d
Node/Acct: Pending status query fix (#2320)
* Node/Acct: Pending status query fix

* Node/Acct: Test should actually verify the results
2023-01-31 05:22:51 -06:00
Bruce Riley 3dfc8a5285 Node/Acct: add setUpdTime
Change-Id: I0a2172a7b8c63ea7973b11c720b2a965aac362f7
2023-01-29 23:54:43 -05:00
Bruce Riley 2005da77f4 Node/Acct: Fix tmp map key format
Change-Id: Ic2276dd1bb441f4c8b289068fbf23a42d2450b52
2023-01-29 23:54:43 -05:00
Bruce Riley 8ded72af8b Node/Acct: Add another test
Change-Id: I64e37072e77e199f5ff21300ecd9c20aa81a0b5a
2023-01-29 23:54:43 -05:00
Bruce Riley 4a9b2db2df Node/Acct: Audit should handle nil status
Change-Id: I5bfe79fb02ae5c5ef587608eb6e595ad2dd1f848
2023-01-29 23:54:43 -05:00
Bruce Riley 485d5eb037 Node/Acct: Fix audit interval
Change-Id: I23b4d4024462fd47bd0f189f97d0b782fe655a0c
2023-01-29 23:54:43 -05:00
Bruce Riley 90545f7c2a Node/Acct: code review rework
Change-Id: Ib45aec98f855f3e4cff4dabf2d5597ce19b060c9
2023-01-29 23:54:43 -05:00
Bruce Riley 23e09b8ec1 Node/Acct: Tweak audit parameters
Change-Id: Icbd3a85c55ca413de9bac13cc3b5b80b310acbad
2023-01-29 23:54:43 -05:00
Bruce Riley 04f5415c84 Node/Acct: audit stuck pending
Change-Id: I643ce699b5d5e21129d957dae8677e8f2fccdbfd
2023-01-29 23:54:43 -05:00
Bruce Riley 2e400bef1c Node/Acct: check for malformed response
Change-Id: Idb389df44359b77de5c89ce2b15ba44705d86a3d
2023-01-29 23:51:45 -05:00
Bruce Riley e39891bbfd Node: Move setting of scissors metrics up a line 2023-01-29 14:07:13 -05:00
Bruce Riley c585810766 Node: Initialize scissors metrics
Change-Id: I018a663aa5b9ea902f934ab71c23b1786c8aeeb0
2023-01-29 14:07:13 -05:00
justinschuldt d9b18a264b node - wormchain config 2023-01-27 11:27:41 -06:00
Josh Siegel 04b0018cfe sui/guardian: more informative error messages 2023-01-23 11:00:09 -06:00
Josh Siegel bf70827fe7 sui: guardian watcher updates 2023-01-23 11:00:09 -06:00
Jeff Schroeder cd93c57d66 node: strip leading 0x for send-observation-request
This allows copying and pasting transactions from montioring tools or
an explorer to be reobserved.
2023-01-23 10:32:15 -05:00
tbjump 5323453b81
node: add channel read/write type constraints (#1931) 2023-01-20 13:15:13 -08:00
bruce-riley 53d554d93b
Node/Acct: batch requests (#2266)
* Node/Acct: batch requests

Change-Id: I3f950c73265f40b2542a9b1222b2df67cb1964b0

* Node/Acct: use vaa.Address in response

Change-Id: If20f2f75f81c616f30d3b0e1c250c5fb1351f3f2

* Node/Acct: Fix issues with defer

Change-Id: I9370458455da422985516e98f6047d85db822ca0

* Node/Acct: More PR rework

Change-Id: I6d4f549218c25976b7f312d45a2ad53cdeb9ca67

* Node/Acct: use Observation event in watcher

Change-Id: Id0bb7575569a75ef83f97d1297022672d2e693a9
2023-01-20 08:15:36 -06:00
Josh Siegel 588d7e629a node: ether block pollers need to wrap their supervisor runs 2023-01-19 07:18:59 -06:00
jumpsiegel 3580f51ccf
node/pythnet: websocket subscription (#2219)
* node/pythnet: websocket subscription
2023-01-18 11:24:55 -05:00
Kevin Peters 0a7f0dabf5 node: New default current guardian set index (3) 2023-01-17 11:12:58 -06:00
bruce-riley 09aee3cfde
Node/Acct: Renaming (#2245)
Change-Id: I20783b4ae4e445a54d45280e19332af87336a92a
2023-01-17 07:30:50 -06:00
bruce-riley 499c8424e4
Node: Initial guardiand changes for accounting (#2181)
* node: guardiand support for accounting

Change-Id: I97fe1f6d6d71a5803881ff4c793e3c30f22b14d8

* Node: Tie accounting into the guardian

Change-Id: I31600d18176f516b75b3eb046fd7ac6e54e1b133

* Node: accounting tests and metrics

Change-Id: Ieb139772edf464ed1ab202861babeaf0f857ad6b

* Node: minor tweak to accounting metrics

Change-Id: Iad2b7e34870734f0c5e5d538c0ac86269a9a4728

* Node: load accounting key

Change-Id: I228ce23e63b556d751000b97097202eda48650aa

* More work in progress

Change-Id: I85088d26c05cf02d26043cf6ee8c67efd13f2ea4

* Node: send observations to accounting contract

Change-Id: Ib90909c2ee705d5e2a7e6cf3a6ec4ba7519e2eb1

* Node: Fix lint error in accounting tests

Change-Id: Id73397cf45107243a9f68ba82bed3ccf2b0299b5

* Node: Need to copy libwasmvm.so

Change-Id: I2856c8964ca082f1f4014d6db9fb1b2dc4e64409

* Node: Rename wormchain to wormconn

Change-Id: I6782be733ebdd92b908228d3984a906aa4c795f7

* Node: moving accounting check after governor

Change-Id: I064c77d30514715c6f8b6b5da50806a5e1adf657

* Node: Add accounting status to heartbeat

Change-Id: I0ae3e476386cfaccc5c877ee1351dbe41c0358c7

* Node: start of accounting integration work

Change-Id: I8ad206eb7fc07aa9e1a2ebc321f2c490ec36b51e

* Node: More broadcast tx stuff

Change-Id: Id2cc83df859310c013665eaa9c6ce3033bb1d9c5

* Node: Can actually send a request to accounting

Change-Id: I6af5d59c53939f58b2f13ae501914bef260592f2

* Node: More accounting tx broadcast stuff

Change-Id: If758e49f8928807e87053320e9330c7208aad490

* Node: config changes for accounting

Change-Id: I2803cceb188d04c557a52aa9aa8ba7296da8879f

* Node: More accounting changes

Change-Id: Id979af0ec6ab8484bc094072f3febf39355351ca

* Node/Acct: Use new observation request format

* Node/acct: use new contract interface

* Node/acct: fix minor copy/paste error

* Node: Clean up comments and lint errors

* Node: disable accounting in dev by default

* Node: Fix test failure

* Remove test code

* Switch messages to debug, rename Run()

* check for "out of gas"

* Use worker routine to submit observations

* Rename mutex to reflect what it protects

* Create handleEvents func

* Remove FinalizeObservation

* Node/Acct: Trying to use tm library for watcher

* Node/acct: switch watcher to use tm library

* Node/Acct: Need separate WS parm for accounting

* Node/Acct: Fix compile error in tests

* Node/Acct: Minor rework

* Node: add wormchain as a dep to remove stale code

* Node/Acct: GS index is not correct in requests

* Node/Acct: Peg connection error metric

* Node/Acct: Add wormchain to node docker file

* Node/Acct: Fix for double base64 decode

* Node/Acct: Change public key to sender address

* Node/Acct: Fix lint error

* Node/Acct: key pass phrase change

* Node/Acct: Pass guardian index in obs req

* Node/Acct: No go on submit observation

* Node/Acct: Don't double encode tx_hash

* Node/Acct: Remove unneeded base64 encoding

* Node/Acct: handle submit channel overflow

* Node/Acct: Added a TODO to document a review issue

* Node/Acct: Fix for checking if channel is full

Co-authored-by: Conor Patrick <conorpp94@gmail.com>
2023-01-16 06:33:01 -06:00
tbjump 5c41d343ca node: add logging for public rpc requests 2023-01-14 15:07:30 -05:00
Josh Siegel 3de4f875dc node/cosmwasm: restructure a little
node/cosmwasm: convert from gorilla to nhooyr
2023-01-13 07:33:50 -06:00
Josh Siegel 1178f6ed6c node/ether: scissors updates 2023-01-12 14:46:45 -06:00
Hendrik Hofstadt fc64658ce8
node: add admin command to sign existing VAAs (#2183)
* node: add admin command to sign existing VAAs

Change-Id: Ia59c077db1817a3f35ec30544c307448e01455ca

* node: add tests for signing of existing VAAs

Change-Id: I16fca1181fc9d96abb4ebdfad91bc686da517090
2023-01-10 17:54:35 +01:00
bruce-riley f41eebe0b3
Node: EVM watcher tests, phase1 (#1915)
* Node: EVM watcher tests, phase1

Change-Id: I8bbcebc52e3a4e70dda8ea5b53001a2b913c7f9a

* Update optimism tests to match latest code

Change-Id: Ib19c815e80d821c2df7ffc416ab3b8b6f2b91b18

* Clean up poller test

Change-Id: I4176ceacefe781d22174e91815309188b31ccf6a

* Node: rework for evm watcher tests

Change-Id: Idc7bbe4a95402e8af536cef53a4dd2daaa181de1

* Node: More evm watcher test rework

Change-Id: Ibb6466cf425b07bb771a51a3d2131bce73e0dd97

* Node: fix lint errors in evm watcher tests

Change-Id: I6d62cb35c43b20d36c72824fb17a0b4c912fe504

* Node: Fix lint errors in evm tests

Change-Id: Iadd08bd294dc2c6206e04217ef06836507edf1ec
2023-01-05 07:39:33 -06:00
Josh Siegel 0872f4ff16 algorand/recover: format fix 2023-01-05 05:05:40 -06:00
Josh Siegel b3d2f838cd algorand/recover: Address #2192 2023-01-05 05:05:40 -06:00
Josh Siegel 04ed27cb3f node: Simplify WrapWithScissors and make AlgorandWatcher use it 2023-01-05 05:05:40 -06:00
Josh Siegel 4ddeca4dbd node: switch to use recovery and cleanly restart watcher 2023-01-04 13:49:32 -06:00
Jonathan Claudius 98c843e85d
sdk: Add unit-tests for quorum calculation (#2127)
* sdk: Add unit-tests for quorum calculation

* sdk: fix go imports error

* node: remove duplicate sdk unit-test
2022-12-27 13:27:47 -05:00
heyitaki b7d870efcb docker: reorganize dockerfiles 2022-12-21 10:58:22 -08:00
kev1n-peters f39acdbe1c
node: Terra Classic Governor Limits Change (#2090)
See discussion: https://github.com/wormhole-foundation/wormhole/discussions/2087
2022-12-08 11:46:09 -06:00
kev1n-peters c94ad13c8c
node: Injective mainnet support (#2084) 2022-12-07 13:43:44 -06:00
Nikhil Suri 0e7c085d71
node: inject wormchain cosmwasm governance messages (#2057)
* node: inject wormchain cosmwasm governance messages

* Use nested hash for defense in depth

* Use keccak.Reset() instead of creating new hash objects

* fix msg_server_wasmd_test

* Updated based on jynnantonix comments

* Check return value of binary.Write

* Include actual error in binary.Write panic case
2022-12-06 11:10:32 -08:00
jumpsiegel 759550715a
near/fix-stats: Fix network stats for near (#2077)
* near/fix-stats: Fix network stats for near
2022-12-05 07:24:44 -06:00
Bruce Riley 16e8bb347e Node: Polygon checkpoint logging
Change-Id: I31305812cc784845aa98497ada24b2a2041cad71
2022-12-02 10:18:06 -05:00
Josh Siegel 3e0cabc70f algo/fix: go mod tidy 2022-12-02 09:51:51 -05:00
Josh Siegel 133523bd57 algo/fix: switch to using last round 2022-12-02 09:51:51 -05:00
Paul Noel 976d8430c6
Optimism finality (#2037)
* node/pkg: update optimism finality

* node/pkg: fix tilt test

* node/pkg: CI changes
2022-12-02 07:38:45 -06:00
Conor Patrick 63a5654c02 wormchain: add admin-sign command to continue wormchain validator enrollment 2022-11-30 09:23:19 -06:00
Hendrik Hofstadt 56645faaad watcher: fix near typos / docs
Change-Id: I7e271945e8d636b08e384f09359ad8aebf708103
2022-11-30 09:36:07 -05:00
Hendrik Hofstadt 97f302e7d8 watcher: simplify near watcher
Change-Id: If1f646de29c04ab58f5b5ae90b8cbb1f2803fcc0
2022-11-30 09:36:07 -05:00
Hendrik Hofstadt ff186e441a rename dev.v2 to main
Change-Id: Idfc6f88de7ee3c190a01c2196dc0bc4da91cbe4c
2022-11-29 10:43:07 -05:00
tbjump e2f3f69e2b
node/p2p: separate governor config and status message prefix (#1956)
Co-authored-by: tbjump <unknown>
2022-11-28 10:58:26 -06:00
tbjump 17e732c741
node/p2p: enforce ObservationRequest signature payload >= 34 bytes (#1992)
Co-authored-by: tbjump <>
2022-11-28 10:42:39 -06:00
tbjump 200fee61a8
node/p2p: enforce minimum heartbeat message length (#1958)
Co-authored-by: tbjump
2022-11-28 10:23:34 -06:00
bruce-riley 95fd892bec
Node: Support for EVM watcher safe blocks (#1727)
* Node: Support for EVM watcher safe blocks

* Fix merge error

* Add check of publishSafeBlocks if not useFinalized
2022-11-28 07:55:35 -06: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
tbjump cddfe74b67
node: forward public REST requests to public gRPC (#1695)
* forward public REST requests to public gRPC

* handle publicPRC address differently

* add config flag publicGRPCSocketPath

* start publicrpcsocket and forward publicweb to publicrpcsocket

* clarify error message

* add --publicGRPCSocket to testnet

Co-authored-by: tbjump <>
2022-11-18 07:36:22 -08:00
jumpsiegel 402a2d1a30
Basic Sui watcher support (#1951) 2022-11-18 08:14:22 -06:00
Josh Siegel 3413f09b8f WH-1921: stub out btc chain @ Closes #1921 2022-11-15 14:45:55 -06:00
bruce-riley ee1868205d
Node: Rework min/max confs for EVM watchers (#1849)
* Node: Rework max/min confs for EVM

* Increase maxWaitConfirmations
2022-11-14 20:38:04 -05:00
bruce-riley 6de97de242
Node: Neon Watcher Redesign (#1899)
* Node: Neon Watcher Redesign: Issue #1898

* Minor code tweaks

* Get rid of log message

* Updated a comment
2022-11-14 08:07:45 -06:00
tbjump 29e764d013
node: NEAR watcher rewrite (#1673)
add unit tests
make the code more readable
make it more robust to various error conditions
report errors and performance metrics appropriately
Co-authored-by: tbjump jumpsiegel
2022-11-11 07:24:55 -08:00
bruce-riley ce1ca0b155
Node: Polygon watcher redesign (#1858) 2022-11-11 08:12:16 -06:00
bruce-riley 9ae4186e68
Node: Simplify unsafeDevMode testing (#1892)
Change-Id: Ieca0f5d2765ee55b716bc4015900fd52f79d1dfe
2022-11-10 16:27:39 -06:00
bruce-riley 074c98a952
Optimism mainnet deploy (#1869)
* Optimism mainnet deploy

* node: added OP token to manual_tokens

* Add to readiness

* File should not have been committed

* Remove readiness since it goes with watcher

* Allow optimism watcher in mainnet

* Add to devnet config

Co-authored-by: Christine Eun <ceun@jumptrading.com>
2022-11-10 13:56:38 -06:00
bruce-riley cea87d344c
Node: Increase bigtable writer channel size (#1889)
* Node: Increase bigtable writer channel

Change-Id: I981e80b771a68aee744ff5109be2d299004fd1a9

* Change message wording

Change-Id: I4af6dbc3b77c6133c8a129e0b20b6aebbbe39ab3
2022-11-10 12:41:47 -06:00
bruce-riley bc1a740cfa
node: optimism watcher support (#1746) 2022-11-10 07:50:08 -06:00
Justin Schuldt 1b3590b9ce
BatchVAA protos and Spy updates (#1691)
* gossip.proto - add nonce to SignedBatchObservation

* publicrpc.proto - add nonce to BatchID

* spy.proto - filters for BatchVAA, new VAA endpoint

* node - spy.go allow subscribing to BatchVAAs

* add built Go protos to node/pkg/proto

* improve & simplify Publish logic

* simplify filter match logic

* update protos - consistent naming & types for transaction identifiers

* add Spy unit & e2e tests
2022-11-09 10:39:57 -06:00
claudijd 9d042dadb5 governor: increase aptos limit to fix #1839 2022-11-08 09:22:37 -05:00
bruce-riley b129fcb52d
Node: Disable more PythNet logging (#1829)
* Node: Disable more PythNet logging

* Node: Undo governor change caused by rebase
2022-11-03 11:09:20 -05:00
bruce-riley 8bbf8a19b5
Governor: Reworking manual token handling (#1844)
* Governor: Reworking manual token handling

Change-Id: Ic674fb95e89b9cb94c4fe1f9acbd0c5b114f2ebb

* Remove unnecessary comments

Change-Id: I786381d71cb5b01c266ec9ee07f57eb4b20d8adb
2022-11-03 10:45:16 -05:00
bruce-riley 7d53c68aad
Node: Arbitrum poller failling without details (#1836)
* Node: Arbitrum poller failling without details

Change-Id: Id067d0be18a7c391ef90a82cc78f0684c72ab2ad

* Add a comment.

Change-Id: I4d2ef2ea44febc2a1462ac22a3a3e977b09e6545
2022-11-02 08:24:58 -05:00
bruce-riley 2ae9f65a76
Governor: Increase the CoinGecko interval (#1837)
* Governor: Increase the CoinGecko interval

Change-Id: I4f97a012284c75d544a1fe7d43e5914210c4b441

* Suppress a chatty message for pythnet

Change-Id: I2149b056bfc430b6dedd180e951f345180e8a56d
2022-11-01 10:13:19 -05:00
bruce-riley a7d79407f4
Node: Don't log "Transaction failed" in solana (#1835)
Change-Id: I31ed7c57102dbdcd5956270e99859b9bdeaafb13
2022-11-01 10:13:00 -05:00
Evan Gray f60e6669ec node: commit proto and matching test fixes #1769 2022-10-31 12:45:30 -04:00
Evan Gray 9fa943eecd node: support for heartbeat spying fixes #1768 2022-10-31 11:40:55 -04:00
bruce-riley 61454a39bd
Node: remove support for Ropsten (#1818)
* Node: Remove support for Ropsten

* Node: Remove support for Ropsten

* Fix build  error
2022-10-31 09:14:01 -05:00
Bruce Riley 346b68582a Node: Just delete the PYTHNET messages 2022-10-28 14:38:03 -04:00
Bruce Riley 391781d7f7 Node: Disable PYTHNET log messages 2022-10-28 14:38:03 -04:00
bruce-riley 914aa99a60
node: arbitrum watcher fix (#1812)
* node: arbitrum watcher fix

* Add comment

* Update the comment
2022-10-28 08:15:01 -04:00
bruce-riley a99c4a1a7c
node: arbitrum mainnet deploy changes (#1786)
* arbitrum mainnet deploy changes

* Change test for no governed tokens on Arbitrum

* Add arbitrum to to devnet guardian config
2022-10-27 14:50:01 -04:00
bruce-riley e1a6a1f85a
Node: governor not handling duplicates properly (#1772)
* Node: governor not handling duplicates properly

* Minor tweaks

* Logging changes to help debugging
2022-10-27 14:32:09 -04:00
Paul Noel b0f424b4d2 sdk/vaa: add verify function to vaa 2022-10-27 14:10:18 -04:00
Bruce Riley 16f79539b8 Should not have checked in unsafeDevMode to false 2022-10-27 12:43:01 -04:00
Bruce Riley 6a6c258015 Node: arbitrum watcher redesign 2022-10-27 12:43:01 -04:00
bruce-riley ea50bee9d2
Node: Upgrade to solana-go v1.7.1 (#1799)
Change-Id: Ia83b193d524e4c8571bfb8f3dd3075da8b5581cf
2022-10-27 11:14:42 -05:00
Josh Siegel 9fd4c7d6e1 minimal-tilt-fix: Lets make this ready even if the chain is not ticking 2022-10-27 07:52:24 -04:00
Bruce Riley 4a88c0a468 Node: update governor limits for Moonbeam 2022-10-26 13:22:50 -04:00
bruce-riley 49b3b6ab61
Node: make karura/acala watcher use finalized blocks (#1747)
* Node: acala watcher use finalized blocks

* node: acala not in safe mode assume finalized mode

* Remove unused function

* Changes signature of checkForSafeMode()

* Beef up the safe mode check

* Remove unnecessary function
2022-10-25 15:13:36 -05:00
Conor Patrick 91bd9a5c36 rename all wormholechain and wormhole-chain references 2022-10-24 17:59:52 -04:00
bruce-riley ed41a9a4ea
node: update solana watcher to use new solana-go version (#1760)
* node: remove the replace directive for solana-go

This commit that necessitated the fork:

    25b9f3025b

Has been merged upstream:

    9a01ac4f45

We need to pull in the latest solana-go to get support for MaxSupportedTransactionVersion.

* node: upgrade solana-go

This is the output from:

    go get -u github.com/gagliardetto/solana-go

It is required for the MaxSupportedTransactionVersion from:

    6ead48adf2

Co-authored-by: Jeff Schroeder <jeffschroeder@computer.org>
2022-10-24 12:22:56 -05:00
Hendrik Hofstadt e45e04bb09
node: move wormchain watcher (#1783)
Change-Id: If26681fe1a19396032947d22587d4c899153849c
2022-10-24 18:01:32 +02:00
jumpsiegel 6f38e42119
dev.v2: Modernize algorand watcher and improve logging (#1766) 2022-10-24 09:08:05 -05:00
Evan Gray 6c6661f621 js: make packages comply with ci rule 2022-10-20 17:11:13 -05:00
Paul Noel 40279fe668
node/cmd - refactor (#1762)
* node/cmd - refactor

* node/cmd - add logging

* node/cmd - refactor

* node/cmd - add logging

* node/cmd: address inspection comments
2022-10-20 11:43:43 -05:00
Josh Siegel 80e39a8128 aptos/watcher_fix: make it just try again instead of restarting the watcher 2022-10-20 07:16:49 -05:00
ckeun 557a32b8f4
node: Added gov gossip support to p2p (#1755)
* node: Added gov gossip support to p2p

* node: Added nil parms for spy & guardian
2022-10-19 22:32:05 -05:00
bruce-riley c31776c345
node: fix nil reference in evm watcher (#1758) 2022-10-19 10:20:46 -05:00
Hendrik Hofstadt a6d6586d39 node: minor refactoring of aptos watcher
Change-Id: Ideac6ef7e26d9d7272b4cda32a80cf007d62a8a5
2022-10-17 07:30:35 -05:00
Jonathan Claudius bc6b5af095
governor: raise limits on moonbeam (#1739) 2022-10-16 22:15:42 -04:00