Skip to content

Commit

Permalink
funding: don't do anything on checkpoint variant
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed Jan 29, 2025
1 parent 4af0be1 commit 955eabd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/core/component/funding/src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ impl Component for Funding {
#[instrument(name = "funding", skip(state, app_state))]
async fn init_chain<S: StateWrite>(mut state: S, app_state: Option<&Self::AppState>) {
match app_state {
None => {
state.put_funding_params(FundingParameters::default());
}
None => { /* no-op */ }
Some(genesis) => {
state.put_funding_params(genesis.funding_params.clone());
}
Expand Down

0 comments on commit 955eabd

Please sign in to comment.