Git Product home page Git Product logo

Comments (5)

gbl08ma avatar gbl08ma commented on July 28, 2024

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.

gbl08ma avatar gbl08ma commented on July 28, 2024

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.

gbl08ma avatar gbl08ma commented on July 28, 2024

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.

gbl08ma avatar gbl08ma commented on July 28, 2024

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 to speactator.OnRewarded in order to send a checkpoint with a zero RewardBalance that will make the frontend update.

from jungletv.

gbl08ma avatar gbl08ma commented on July 28, 2024

Completed in b39f8e9

from jungletv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.