What is Nostr?
OceanSlim
npub1zmc…7f60
2025-03-05 17:37:03

OceanSlim on Nostr: GM ☀️ New Grain 🌾 Release ...

GM ☀️ New Grain 🌾 Release
https://github.com/0ceanSlim/grain/releases/tag/v0.3.1

GRAIN🌾 v0.3.1 Latest

🚀 Small Enhancements
- Disable User Sync at Startup ⚙️
- The configuration file now has a setting to enable or disable the Sync from happening at startup if you have it enabled.
- Cache whitelisted domain Pubkeys 💤
- The relay will now cache a list of pubkeys whitelisted through domains when they are successfully fetched.
- The relay will use the cached list if the domain cannot be reached in the event the domain is offline.
- This prevents accidentally purging a whitelisted user events in the event their domain is only temporarily offline.
API Endpoints 🖥️
- There are now two new endpoints for an api. v1/whitelist/pubkeys and v1/blacklist/pubkeys
- These will return the full blacklist and whitelists for the relay

🐛 Bug Fixes
- Event Purge Fix
- Event purge was not considering pubkeys whitelisted at a domain. This is fixed.

🛠️ Other Changes
- Dependency Maintenance 📦
- Updated yaml parser package
- Removed Gorilla from the config package and replaced with standard lib websocket.
- I plan to replace the rest after structured logging,

Refactoring
- Moved the go src file out of the app directory
- The app directory no longer contains unneeded go source files in the release

📦 Installation Instructions
To install or update to version v0.3.1:
Just extract the app folder to the same directory as your executable, then run the program!

Upgrading
If you're upgrading, please take a look at the new example configs. Change your configs accordingly and replace the old executable and app directory with the new one.

💡 What's Next?
Structured logging for the entire program

Thanks for your patience on this release! Most of the work is done by a single dev, so feedback and testing are always appreciated. 🚀

Full Changelog: v0.3.0...v0.3.1
Author Public Key
npub1zmc6qyqdfnllhnzzxr5wpepfpnzcf8q6m3jdveflmgruqvd3qa9sjv7f60