Skip to content

Commit

Permalink
Avoid calling spawn_da_queue for full node (#1204)
Browse files Browse the repository at this point in the history
* dont spawn_da_queue for full nodes

* format

* edit comment
  • Loading branch information
exeokan authored Sep 19, 2024
1 parent 812c1ac commit 4465ba8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bin/citrea/src/rollup/bitcoin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,12 @@ impl RollupBlueprint for BitcoinRollup {
.await?
};
let service = Arc::new(bitcoin_service);

Arc::clone(&service).spawn_da_queue(rx);

// until forced transactions are implemented,
// require_wallet_check is set false for full nodes.
if require_wallet_check {
// spawn_da_queue only for sequencer and prover
Arc::clone(&service).spawn_da_queue(rx);
}
Ok(service)
}

Expand Down

0 comments on commit 4465ba8

Please sign in to comment.