Skip to content

Commit 7a6c8da

Browse files
committed
only apply check during startup, error log at runtime
1 parent 0acdac4 commit 7a6c8da

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • stackslib/src/chainstate/nakamoto

stackslib/src/chainstate/nakamoto/miner.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ pub fn make_mem_abort_callback(limit_bytes: u64) -> AbortCallback {
6666
return AbortCallback::None;
6767
}
6868
if !tracking_allocator_installed() {
69-
panic!("Tracking allocator must be installed to set a memory limit");
69+
error!(
70+
"TrackingAllocator is not installed as the global allocator; any miner or signer configured memory limits will never trigger"
71+
);
7072
}
7173
AbortCallback::MemAbort {
7274
baseline: thread_allocated(),

0 commit comments

Comments
 (0)