Update chaingen.h

update line 645 to 17 and -1