HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /Part of a blockchain holds these payments, oldest first…
HardComputer ScienceHigh School (9–10)Computer Science › The Internet, the Web and Digital CurrencyNumericalIGCSE

Part of a blockchain holds these payments, oldest first…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

Part of a blockchain holds these payments, oldest first.

  • Block 20: Femi pays Gita 303030 units.
  • Block 21: Gita pays Hugo 121212 units.
  • Block 22: Hugo pays Gita 555 units.
  • Block 23: Gita pays Ines 181818 units.

Gita had no units before block 20.

  1. Track Gita's units: what is her balance after block 23?
  1. Ines says her 181818 units came from Femi. Use the chain to explain whether she is right.

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

Need a reminder? The key ideaShowHide

A payment is sent to a network of computers (nodes). They check it, group it with others into a new block with a time-stamp and the previous hash, add the block to the chain and update every copy. Every payment stays in the chain, so units can be tracked back. A version is accepted when more than half of the NNN copies hold it:

h=⌊N2⌋+1.\displaystyle h = \left\lfloor \dfrac{N}{2} \right\rfloor + 1.h=⌊2N​⌋+1.

The worked solution

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. Block 20. Gita receives 303030: balance 303030.

Step 2. Block 21. She pays 121212: 30−12=1830 - 12 = 1830−12=18.

Step 3. Block 22. She receives 555: 18+5=2318 + 5 = 2318+5=23.

Step 4. Block 23. She pays 181818: 23−18=523 - 18 = 523−18=5.

(a) Gita's balance is 555 units.

(b) Ines was paid by Gita in block 23. Gita's units came from Femi (303030 in block 20) and from Hugo (555 in block 22), and Hugo's came from Gita. So Ines's units come back to Femi through Gita. She is right that they started with Femi, but Femi did not pay her directly.

Why this works. Every payment stays in the chain, so the history of the units can be followed back block by block.

Log in to save this for later
← All Problems
← A blockchain has 56 blocks. A new block is added to the honest chain every 10 minutes…A door lock opens with a 4-digit PIN. Each digit can be 0 to 9… →
More onComputer Science › The Internet, the Web and Digital Currency

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. A blockchain has 56 blocks. A new block is added to the honest chain every 10 minutes…Hard
  2. Kemal pays Dana 9 units of a digital currency that uses a blockchain…Medium
  3. A blockchain is copied on 40 computers in a network…Medium
  4. A student designs a "blockchain" in which each block holds only its data, a time-stamp and its own…Hard
  5. A blockchain has 9 blocks. A person changes the amount of a payment in block 4…Medium
All problems on this topic →