-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix] #2232: Make Iroha print meaningful message when genesis has too many isi #2239
[fix] #2232: Make Iroha print meaningful message when genesis has too many isi #2239
Conversation
@@ -96,11 +96,15 @@ where | |||
/// To make `Iroha` peer work all actors should be started first. | |||
/// After that moment it you can start it with listening to torii events. | |||
/// | |||
/// # Side effect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good practice.
rt.block_on(peer.start_with_config_permissions_dir( | ||
configuration.clone(), | ||
GenesisNetwork::test(true), | ||
AllowAll, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Refers to this. The permissions need to be specified inside the genesis block, not hard-coded in the init process.
Need to update the tests too |
24a7186
to
82567fc
Compare
@@ -213,7 +213,7 @@ struct QueryResponseTest { | |||
|
|||
#[allow(variant_size_differences)] | |||
enum QueryResponseBody { | |||
Ok(VersionedQueryResult), | |||
Ok(Box<VersionedQueryResult>), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After rebase clippy was warning me about very different variant sizes, so I have to Box it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider removing allow.
Codecov Report
@@ Coverage Diff @@
## iroha2-dev #2239 +/- ##
==============================================
+ Coverage 63.74% 63.82% +0.08%
==============================================
Files 127 127
Lines 23581 23592 +11
==============================================
+ Hits 15031 15058 +27
+ Misses 8550 8534 -16
Continue to review full report at Codecov.
|
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
82567fc
to
c206266
Compare
…sis has too many isi (hyperledger#2239) Signed-off-by: Daniil Polyakov <arjentix@gmail.com>
Signed-off-by: Daniil Polyakov arjentix@gmail.com
Description of the Change
Issue
isi
, Iroha prints meaningless message #2232Peer
in test_network #2238Benefits
Now users will get more meaningful message when they have too many instructions inside transactions
Possible Drawbacks
None
Usage Examples or Tests
You can take a big genesis from issue description and run Iroha with it to check this out.
I don't think I can write a test for it. This is UI-specific problem