TODO:
* This is only tested with bitcoin 0.3.3. Need to test with newer bitcoin clients.
