Skip to content

Commit 9a88965

Browse files
committed
wip: submitting txs now, but getting IncorrectHostBlock errors
1 parent 95ba62b commit 9a88965

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/tasks/submit.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,11 @@ impl SubmitTask {
227227
// Create a blob transaction with the blob header and signature values and return it
228228
let tx = self
229229
.build_blob_tx(fills, header, v, r, s, block)?
230-
// .with_from(self.provider().default_signer_address())
231-
.with_to(self.config.builder_helper_address);
232-
// .with_max_fee_per_gas(max_fee_per_gas)
233-
// .with_max_priority_fee_per_gas(max_priority_fee_per_gas)
234-
// .with_max_fee_per_blob_gas(max_fee_per_blob_gas)
235-
// .with_nonce(nonce);
230+
.with_to(self.config.builder_helper_address)
231+
.with_max_fee_per_gas(max_fee_per_gas)
232+
.with_max_priority_fee_per_gas(max_priority_fee_per_gas)
233+
.with_max_fee_per_blob_gas(max_fee_per_blob_gas)
234+
.with_nonce(nonce);
236235

237236
debug!(?tx, "prepared transaction request");
238237
Ok(tx)
@@ -438,7 +437,7 @@ impl SubmitTask {
438437
last_block_attempted = block.block_number();
439438
debug!(last_block_attempted, "resetting last block attempted");
440439

441-
if self.retrying_handle_inbound(&block, 10).await.is_err() {
440+
if self.retrying_handle_inbound(&block, 20).await.is_err() {
442441
debug!("error handling inbound block");
443442
continue;
444443
};
@@ -455,16 +454,17 @@ impl SubmitTask {
455454
}
456455

457456
fn calculate_gas_limits(retry_count: usize) -> (u128, u128, u128) {
458-
let base_fee_per_gas: u128 = 60_000_000;
459-
let base_priority_fee_per_gas: u128 = 20_000_000;
460-
let base_fee_per_blob_gas: u128 = 1_000_000;
457+
let base_fee_per_gas: u128 = 100_000_000_000;
458+
let base_priority_fee_per_gas: u128 = 2_000_000_000;
459+
let base_fee_per_blob_gas: u128 = 1_000_000_000;
461460

462-
let bump_multiplier = 1500u128.pow(retry_count as u32);
461+
let bump_multiplier = 1150u128.pow(retry_count as u32); // 15% bump
462+
let blob_bump_multiplier = 2000u128.pow(retry_count as u32); // 100% bump (double each time) for blob gas
463463
let bump_divisor = 1000u128.pow(retry_count as u32);
464464

465465
let max_fee_per_gas = base_fee_per_gas * bump_multiplier / bump_divisor;
466466
let max_priority_fee_per_gas = base_priority_fee_per_gas * bump_multiplier / bump_divisor;
467-
let max_fee_per_blob_gas = base_fee_per_blob_gas * bump_multiplier / bump_divisor;
467+
let max_fee_per_blob_gas = base_fee_per_blob_gas * blob_bump_multiplier / bump_divisor;
468468

469469
debug!(
470470
retry_count,

0 commit comments

Comments
 (0)