Files
bitcoin-mirror/test/functional/test_framework
Sjors Provoost 4afbabdcef Fix startup failure with RLIM_INFINITY fd limits
When setting the fd limit to unlimited, the node fails to start:

ulimit -n unlimited
build/bin/bitcoind
Error: Not enough file descriptors available. -1 available, 160 required.

This was caused by RaiseFileDescriptorLimit() casting limitFD.rlim_cur
to int, which for RLIM_INFINITY overflows to -1. Fix it by returning
std::numeric_limits<int>::max() instead.

This commit also adds a functional test, which is skipped on environments
with a hard limit below infinity.

Co-authored-by: Luke Dashjr <luke-jr+git@utopios.org>
Co-authored-by: winterrdog
2026-04-23 15:50:16 +02:00
..
2026-03-31 12:25:06 +02:00