How have you tried to verify it? ;) The routine below is completely different thing and works only for merkleblocks, just FYI