66bc9cb9d4
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. |
||
---|---|---|
.. | ||
cmd | ||
hack | ||
pkg | ||
tools | ||
.golangci.yml | ||
Dockerfile | ||
Makefile | ||
go.mod | ||
go.sum | ||
main.go |