message: flush generated blocks to disk, and notify UI about them
diff: #include "util.h"
  #include "utilstrencodings.h"
  #include "validationinterface.h"
  +#include "ui_interface.h"
  #include <stdint.h>
  @@ -157,6 +158,12 @@ UniValue generateBlocks(boost::shared_ptr<CReserveScript> coinbaseScript, int nG
  coinbaseScript->KeepScript();
  }
  }
  +
  + CValidationState state;
  + LOCK(cs_main);
  + FlushStateToDisk(state, FLUSH_STATE_ALWAYS); // we made lots of blocks
  + CBlockIndex *pindexNewTip = chainActive.Tip();
  + uiInterface.NotifyBlockTip(false, pindexNewTip);
  return blockHashes;
  }
  