Motivated by https://github.com/lightningdevkit/rust-lightning/pull/2167#discussion_r1187799842.