This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Transaction Header should include upper limit on compute time #1998
Labels
Milestone
Comments
If we don't charge the max at all times then we still have to compute the
exact instruction count on replay.
A max would provide some defense against expensive notifies/inlines.
…On Fri, Mar 30, 2018, 9:22 PM Daniel Larimer ***@***.***> wrote:
Currently it includes the upper limit of the context free compute;
however, this requires us to recompute the exact instruction count on
replay and does not allow the transaction creator to prevent rogue
contracts (such as notify on transfer) from consuming an unexpected CPU
instruction count.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1998>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACYR4tIpX3ch3SeAogOUzlstm3IArmn4ks5tjtpTgaJpZM4TCR9I>
.
|
We always charge the declared amount, we just assert the actual is less than declared. |
Your use of std::forward<> is wrong, should be std::move() |
I just noticed this issue. I posted a very similar one here: #1999. |
Partial work on this in commit: 18009d1 |
Closing due to dupe #1999 |
Duplicate. Put the label here, so this issue's marked to be unneeded for test |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently it includes the upper limit of the context free compute; however, this requires us to recompute the exact instruction count on replay and does not allow the transaction creator to prevent rogue contracts (such as notify on transfer) from consuming an unexpected CPU instruction count.
The text was updated successfully, but these errors were encountered: