From e737bd6c8a723c020305a02565d8649d483d23fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zoe=20Faltib=C3=A0?= Date: Fri, 12 Aug 2022 13:27:34 +0200 Subject: [PATCH] Fix outpoint_state index store --- src/bucketd/processor.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bucketd/processor.rs b/src/bucketd/processor.rs index f2da108..e013245 100644 --- a/src/bucketd/processor.rs +++ b/src/bucketd/processor.rs @@ -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");