laboon / CS1699_Fall2018

CS1699 - BLOCKCHAIN TECHNOLOGY AND CRYPTOCURRENCY
MIT License
37 stars 19 forks source link

D2- Prev hash while creating the candidate block #33

Closed KrithikaGanesh closed 5 years ago

KrithikaGanesh commented 5 years ago

We are expected to create the candidate block from a pool of transactions which maximizes the transaction fees. What would be the previous hash here? As a miner we are creating only one block and not a blockchain so I am not sure what would be the previous hash in this context.

laboon commented 5 years ago

As specified here ( https://github.com/laboon/CS1699_Fall2018/blob/master/deliverables/2/deliverable2.md#running-mine ), the previous hash is passed in as the third argument to the Mine program.

Please let me know if you have other questions or close this issue if it answers your question.

KrithikaGanesh commented 5 years ago

Thank you so much. I missed reading that.