wormhole/node
Chirantan Ekbote 66bc9cb9d4 node: Deduplicate re-observation requests
Commit `1753bb3: Send re-observation request when re-broadcasting local
observations` changed the processor code to automatically send
re-observation requests.  If multiple guardians do this around the same
time that would lead to multiple re-observation requests for the same
transaction.

Deduplicate re-observation requests by keeping a cache of the requests
that were received in the last 11 minutes.  Any request that's already
in the cache will not be forwarded to the chain-specific observation
code.  The 11 minute value was chosen because the guardians will send
these requests approximately every 5 minutes.

Also move the re-observation code into a standalone function so that it
can be more easily tested.
2022-08-25 10:12:15 -04:00
..
cmd node: Deduplicate re-observation requests 2022-08-25 10:12:15 -04:00
hack node: governor tweaks (#1422) 2022-08-16 15:22:24 -05:00
pkg node: configure p2p routing table with bootstrapping nodes (#1455) 2022-08-24 18:27:59 +02:00
tools node: bump dlv for Go 1.17 compat and expose it via Tilt 2021-10-06 12:41:58 +02:00
.golangci.yml enable additional linters, including gosec (#1215) 2022-05-23 16:21:10 +02:00
Dockerfile Move from ADD to COPY on Dockerfiles 2022-07-13 09:27:15 -04:00
Makefile Add new sections to SECURITY.md and CONTRIBUTING.md (#1408) 2022-08-11 15:33:24 -04:00
go.mod node: Update terra.go to latest version 2022-06-09 12:40:27 +09:00
go.sum node: Update terra.go to latest version 2022-06-09 12:40:27 +09:00
main.go node: rename bridge/ to node/ 2021-08-26 11:36:36 +02:00