Skip to content
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

MESH-1225: define Utility::{batch_atomic, batch_optimistic} #559

Merged
merged 1 commit into from
Aug 26, 2020

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Aug 25, 2020

No description provided.

.into_iter()
.map(|call| call.get_dispatch_info().weight)
.fold(550_000_000, |a: Weight, n| a.saturating_add(n))
.saturating_add(10_000_000);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE: the saturating_add(10_000_000) used to be inside the fold, but that is contrary to what the actual documentation of the batch function said, so I've moved it out to reflect the docs.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed - this looks like it was fixed upstream in paritytech/substrate#5787

@Centril Centril changed the title [WIP] MESH-1225: define Utility::{batch_atomic, batch_optimistic} MESH-1225: define Utility::{batch_atomic, batch_optimistic} Aug 25, 2020
@adamdossa adamdossa added the merge-after-ci PR can be merged after CI has completed label Aug 26, 2020
@poly-auto-merge poly-auto-merge bot merged commit 29bbdb9 into develop Aug 26, 2020
@Centril Centril deleted the mesh-1225 branch August 26, 2020 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-after-ci PR can be merged after CI has completed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants