Commit Graph

322 Commits

Author SHA1 Message Date
Leo 16391185ec node/pkg/processor: log quorum for unsubmitted nil VAAs
Change-Id: I4b29e2813209195c7e1698afb6772f2b18ebfde9
2021-10-01 09:43:18 +00:00
Leo 096707a9c4 node/pkg/processor: fix crash when observation is made while gs is nil
Rare race condition. Found locally when manually injecting observations.

Change-Id: Id10d10ad4cfe38b5f4b00a30978940e928e6bc96
2021-10-01 09:43:18 +00:00
Leo 0feaed4e80 node: include and log TxHash field in SignedObservation
Optional metadata for debugging. Allows tying a received observation
to an on-chain transaction even if the node missed the observation.

Change-Id: Ie50c10c8ab7f65469555674d90645f91092fb2e3
2021-10-01 09:43:18 +00:00
Leo 7a4cac2dde node/pkg/solana: add more logging to transaction parsing
Change-Id: I2529b0c0a7aa7d94802598a7fffbcdbe0ddca5bc
2021-10-01 09:43:18 +00:00
Leo 6ab0fe3855 node/pkg/processor: add more log fields to message observations
Change-Id: I19d804b6668623943f798356a7ed81c1000fa377
2021-10-01 09:43:18 +00:00
Leo ef34c30049 node/pkg/solana: retry account fetches
Change-Id: I310a94a065e883b1a0e200dbd3321d2ec2e03fc0
2021-10-01 09:43:18 +00:00
Leo 2022b55fd4 node: add token bridge governance VAA support
Change-Id: I731161f03590ce73145a1686eb2e62cfe19c8223
2021-10-01 09:43:18 +00:00
Leo 7998d04554 node/pkg/processor: increase timeout for observed VAAs to 24 hours
In cases where we observed a VAA, there is no possibility of gossip DoS.
Increase the timeout to 24 hours to facilitate manual interventions
(like submission of governance VAAs or node restarts/catchup).

Keep the existing five minute timeout for observation-less VAAs.

Change-Id: Ic626108190bd60cf812daadbe191b31cc48c7296
2021-10-01 09:43:18 +00:00
Hendrik Hofstadt b01ad107e7 Add governance VAA initializer
Change-Id: I4c5a050e5b17ed8b278f91e26bf61adacc45ecc5
2021-09-30 16:57:04 +00:00
Hendrik Hofstadt 6bbc1f7ad4 node: Add chain registration payload
Change-Id: I0c7d7a5c3d776c924e8ab54314b8b99ab2483a4f
2021-09-30 15:47:53 +00:00
Leo b641101158 node/pkg/solana: add two more transactions to be recovered
Change-Id: I54e6ca7a54a9c62e93eeaf8abcd2ef6f057eee8d
2021-09-30 10:26:07 +02:00
Leo d91e16e077 node/pkg/solana: fetch recovery config from repository
Chances are that more requests will fail until the scheduled
recovery date, so we can't hardcode them.

Change-Id: Ief45c1f7a455827b32e154fae5c8eed366dd3ff7
2021-09-30 10:22:14 +02:00
Leo 6e4d578041 node/pkg/solana: fix s.logger data race
Surfaced by the retry code:
https://gist.github.com/leoluk/b5d05ed27269b077b834eda771a50058

Accessing s.logger from a goroutine will cause a data race. We didn't
previously encounter this since supervisor would wait for Run() to
return before rescheduling it.

Change-Id: I56a7503081485e58975103d0e25e0c2baf19ca08
2021-09-30 01:05:37 +02:00
Leo c99c11db0a node/pkg/solana: add scheduled account recovery for 2021-10-03Z11:00
Test: https://gist.github.com/leoluk/b613cf717b3047b67d0baf50c892a651

Change-Id: I8b51f940584227887724396094771c14fb4c829c
2021-09-30 00:43:06 +02:00
Leo a6fe7fc54c node/pkg/solana: add delay for retries
Change-Id: I106300e802420ef50f1309825aecf37bb18d4c20
2021-09-29 23:16:04 +02:00
Leo c0bee5e5f0 node/pkg/solana: retry failed requests
Change-Id: I4ee6e0c16c3c6f392ad1d6dbf4b20bdbe9c70f47
2021-09-18 10:48:32 +02:00
Leo 305fcdc393 node/pkg/publicrpc: handle nil req.MessageID
Change-Id: Id43ef898a687bb5ad4b2a80ed42b08aca538ea26
2021-09-17 20:29:40 +02:00
Leo 7914512797 node: handle inbound SignedVAAWithQuorum messages
Change-Id: I539155bb4e59d728ea528e6e2f70b6fbb3338a41
2021-09-13 17:51:47 +00:00
Leo ec07ed0288 node: broadcast a SignedVAAWithQuorum message when a VAA reaches quorum
Change-Id: I5dbefcbcf146bda6e3ef9607a7b49ca1cdf5321d
2021-09-13 17:51:47 +00:00
Leo 9a85dbafe5 Add Go linting stage to CI
rustfmt appears to be a little more complicated since it wants to
download dependencies and needs nightly Rust.

Change-Id: Ia348def30a6459ae2ab6c29a8c3a413216f5eb4b
2021-08-31 08:58:17 +00:00
Leo 4ac19518bd node: remove remaining "bridge" mentions
Ensure there's no core vs. token bridge ambiguity.

Breaking changes to the CLI:

* "guardiand bridge" CLI is now "guardiand node"
* --solanaBridgeAddress is now --solanaContract
* --bridgeKey is now --guardianKey

The Heartbeat proto message had one of its fields renamed from
BridgeAddress to ContractAddress, but this won't break the wire
format and the only consumer appears to be the CLI.

Change includes a "go mod tidy" - it insisted.

Change-Id: Id8b312827737f07f2d5f3944ebce469d946e7f51
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