Replace duplicated "current wallet version" constant by code that looks it up from the .proto itself.