Up to bitcoin v0.4.0