add len argument to consensus parsing functions
**Trac**: **Username**: cyberpunks
issue