Commit Graph

2292 Commits

Author SHA1 Message Date
Josh Siegel 1febea03b5 algo/typo: type fix, algorand tests, near tests 2022-09-26 05:26:56 -05:00
Jonathan Claudius aac9a3b4a0
Remove duplicate audit entries (#1644)
* Remove duplicate audit entries
* Fix italic formatting
2022-09-23 08:22:17 -07:00
claudijd 7aca3d2e3a Fix status of aptos audit 2022-09-22 20:00:41 -04:00
claudijd 33922b8f13 Add aptos audit stub 2022-09-22 20:00:41 -04:00
claudijd a670a6bab3 Drop Solana back down to pre-merge limit 2022-09-22 19:30:35 -04:00
tbjump 5bd96a5c8c add Trail Of Bits report 2022-09-22 19:05:01 -04:00
Hendrik Hofstadt eaa1012cd3 node: add buffer to chain specific reobservation channels
Change-Id: I59743a605c92bbff82789c5d981dca882be8bbbe
2022-09-22 15:22:51 -04:00
Chirantan Ekbote 5be3c5f072 node: Don't block on reobservation channel
The per-watcher channels for reobservation requests don't have a
buffer, which means that if sending on any one channel blocks then _all_
reobservation requests get blocked.  Make the send fallible and log if
it blocks instead.
2022-09-22 15:22:51 -04:00
Chirantan Ekbote 0552e2fe0c node: processor: Rate-limit reobservations
We currently run the cleanup loop every 30 seconds, which means that
once 5 minutes have passed for an observation without quorum we will
send out re-observation requests to the p2p network every 30 seconds.

This is a bit excessive so limit sending these requests out to once
every 5 minutes.
2022-09-22 15:22:51 -04:00
claudijd f14835f4b4 Add Hacken Audit 2022-09-21 13:21:35 -04:00
claudijd 6b9283e065 Move 3rd party audits up 2022-09-21 13:21:35 -04:00
Chirantan Ekbote 3103e59217 node: Add race detection to unit tests in CI 2022-09-21 09:47:15 +09:00
Chirantan Ekbote 9989730d8f node: common: Fix racy test
Use a channel instead of concurrently accessing the same variable from 2
different goroutines.
2022-09-21 09:47:15 +09:00
Kevin Peters 7eddddc17c Added NEAR audit report 2022-09-20 12:57:27 -05:00
Evan Gray 239b22e3a8 sdk/js: add injective 2022-09-20 17:14:05 +00:00
Josh Siegel 34355fd234 algo/hashFix: Change how we confirm clear state 2022-09-20 11:06:55 -05:00
Josh Siegel 5d71e619c1 algo/builds: algorand mainnet builds 2022-09-20 10:37:59 -05:00
Chirantan Ekbote d5b7bee86e solana: Add fmt, check, clippy, and test targets to Makefile
Add fmt, check, and clippy targets to the Makefile so that people don't
have to remember the exact set of parameters needed.  Also fix the test
target since we no longer run the tests through docker.
2022-09-20 23:00:47 +09:00
Chirantan Ekbote 9d7e56bbfc Don't run solana CI in Tilt
Now that we have a github action to run the solana checks we no longer
need to run it in Tilt.
2022-09-20 23:00:47 +09:00
Chirantan Ekbote a1576edbba Run solana checks via github actions
The current approach of running solana checks in Tilt is a bit unwieldy
and makes it hard to find errors in all the log spam.  Move the checks
into a github action instead.  This gives us more flexibility to add
formatting and linting checks and also makes it easier to quickly find
any issues in the logs.
2022-09-20 23:00:47 +09:00
Chirantan Ekbote 0f0ea48fdc solana: Fix clippy warnings 2022-09-20 23:00:47 +09:00
Chirantan Ekbote e377a75e2b solana: run `cargo fmt` 2022-09-20 23:00:47 +09:00
Chirantan Ekbote 25dde0b614 solana: bridge: Fix unused variable warning 2022-09-20 23:00:47 +09:00
Chirantan Ekbote 6c4aad8610 solana: nft_bridge: Replace deprecated function
The replacement function seems like it does the same thing but with an
instruction enum instead.
2022-09-20 23:00:47 +09:00
claudijd ef5ddec6bc Add table of contents and trust assumptions 2022-09-20 08:56:55 -04:00
claudijd 5b3a940ab6 Add CosmWasm for ToB audit 2022-09-20 08:56:55 -04:00
claudijd 32759b6bd6 Add KYC and no double-dipping 2022-09-20 08:56:55 -04:00
Evan Gray cb161db5e0 ethereum: migration for ERC20Permit 2022-09-19 15:31:44 -04:00
Karl Kempe 9df96ac666 Fix domain separator and add more tests 2022-09-19 13:42:38 -04:00
Karl Kempe d8adb6a700 Add ERC20 permit 2022-09-19 13:42:38 -04:00
Josh Siegel 42779b3a5f near/timestamps: timestamp simplifcation 2022-09-19 12:10:53 -05:00
Bruce Riley 3fc357ebcd Log block hash if watcher fails to read timestamp 2022-09-19 12:45:02 -04:00
Chirantan Ekbote cbce1e7c1f node: processor: Fix incorrect fallthrough in `handleCleanup`
When processing pending observations, the `handleCleanup` function
checks if we already have a stored quorum VAA and deletes the in-memory
observation if one is found.  If a stored quorum VAA is not found, then
we're supposed to continue evaluating the other conditions and take
the appropriate action.  This was implemented using a `fallthrough`
statement.

Unfortunately, this is not how `fallthrough` works.  `fallthrough`
simply tells the compiler to execute the body of the next branch in
the switch block, *without evaluating the condition*.  It also doesn't
evaluate the conditions for any of the other branches in the switch.

In practice what this meant is that for local observations that didn't
have quorum we would always take the first branch, fall through to the
second branch, and then exit the switch.  Only once we had a quorum
(`s.submitted == true`) would we actually consider any of the other
branches in the switch.  It also meant that there was no case where we
would take the branch for re-observing messages that hadn't reached
quorum.

Fix this by moving the stored quorum VAA check into an if statement and
then falling through to the switch statement if one is not found.
2022-09-16 18:17:45 -04:00
Evan Gray 898cf160df ci: fix to flaky terra deploy 2022-09-16 18:14:17 -04:00
Kevin Peters e31f3e603d node: Fixed potential latest block nil dereference 2022-09-16 14:08:31 -04:00
Evan Gray 64952c8d85 clients/js: update evm query 2022-09-15 16:53:16 -04:00
Christine Eun aae1ea1c3f spy: Fixed obsvReqC hanging issue 2022-09-15 16:11:46 -04:00
Justin Schuldt d69ad85994
sdk/js - add getSignedBatchVAA and bump version (#1594) 2022-09-15 11:03:26 -05:00
Drew 6c6b25ab2a add check for the zero address in storeGuardianSet
Change-Id: Ic3c5fce71f687d98380d39dc62923d9c6423e194
2022-09-15 10:39:39 -04:00
Csongor Kiss 52737f8455 CI: update guardiand builder to new docker image 2022-09-15 14:35:46 +01:00
Chirantan Ekbote 87c89745fb scripts: Add go sdk to lint.sh 2022-09-15 14:35:46 +01:00
Chirantan Ekbote 12459c4a2a Add a wormhole go sdk
The wormhole sdk is a new go module in the sdk/ directory.  This
initially contains the *_consts.go files from the common package in the
top-level sdk package and the entire vaa package as a sub-package.

For go reasons this needs to be in the sdk directory itself (rather than
a sdk/go subdir).  To prevent the go tooling from looking into the other
non-go subdirs, add an empty go.mod file in each one.  See
golang issue 42965 for more details on why we can't have nice
things (I'm deliberately not linking to stop github from spamming that
issue).
2022-09-15 14:35:46 +01:00
Chirantan Ekbote 2d8ec345cd Move node Dockerfile to parent directory
The node package needs access to the sdk directory so move the
Dockerfile up one level so that both directories can be added to the
build.
2022-09-15 14:35:46 +01:00
Evan Gray 8ad0cf0a02 node: fix finalized only for eth (not moonbeam) 2022-09-14 17:33:13 -04:00
Evan Gray 58186b8d75 node: eth finalized check 2022-09-14 13:39:16 -04:00
Josh Siegel e0843bf2bc near/watcher_fix: improve metrics 2022-09-14 09:22:25 -05:00
Justin Schuldt a4e395ada7
sdk/js-proto-* - bump version to 0.0.5 (#1569) 2022-09-14 04:33:11 -05:00
Josh Siegel 1f518e99ee near/devnet: lets add more 2022-09-13 13:19:13 -05:00
Josh Siegel 3e8074b5f6 near/devnet: added devnet words 2022-09-13 13:19:13 -05:00
jumpsiegel ae0da5654e
node: increase near limits (#1589) 2022-09-13 14:17:46 -04:00