Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.

Fix outpoint_state index store #194

Merged
merged 1 commit into from
Aug 22, 2022
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
5 changes: 4 additions & 1 deletion src/bucketd/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ impl Runtime {
self.store.store_merge(db::GENESIS, contract_id, genesis.clone())?;
for seal in genesis.revealed_seals().unwrap_or_default() {
debug!("Adding outpoint for seal {}", seal);
let index_id = ChunkId::with_fixed_fragments(seal.txid, seal.vout);
let index_id = ChunkId::with_fixed_fragments(
seal.txid.expect("genesis with vout-based seal which passed schema validation"),
seal.vout,
);
self.store.insert_into_set(db::OUTPOINTS, index_id, contract_id)?;
}
debug!("Storing contract self-reference");
Expand Down