[zcash/zcash] generalize mininode.py protocol versioning (#3444)

:hourglass: Testing commit c0aa34a4b23d504aab9d7033b7d011ca2ed6161f with merge 622751da12790eb83432db9b26bca7129e856026…