Comments (5)
Some optimization was already made in my gonano fork to speed up publishing of many consecutive send blocks.
@Airtune gave me the idea of using the visitors' browsers to help generate work to speed up reward distribution. That is the most promising idea because it is the one that should really scale indefinitely with the number of users, so that's what I'll be working on from now on.
from jungletv.
The current plan to tackle this is to switch to a model where users have a "pending balance" on the website which they can manually withdraw to their Banano wallet at any time, and which additionally will be automatically withdrawn when they reach a certain threshold, e.g. 5 BAN, and also when some time has passed since the last time they earned anything into that pending balance. This is to prevent the service from holding a lot of users' banano, which should hopefully reduce its attractiveness as a target for attacks.
Video rewards would increase that balance instead of resulting in direct banano transactions. This solves the problem of transaction spam and should also massively reduce the amount of work generation we need.
from jungletv.
Things still left to do:
- Implement UI and API methods to request a withdrawal at any moment
- Make the balance in the frontend correctly update to zero as soon as the balance is withdrawn (either automatically or manually)
- Testing
from jungletv.
Thing still left to do:
- Make the balance in the frontend correctly update to zero as soon as the balance is withdrawn (either automatically or manually)
- Idea: have the withdrawal handler fire an event when a withdrawal happens with the address as event argument. The rewards handler subscribes to this event, looks up the correct spectators by address, and fires a (to be created) "spectator.OnWithdrawn" event on those spectators. The
ConsumeMedia
goroutine should also subscribe to this event in addition tospeactator.OnRewarded
in order to send a checkpoint with a zeroRewardBalance
that will make the frontend update.
- Idea: have the withdrawal handler fire an event when a withdrawal happens with the address as event argument. The rewards handler subscribes to this event, looks up the correct spectators by address, and fires a (to be created) "spectator.OnWithdrawn" event on those spectators. The
from jungletv.
Completed in b39f8e9
from jungletv.
Related Issues (20)
- Chat user highlights HOT 1
- User proposal and voting for auto-queue video list rotation.
- Live broadcasts: time in queue should show time left
- Error 526 Invalid SSL certificate HOT 1
- Set up certbot renew hook HOT 1
- Explain how to set up captcha system
- Prevent user nicknames from being the same as staff nicknames
- CSV export for withdrawal and/or reward history
- Allow banning based on partial address matches
- Allow hiding past messages when banning from chat
- Remaining time in queue is sometimes incorrect
- Queue history HOT 2
- Issue POAPs for Tunesdays contributors HOT 1
- Issue POAPs for Tunesdays participants HOT 1
- Queue search/filtering functionality
- use Piped instead of youtube for embeds HOT 2
- Allow users to invalidate all of their current auth tokens
- Refresh page content when changing the file associated with an application page ID
- Save payment and refund block hashes associated with each enqueued media
- Dark mode stopped working in Qutebrowser HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jungletv.