Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Nov 27, 2024
1 parent 199392c commit 3587056
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/collect_dialect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3587056

Please sign in to comment.