-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Conversation
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.
These changes seem to be causing unit test failures
libraries/chain/apply_context.cpp
Outdated
void apply_context::update_disk_usage( account_name account, int64_t disk_delta, const storage_usage_trace& trace ) { | ||
|
||
if (disk_delta > 0 && !privileged) { | ||
EOS_ASSERT(receiver == act->account, subjective_block_production_exception, |
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.
This should not be a subjective failure. The similar check in update_db_usage
is a subjective mitigation for before RAM_RESTRICTIONS
is activated. Since DISK in new, we don't need subjective mitigations and can always apply the restriction. The actual check that you should copy is in exec_one
.
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.
The behaviour of the check in exec_one
is slightly different from the subjective check in update_db_usage
. Unless we've decided that that was a mistake it would be better to change exec_one
, so the behaviour of DISK matches RAM.
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.
This needs an updated kv_test.wasm
file
libraries/chain/apply_context.cpp
Outdated
@@ -50,6 +50,32 @@ apply_context::apply_context(controller& con, transaction_context& trx_ctx, uint | |||
context_free = trace.context_free; | |||
} | |||
|
|||
template <typename Excpetion> |
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.
Exception
libraries/chain/apply_context.cpp
Outdated
counter = 0; | ||
} | ||
if (entry.delta > 0 && entry.account != receiver) { | ||
EOS_ASSERT(not_in_notify_context, Excpetion, |
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.
typo
libraries/chain/apply_context.cpp
Outdated
"${account}", | ||
("resource", resource) | ||
("account", entry.account)); | ||
EOS_ASSERT(has_authorization(entry.account), Excpetion, |
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.
typo
# Conflicts: # libraries/chain/include/eosio/chain/exceptions.hpp
Change Description
Allow application developers to choose who pays for resources (feature parity with multi-index table functionality).
EPE-218
Change Type
Select ONE
Consensus Changes
API Changes
Documentation Additions