Duplicate events broadcasted to same API server
#2.810 aberto em 11 de ago. de 2021
Métricas do repositório
- Stars
- (3.063 stars)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
Describe the bug
When an API server is configured in both a events_observer block in the stacks-node's config TOML, and the STACKS_EVENT_OBSERVER environment variable, stacks-node will broadcast transactions to the target API server twice, causing it to fail over time.
Steps To Reproduce
- Start a stacks-blockchain-api server
- Export the
STACKS_EVENT_OBSERVERenv variable pointing to the API server. - Run stacks-node with a config TOML which has a
events_observerblock pointing to the API server
Expected behavior
The stacks-node should detect if there are duplicate event server entries between the events_observer block in the TOML and the STACKS_EVENT_OBSERVER env variable. If duplicate entries are found, print a log message saying so and exit.
Environment (please complete the following information):
stacks-node version 2.0.11.2.0