clementine_core::bitvm_client

Static REPLACE_SCRIPTS_LOCK

Source
pub static REPLACE_SCRIPTS_LOCK: LazyLock<Mutex<()>>
Expand description

Replacing bitvm scripts require cloning the scripts, which can be ~4GB. And this operation is done every deposit. So we ensure only 1 thread is doing this at a time to avoid OOM.