lbryio / lbryio/lbry-sdk

Update `staked_amount` to include stakes inside a channel in that channels amount

Open
#3,072 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: discovery level: 3 type: new feature
Dominant language
Python
Stars
7.2k
Forks
493
PR merge metrics
No merged PRs in 30d

Description

  • effective_amount stays as is
  • staked_amount is a new field that
    • is sum of staked lbc for a claim and all its supports
    • is not affected by activation delay
    • for a channel, also includes the staked_amount of all content claims (not recursive, doesn't descend into channels signed by channels) in that channel

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing effective_amount calculation and the claim, support, and channel representations; the issue states that effective_amount must remain unchanged. Trace how staked LBC is represented, then verify that the new staked_amount follows the listed activation-delay and channel-content rules without recursive channel traversal.

Written by the indexing model from the issue text.

Assessment

Tech stack
blockchain, python
Domain
blockchain
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.