Writeindex now uses modified chainstate