We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4213b49 commit 280eeb7Copy full SHA for 280eeb7
magicblock-committor-service/src/tasks/mod.rs
@@ -162,17 +162,10 @@ pub struct CommitTask {
162
pub allow_undelegation: bool,
163
pub committed_account: CommittedAccount,
164
base_account: Option<Account>,
165
- force_commit_state: bool,
+ strategy: TaskStrategy,
166
}
167
168
impl CommitTask {
169
- pub fn is_commit_diff(&self) -> bool {
170
- !self.force_commit_state
171
- && self.committed_account.account.data.len()
172
- > CommitTaskBuilder::COMMIT_STATE_SIZE_THRESHOLD
173
- && self.base_account.is_some()
174
- }
175
-
176
pub fn switch_to_buffer_strategy(mut self) -> Self {
177
self.strategy = TaskStrategy::Buffer;
178
self
0 commit comments