Update checkpoints.cpp

Add security checkpoints.