iroha icon indicating copy to clipboard operation
iroha copied to clipboard

Validate genesis instructions

Open mversic opened this issue 1 year ago • 1 comments

A thing that I have noticed. We don't validate genesis instructions at all anymore because there is no initial executor. This is a bug, only the 1st instruction (which is upgrade) should not be validated, all others should

Originally posted by @mversic in https://github.com/hyperledger/iroha/issues/4739#issuecomment-2178400860

mversic avatar Jun 19 '24 11:06 mversic

this can most easily be solved by enforcing genesis to have 2 transactions instead of 1 where 1st is Upgrade<Executor> and 2nd contains all other instructions

mversic avatar Jun 19 '24 11:06 mversic

[Uploading... image.png]image.png

AlexStroke avatar Jul 04 '24 13:07 AlexStroke