https://github.com/bitcoin/bitcoin/pull/19507/commits/a0f4f9c983e57cc97ecbc56d0177eaf1854c842c
---
note: disconnect_cb variable isn't used in this commit, it is and will
be introduced in the next
Depends on D7347
Partial backport of Core [[https://github.com/bitcoin/bitcoin/pull/19507 | PR19507]]