chainwork for the last block that preciousblock has been applied to.
Declared in <validation.h>
<validation.h>
arith_uint256 nLastPreciousChainwork = 0;