I was just going to ask... is the bitcoin app designed to allow an upgrade in the hashing algorithm? And, yes, what would happen to the blockchain?
I'd have to dig through the archives for an exact quote from Satoshi, but the main thing would be trying to deal with the impact of having the current SHA v. 2 algorithm somehow attacked to make it trivially easy to create an arbitrary hash. For example, the MD5 signatures, which unfortunately are still being used to prove cryptographic security on some software files, have a known weakness in its design where there are multiple numbers which can be used to create the same hash and in fact the hash can be "broken" if used in something like Bitcoin. It is so bad of a weakness for MD5 that any certification authority based upon that hash algorithm should simply be ignored completely, including security certificates on "secure" http connections or software claiming MD5 certification. I suppose it is better than nothing, but not much more than that and can be used to fool somebody into thinking that some software is much more secure than claimed.
The U.S. Government refuses to recognize MD5 as a valid hash for security purposes and insists upon the SHA v. 2 for all similar kinds of cryptographic security.
If a similar kind of exploit was ever found for the SHA v. 2 algorithm, "bitcoins" protected by such a hash could be "cracked" where any bitcoins protected by the hash could be spent before the "owner" has a chance to use them. That would be the real danger here more than anything else. Essentially anybody could create another "wallet" to at least be able to spend an arbitrary transaction. It would likely take some considerable computer resources to get that done even with such a crack of the SHA v. 2 algorithm.
Depending on how bad of a cryptographic hole would be found, there could be either a transition period from the old to a new block recognizing previously created bitcoins or simply an abandonment of Bitcoin for some other system. A more gradual replacement of the block chain would obviously be preferred spanning the frame of such a transition, and would likely happen over the course of a year or more in an ideal situation. There are a number of ways that "old bitcoins" might be recognized with such a transition, and if a few "cracked" bitcoins came across too it wouldn't necessarily be the end of the world either for most people, especially if the bulk of the community came across early in the transition process. It would still be an ugly process if that was to happen, and a few people complaining about their "identity" being cracked where they lost some of their money, even if that wasn't true and they were simply making that up to get sympathy from the community.
The important thing to note here is that a great many other people rely upon the same algorithm for many similar secure documents, and that there is at least an attempt to improve that security by people who really know what they are doing.