Skip to content

Commit 918efe1

Browse files
committed
Fix incorrect regtest check
1 parent c7d28eb commit 918efe1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/citrea.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ impl CitreaClientT for CitreaClient {
505505
let proof_output: LightClientCircuitOutput = borsh::from_slice(&receipt.journal.bytes)
506506
.wrap_err("Failed to deserialize light client circuit output")?;
507507

508-
if !paramset.is_regtest() {
508+
if paramset.network != bitcoin::Network::Regtest {
509509
receipt
510510
.verify(lc_image_id)
511511
.map_err(|_| eyre::eyre!("Light client proof verification failed"))?;

0 commit comments

Comments
 (0)