SWARM has since version 2.4.32 the possibility to automatically add official IOTA/Shimmer events. In this guide you will learn how to activate it.
IOTA
- Run SWARM with the swarm command
- Select 1) SWARM Menu
- Select 5) Watchdog Configuration
- Select 1) Hornet [Watchdog]
- Select 1) Hornet (IOTA)
- Select 4) Enable auto-add participation events
After performing the last step, the menu refreshes to show 4) Disable auto-add participation events. This means the feature is now active.
Shimmer
- Run SWARM with the swarm command
- Select 1) SWARM Menu
- Select 5) Watchdog Configuration
- Select 2) INX [Watchdog]
- Select 4) INX-Participation
- Select 4) Enable auto-add participation events
After performing the last step, the menu refreshes to show 4) Disable auto-add participation events. This means the feature is now active.
Where are the events sourced?
Events are pulled from GitHub from the Tangle Bay participation repository. There is a separate folder for the IOTA mainnet and the Shimmer mainnet.
How does it work?
In the respective network folder there is an iota-events.json and a shimmer-events.json. The IDs of the currently running events are stored there. In the templates folder are then the respective event files. These are named after $eventId.json.
Watchdog itself gets the file from our CDN server and compares the respective iota|shimmer-events.json with the locally available events and adds missing ones automatically via the IP.
Important: Only events are added where the corresponding requirements are met. So if your PruningIndex > CommencingIndex of the event, the event will not be added. So make sure that your history (PruningIndex) meets the requirements of the respective events.