Skip to content

Commit

Permalink
Merge pull request #682 from hirosystems/chore/warn_mock_proposals
Browse files Browse the repository at this point in the history
propagate error when storing peer_info
  • Loading branch information
csgui authored Nov 7, 2024
2 parents 367362a + 1bc949a commit cb5a7c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/chainhook-cli/src/storage/signers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub fn initialize_signers_db(base_dir: &PathBuf, ctx: &Context) -> Result<Connec
)
.map_err(|e| format!("unable to create table: {e}"))?;
conn.execute(
"CREATE INDEX IF NOT EXISTS index_messages_on_received_at ON messages(received_at_block_height)",
"CREATE INDEX IF NOT EXISTS index_messages_on_received_at ON messages(received_at_block_height)",
[]
).map_err(|e| format!("unable to create index: {e}"))?;
conn.execute(
Expand Down Expand Up @@ -447,7 +447,7 @@ pub fn store_signer_db_messages(
"Storing stacks MockProposal by signer {}",
chunk.pubkey
);
let _ = store_mock_proposal_peer_info(&db_tx, data, Some(message_id));
let _ = store_mock_proposal_peer_info(&db_tx, data, Some(message_id))?;
}
StacksSignerMessage::MockBlock(data) => {
try_info!(ctx, "Storing stacks MockBlock by signer {}", chunk.pubkey);
Expand Down

0 comments on commit cb5a7c3

Please sign in to comment.