mastercoin-MSC/mastercore — pull request #72 by faizkhan00 (2014-07-30 06:11:00+00:00)
Title: Regtest m b f changes reorg persistence

This adds:

*deletion of saved SPs that are no longer in the activeChain (longest work chain) on process start (init in load_most_relevant_state())
*deletion of saved MP txes that are persisted in MP_txlist on the disconnect (pop) of a block due to being stale
*removal of persistence files associated with stale blockhashes (MP_persist)

note that the client MUST restart if they are to get the best state after a block is orphaned. Persistence is disabled after a block is orphaned, to prevent bad states from being saved to disk ('safe-mode').

In addition this includes: