How to represent the recursive structure of `Message` and `Block` in implementation?
Closed this issue · 3 comments
yudetamago commented
In the paper
- Each
Message
has itsjustification
and - Each
Block
has its parent block
but in the view of data amount efficiency and computational efficiency, sending all recursived data is unrealistic.
Some form of serialization or hashing is needed?
nrryuya commented
About block, CBC is not so different from other protocols. We can simply include the parent hash in the block. If the message itself is not "pending", then the fork choice won't select unknown block.
yudetamago commented
Yep! Storing parent hash in each block (without genesis) is concise.
Close this issue.