```
-BEGIN VERIFY SCRIPT-
sed -i 's/\.mininode/\.p2p/g' $(git grep -l "mininode")
git mv test/functional/test_framework/mininode.py test/functional/test_framework/p2p.py
-END VERIFY SCRIPT-
```
This is a partial backport of core#19760 [2/4]
https://github.com/bitcoin/bitcoin/pull/19760/commits/85165d4332b0f72d30e0c584b476249b542338e6
Depends on D9572
Backport note for reviewers: I did not cherry-pick the commit, I ran the script on our codebase. The only deviation from the script is a few minor automated code style changes from the linter.