You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
ckb type_id script resume may randomly fail
High severity
GitHub Reviewed
Published
Nov 2, 2022
in
nervosnetwork/ckb
•
Updated Jan 8, 2023
https://github.com/nervosnetwork/ckb/blob/v0.101.2/script/src/verify.rs#L871-L879
TypeIdSystemScript resume handle is not correct when max_cycles is not enough, ScriptError::ExceededMaximumCycles will be raised directly ranther than suspend as expect, and also because script_group execution order is random, so this will happen randomly.
Impact
https://github.com/nervosnetwork/ckb/blob/v0.101.2/script/src/verify.rs#L871-L879
TypeIdSystemScript resume handle is not correct when max_cycles is not enough,
ScriptError::ExceededMaximumCycles
will be raised directly ranther than suspend as expect, and also because script_group execution order is random, so this will happen randomly.References