satwikkansal / python_blockchain_app

A fully functional blockchain application implemented in Python from scratch (with tutorial).
819 stars 471 forks source link

why execute one mine action, confirm all the transactions? #26

Closed xueyuanl closed 4 years ago

xueyuanl commented 4 years ago

From my understanding, one mine confirms one transaction and records it on one block. So is this something that simulate any real wolrd processing, like bitcoin network? Or, it is just want to keep the things simple to understand?

satwikkansal commented 4 years ago

You can also submit more than one transaction and then run mine and the example shall still work.

Yes, real-world bitcoin transaction mining is much more nuanced, the current implementation in the project is easy to understand from beginner's view point.

satwikkansal commented 4 years ago

Closing this due to inactivity, feel free to re-open.

xueyuanl commented 4 years ago

Thanks for your explanation!