Do nothing for zero imbalances (#4089)

This commit is contained in:
Gavin Wood
2019-11-12 09:42:32 +01:00
committed by GitHub
parent bff16d906d
commit c91d42712a
5 changed files with 61 additions and 14 deletions
+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);
}
}