You know you're deep down the Bitcoin rabbit hole on a side quest when you find yourself reading Bitcoin Core source code for answers.