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

Commit e737bd6

Browse files
committed
Fix outpoint_state index store
1 parent d032b53 commit e737bd6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bucketd/processor.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ impl Runtime {
198198
self.store.store_merge(db::GENESIS, contract_id, genesis.clone())?;
199199
for seal in genesis.revealed_seals().unwrap_or_default() {
200200
debug!("Adding outpoint for seal {}", seal);
201-
let index_id = ChunkId::with_fixed_fragments(seal.txid, seal.vout);
201+
let index_id = ChunkId::with_fixed_fragments(
202+
seal.txid.expect("genesis with vout-based seal which passed schema validation"),
203+
seal.vout,
204+
);
202205
self.store.insert_into_set(db::OUTPOINTS, index_id, contract_id)?;
203206
}
204207
debug!("Storing contract self-reference");

0 commit comments

Comments
 (0)