Do nothing for zero imbalances (#4089)

This commit is contained in:
Gavin Wood authored and GitHub committed 2019-11-12 09:42:32 +01:00
1 parent bff16d906d
commit c91d42712a
5 files changed
+61 -14

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ use crate::{Balances, System, Authorship, MaximumBlockWeight, NegativeImbalance}
pub struct Author;
impl OnUnbalanced<NegativeImbalance> for Author {
fn on_unbalanced(amount: NegativeImbalance) {
fn on_nonzero_unbalanced(amount: NegativeImbalance) {
Balances::resolve_creating(&Authorship::author(), amount);
}
}