-
Notifications
You must be signed in to change notification settings - Fork 406
External cost recorder #170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 14 commits
94c9036
932044e
44b5296
70cc197
9e7568e
6f46413
ba318ee
3d733d7
a9bf609
c3db477
1b902f6
269f83f
5b2c10c
f9b8dd9
1fe19d1
6171ea3
1e497c5
53315e2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ | |
| mod memory; | ||
|
|
||
| pub use self::memory::{MemoryAccount, MemoryBackend, MemoryVicinity}; | ||
|
|
||
| use crate::ExitError; | ||
| use alloc::vec::Vec; | ||
| use primitive_types::{H160, H256, U256}; | ||
|
|
||
|
|
@@ -50,7 +50,7 @@ pub enum Apply<I> { | |
| } | ||
|
|
||
| /// EVM backend. | ||
| #[auto_impl::auto_impl(&, Arc, Box)] | ||
| //#[auto_impl::auto_impl(&, Arc, Box)] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we still implement this for
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Anyway, I'm fine keeping this as is for now. A refactoring we can do is to move But the changes are already huge so we can do that in a separate PR. |
||
| pub trait Backend { | ||
| /// Gas price. Unused for London. | ||
| fn gas_price(&self) -> U256; | ||
|
|
@@ -80,7 +80,7 @@ pub trait Backend { | |
| /// Get basic account information. | ||
| fn basic(&self, address: H160) -> Basic; | ||
| /// Get account code. | ||
| fn code(&self, address: H160) -> Vec<u8>; | ||
| fn code(&mut self, address: H160) -> Result<Vec<u8>, ExitError>; | ||
| /// Get storage value of address at index. | ||
| fn storage(&self, address: H160, index: H256) -> H256; | ||
| /// Get original storage value of address at index, if available. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.