utxo_ledger (reference): no coinbase authorization; mempool admits any input-less MINING_REWARD
Maintainers usually reply within 10 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- blockchain, python
- Domain
- blockchain, databases
Research direction
Read rips/rustchain-core and trace UtxoSet.add_transaction and apply_transaction, then inspect the block-processing path and epoch reward schedule. Check how coinbase transactions enter each path and how their amount is validated. Done means mempool coinbase is rejected, block processing validates the scheduled reward, and the zero-reward share case in main.py is handled.
Written by the indexing model from the issue text.
Description
Found while reviewing #8302. It is a design gap, and it already exists on main.
Where: rips/rustchain-core reference ledger. Both UtxoSet.add_transaction (mempool) and apply_transaction accept an input-less MINING_REWARD of any amount. Nothing checks who may mint coinbase or how much. After #8302 the mempool admits coinbase-shaped transactions on purpose, to mirror apply.
Why it matters: coinbase should come only from the block producer, for the scheduled reward, and never from the mempool. This can't be reached today, because nothing calls the pool. It would become a free-mint path the moment something does.
Suggested direction:
- The mempool rejects
MINING_REWARDoutright. apply_transactionaccepts coinbase only through a block-processing path that checks the amount against the epoch reward schedule.
Related, and low priority: Box(value=0) now raises. main.py _process_block calls Transaction.mining_reward() in an unguarded loop, so a share that rounds down to 0 would abort block processing partway through. Add if miner.reward <= 0: continue.
- Dominant language
- Python
- Stars
- 850
- Forks
- 589
- Avg merge
- 11d 7h
- Merged PRs (30d)
- 29
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Scottcjn/Rustchain
-
utxo_ledger (reference): failed apply_transaction leaks already-created outputs (supply inflation)Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 10 days
-
SDK CLI prints 0 RTC for canonical /wallet/balance responsesPossibly taken @ArtyormSatori claimed this 37 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Scottcjn/Rustchain#8580 · 4 comments ·
Maintainers usually reply within 10 days
-
[SECURITY] Non-finite and garbage weights pass the sybil-guard money chain — enrollment_weight has no isfinite guard and epoch_weight_to_units raises on NaN/infPossibly taken @thinhnx128 claimed this 28 days ago. Openbug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Scottcjn/Rustchain#8619 · 2 comments ·
Maintainers usually reply within 10 days
-
[Antiquity] Celeron M (Banias/Dothan, 2004) has no brand rule — real vintage silicon falls to x86 default 1.0x while its Pentium M twin earns 1.9xPossibly taken @Limm-web claimed this 60 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Scottcjn/Rustchain#8578 · 5 comments ·
Maintainers usually reply within 10 days
-
Python SDK attest --json returns status without running advertised attestation flowPossibly taken @ArtyormSatori claimed this 36 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 38/100
Scottcjn/Rustchain#8566 · 1 comment ·
Maintainers usually reply within 10 days
All issues in Scottcjn/Rustchain
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
daniel-ospina/tortoise#15308 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
difficulty:easy prio:low type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NatronGitHub/Natron#2405 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Jstar269/nakagawa-recomp#3746 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day