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

Commit

Permalink
Merge pull request #194 from zoedberg/fix/outpoint_state
Browse files Browse the repository at this point in the history
Fix outpoint_state index store
  • Loading branch information
dr-orlovsky authored Aug 22, 2022
2 parents d032b53 + e737bd6 commit 18289f8
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 18289f8

Please sign in to comment.