Initial chain verify code: not tested probably not working at present. However nothing enables it yet so this doesn't matter :-)