Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pindexer: remove unused event dependency in governance #4855

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions crates/bin/pindexer/src/governance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ use penumbra_governance::{
};
use penumbra_num::Amount;
use penumbra_proto::{
core::component::{
governance::v1::{self as pb},
sct::v1 as sct_pb,
},
core::component::governance::v1::{self as pb},
event::ProtoEvent,
};
use penumbra_stake::IdentityKey;
Expand All @@ -27,7 +24,6 @@ const EVENT_PROPOSAL_FAILED: &str = "penumbra.core.component.governance.v1.Event
const EVENT_PROPOSAL_SLASHED: &str = "penumbra.core.component.governance.v1.EventProposalSlashed";
const EVENT_PROPOSAL_DEPOSIT_CLAIM: &str =
"penumbra.core.component.governance.v1.EventProposalDepositClaim";
const EVENT_BLOCK_ROOT: &str = "penumbra.core.component.sct.v1.EventBlockRoot";
const ALL_RELEVANT_EVENTS: &[&str] = &[
EVENT_PROPOSAL_SUBMIT,
EVENT_DELEGATOR_VOTE,
Expand All @@ -37,7 +33,6 @@ const ALL_RELEVANT_EVENTS: &[&str] = &[
EVENT_PROPOSAL_FAILED,
EVENT_PROPOSAL_SLASHED,
EVENT_PROPOSAL_DEPOSIT_CLAIM,
EVENT_BLOCK_ROOT,
];

#[async_trait]
Expand Down Expand Up @@ -328,10 +323,6 @@ impl AppView for GovernanceProposals {
.context("error converting deposit claim")?;
handle_proposal_deposit_claim(dbtx, deposit_claim).await?;
}
EVENT_BLOCK_ROOT => {
let pe = sct_pb::EventBlockRoot::from_event(event.as_ref())?;
handle_block_root(dbtx, pe.height).await?;
}
_ => {}
}

Expand Down Expand Up @@ -544,7 +535,3 @@ async fn handle_proposal_deposit_claim(

Ok(())
}

async fn handle_block_root(_dbtx: &mut PgTransaction<'_>, _height: u64) -> Result<()> {
Ok(())
}
Loading