-
Notifications
You must be signed in to change notification settings - Fork 86
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
[cli] Add Task Scheduling Command and Refactor Wallet Context API #2704
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
//TODO FIXME we should use the state_root from previous tx | ||
let state_root = tx_execution_result | ||
.execution_info | ||
.state_root | ||
.0 | ||
.as_bytes() | ||
.to_vec(); |
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.
@steelgeek091 We use a wrong state_root to execute_tx locally.
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 getting the last Tx order which has been processed by sequencer then use this Tx order to query previous Tx?
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.
If the tx has been executed and you use the state_root to execute it again, the ObjectID and Resource may conflict. Maybe the gas profile mode should only execute the tx off-chain.
|
||
#[async_trait] | ||
impl CommandAction<String> for ScheduleCommand { | ||
async fn execute(self) -> RoochResult<String> { |
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.
目前实现的是单节点下的Schedule执行,多节点后再考虑去中心化的Schedule?
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.
Schedule 的应用场景就是单机模式的定时任务。一般应用自己运行一个就行。去中心化的任务系统需要新的协议来搞。
Summary
This PR introduces several enhancements and new features: