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

Transaction Header should include upper limit on compute time #1998

Closed
bytemaster opened this issue Mar 31, 2018 · 7 comments
Closed

Transaction Header should include upper limit on compute time #1998

bytemaster opened this issue Mar 31, 2018 · 7 comments

Comments

@bytemaster
Copy link
Contributor

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.

@bytemaster bytemaster added this to the RC1 milestone Mar 31, 2018
@wanderingbort
Copy link
Contributor

wanderingbort commented Mar 31, 2018 via email

@bytemaster
Copy link
Contributor Author

We always charge the declared amount, we just assert the actual is less than declared.

@bytemaster
Copy link
Contributor Author

Your use of std::forward<> is wrong, should be std::move()

@arhag
Copy link
Contributor

arhag commented Mar 31, 2018

I just noticed this issue. I posted a very similar one here: #1999.

@bytemaster
Copy link
Contributor Author

Partial work on this in commit: 18009d1

@bytemaster
Copy link
Contributor Author

Closing due to dupe #1999

@andriantolie
Copy link
Contributor

andriantolie commented Apr 4, 2018

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.
Projects
None yet
Development

No branches or pull requests

4 participants