[Utopian-IO] Revisions to the Moderation Payment Script
The moderation payment script has been revised to be more consistent regardless of how and when it's ran. The script is ran in a more intelligent way now when gathering statistics and to overall be more reliable.
Dates are now rounded to Thursday midnight UTC. If Thursday has passed, it will round to last Thursday, this is to ensure calculations are not made in the future and to ensure payments are made exactly to the 1 week mark, no more fluctuations. For example, if the day is currently Monday, it will round back in time to Thursday. This will guarantee consistent and accurate results in all the statistics being broadcasted and has some other advantages mentioned below.
Broadcasts are only made if the comment or vote isn't in the blockchain. For moderators that have bandwidth issues, this will allow the script to run more often than once without draining the voting power of the Utopian bot or needlessly broadcasting comment edits. This behavior can be overridden when running with
forcewhich will cause the script to always broadcast.The total moderated stats is now calculated using the rounded date and excludes the pending posts. Previously it relied on the data in the database that gets updated on a cron. The statistical data resulted in inconsistent results.
Pull Request: https://github.com/utopian-io/api.utopian.io/pull/105
Posted on Utopian.io - Rewarding Open Source Contributors
Leave [Utopian-IO] Revisions to the Moderation Payment Script to:
Read more #utopian-io posts
Best Posts From samrg472
We have not curated any of samrg472's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From samrg472
- The greatest threat for some... The greatest hope for others.
- GODcoin Dev Blog #1 - Intro & P2P Networking with Epidemic Broadcast Trees
- [Cluster Daemon - Clustd] Automatic DNS Record Updating using Cloudflare
- [Cluster Daemon] - Add Shell Driver for Cluster Control [part 3]
- [Cluster Daemon] - Plug & Play Driver Support [part 2]
- Cluster Daemon - Creating an Automated Failover System [part 1]
- [Utopian-IO] Revisions to the Moderation Payment Script
- Steemdunk Dev Update: Automatic Reward Claiming
- Witness Update and Call to Action - Feb 13th, 2018
- Zram and Zswap - The Full Rundown