Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
disable_all_subjective_mitigations now disables the subjective mitiga…
Browse files Browse the repository at this point in the history
…tion preventing RAM billing in notification contexts #6105
  • Loading branch information
arhag committed Apr 15, 2019
1 parent f9ab463 commit af75206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2907,7 +2907,7 @@ bool controller::is_producing_block()const {
}

bool controller::is_ram_billing_in_notify_allowed()const {
return !is_producing_block() || my->conf.allow_ram_billing_in_notify;
return my->conf.disable_all_subjective_mitigations || !is_producing_block() || my->conf.allow_ram_billing_in_notify;
}

void controller::validate_expiration( const transaction& trx )const { try {
Expand Down

0 comments on commit af75206

Please sign in to comment.