hyperledger-iroha / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
438 stars 280 forks source link

Relationship of `StateBlock` and block #5162

Open mversic opened 1 week ago

mversic commented 1 week ago
          I don't think this can take any args because the transition to `StateBlock` should be unique. What if let `State` hold the last committed block header which `StateBlock` inherit and mutate to the voting block header as needed?

_Originally posted by @s8sato in https://github.com/hyperledger/iroha/pull/5151#discussion_r1804421915_