Skip to content

Commit 1ac8c3a

Browse files
committed
cleanup old code
1 parent aa52753 commit 1ac8c3a

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

timeboost-types/src/bundle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl Bundle {
135135

136136
let mut tx = TxEip1559 {
137137
chain_id,
138-
nonce: nonce,
138+
nonce,
139139
max_priority_fee_per_gas,
140140
max_fee_per_gas,
141141
gas_limit,

yapper/src/tx.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,8 @@ pub async fn yap(addresses: &[Address], tps: u32) -> Result<()> {
155155

156156
let mut acc =
157157
ThresholdEncKeyCellAccumulator::new(c.clone(), urls.iter().map(|url| url.2.clone()));
158-
let rpc_url = "http://localhost:8547";
159-
let provider = RootProvider::<Ethereum>::connect(rpc_url)
160-
.await
161-
.expect("to connect");
162-
let address = address!("0x3f1Eae7D46d88F08fc2F8ed27FCb2AB183EB2d0E");
163158

164159
loop {
165-
let nonce = provider.get_transaction_count(address).await?;
166-
println!("Current nonce: {}", nonce);
167160
// create a bundle for next `interval.tick()`, then send this bundle to each node
168161
let Ok(b) = make_bundle(acc.enc_key().await) else {
169162
warn!("failed to generate bundle");

0 commit comments

Comments
 (0)