-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Refactor/separate validation from other executions #1837
Changes from 19 commits
c1e0f54
5dfb4a3
777212d
4a311e5
94bff04
8ba0235
74f5e1f
cc78682
cebe68b
70d672b
7d37d04
1cdc886
28a6118
fbfa9de
41a1a37
363c2c4
54b6c05
aad5b63
947d5d6
2639ba6
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 |
---|---|---|
|
@@ -14,7 +14,10 @@ use fuel_core_executor::{ | |
}; | ||
use fuel_core_storage::transactional::Changes; | ||
use fuel_core_types::{ | ||
blockchain::primitives::DaBlockHeight, | ||
blockchain::{ | ||
block::Block, | ||
primitives::DaBlockHeight, | ||
}, | ||
fuel_tx, | ||
services::{ | ||
block_producer::Components, | ||
|
@@ -55,6 +58,13 @@ impl ExecutorAdapter { | |
) -> ExecutorResult<Vec<TransactionExecutionStatus>> { | ||
self.executor.dry_run(block, utxo_validation) | ||
} | ||
|
||
pub(crate) fn _validate_block( | ||
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. You can name the method 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 just get rid of these "private" methods? They are all just used in one/two places and think I like the idea of just calling |
||
&self, | ||
block: Block, | ||
) -> ExecutorResult<UncommittedResult<Changes>> { | ||
self.executor.validate(block) | ||
} | ||
} | ||
|
||
impl fuel_core_executor::ports::RelayerPort for Database<Relayer> { | ||
|
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.
We need to move it into "Unreleased" section
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.
Still not removed=)