From 3587056fec162076cd131504114951516ca66974 Mon Sep 17 00:00:00 2001 From: Rigidity Date: Wed, 27 Nov 2024 14:35:56 -0500 Subject: [PATCH] Add comment --- src/collect_dialect.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/collect_dialect.rs b/src/collect_dialect.rs index 1f2ed8c3..84bcb977 100644 --- a/src/collect_dialect.rs +++ b/src/collect_dialect.rs @@ -76,6 +76,9 @@ where let opcode = u32::from_be_bytes(atom.as_ref().try_into().unwrap()); let cost = match opcode { + // We special case these opcodes and allow the response to pass through otherwise. + // If new operators are added to the main dialect, they likely shouldn't be included here. + // We're using the same cost to ensure that softfork conditions behave the same. 0x13d61f00 => SECP256K1_VERIFY_COST, 0x1c3a8f00 => SECP256R1_VERIFY_COST, _ => return response,