Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: jago25_98 on September 30, 2011, 10:20:12 PM



Title: Older client to newer client: `Invalid bitcoin address`
Post by: jago25_98 on September 30, 2011, 10:20:12 PM
I've noticed that if an older Bitcoin client tries to send to some address we get

`invalid bitcoin address`. Thus we are dependent on being able to access the later release in order to send coins? Or just to send coins to newer addresses?



Title: Re: Older client to newer client: `Invalid bitcoin address`
Post by: Stephen Gornick on September 30, 2011, 10:25:57 PM
I've noticed that if an older Bitcoin client tries to send to some address we get

`invalid bitcoin address`.

There is some validity checking in the client but there've not been any reports of that check in the older clients have any problem like that.  Would you provide an address with which you experience this specific problem?


Title: Re: Older client to newer client: `Invalid bitcoin address`
Post by: jago25_98 on October 01, 2011, 06:30:17 PM
from version 3.2.xxxish to any address from bitaddress.org. It sends fine from newer clients.


Title: Re: Older client to newer client: `Invalid bitcoin address`
Post by: Stephen Gornick on October 01, 2011, 06:53:55 PM
from version 3.2.xxxish to any address from bitaddress.org. It sends fine from newer clients.

Just to make sure -- are you referring to an address generated by the current version of that script (v0.5 or greater)?  There was a problem with older versions.
 - http://bitcointalk.org/index.php?topic=43496.0

Additionally, perhaps the problem has to do with the copy and paste you are attempting.
Try typing the code manually, or using a tool in the middle (e.g., paste to Notepad or a text editor and then select the text just pasted and copy it back to the clipboard) to troubleshoot this possibility.


Title: Re: Older client to newer client: `Invalid bitcoin address`
Post by: pointbiz on October 01, 2011, 08:03:42 PM
from version 3.2.xxxish to any address from bitaddress.org. It sends fine from newer clients.

If you could post the bitcoin address we could verify if it's valid. Other people have successfully transferred to bitcoin addresses generated by bitaddress.org from 0.3.2x clients.


Title: Re: Older client to newer client: `Invalid bitcoin address`
Post by: jago25_98 on October 01, 2011, 11:55:19 PM
With an address made just now:

Code:
j:~/bin$ ./bitcoind sendtoaddress 0.0001 1PyrrD1EnHminnFPipPGyve4HiVyJPKmGy
error: {"code":-4,"message":"Invalid bitcoin address"}

j:~/bin$ ./bitcoind getinfo
{
    "version" : 31900,


Title: Re: Older client to newer client: `Invalid bitcoin address`
Post by: Stephen Gornick on October 02, 2011, 03:33:01 AM
With an address made just now:

Code:
j:~/bin$ ./bitcoind sendtoaddress 0.0001 1PyrrD1EnHminnFPipPGyve4HiVyJPKmGy
error: {"code":-4,"message":"Invalid bitcoin address"}

j:~/bin$ ./bitcoind getinfo
{
    "version" : 31900,


Is that v0.3.19 then, and not v0.3.2x?

Maybe that is an erroneous error message?  The minimum that could be sent at one point in time was 0.01 BTC, so maybe instead of saying invalid amount it is reporting invalid address?  Not saying the problem isn't with BitAddress, just trying to eliminate other possible reasons.


Title: Re: Older client to newer client: `Invalid bitcoin address`
Post by: pointbiz on October 02, 2011, 03:48:10 AM
With an address made just now:

Code:
j:~/bin$ ./bitcoind sendtoaddress 0.0001 1PyrrD1EnHminnFPipPGyve4HiVyJPKmGy
error: {"code":-4,"message":"Invalid bitcoin address"}

j:~/bin$ ./bitcoind getinfo
{
    "version" : 31900,


BlockExplorer reports that it's a valid bitcoin address:
http://blockexplorer.com/q/checkaddress/1PyrrD1EnHminnFPipPGyve4HiVyJPKmGy (http://blockexplorer.com/q/checkaddress/1PyrrD1EnHminnFPipPGyve4HiVyJPKmGy)

I don't have an explanation for the error you are receiving. Can you try sending it 0.02 BTC ?



Title: Re: Older client to newer client: `Invalid bitcoin address`
Post by: pointbiz on October 02, 2011, 04:15:59 AM
I just tried running v0.3.19 on Windows but I couldn't get that version of Bitcoin to open.


Title: Re: Older client to newer client: `Invalid bitcoin address`
Post by: Cusipzzz on October 02, 2011, 04:25:57 AM
I just successfully sent .02 to that address from v3.19 with no issues.

I think it's a bad error message about precision, or just a scam to get a lot of people to send coins to that address. Congrats, you got me  :P



Title: Re: Older client to newer client: `Invalid bitcoin address`
Post by: pointbiz on October 02, 2011, 05:33:46 AM
I just successfully sent .02 to that address from v3.19 with no issues.

I think it's a bad error message about precision, or just a scam to get a lot of people to send coins to that address. Congrats, you got me  :P

Many thanks, I consider the case closed.


Title: Re: Older client to newer client: `Invalid bitcoin address`
Post by: jago25_98 on October 02, 2011, 11:35:37 AM
I just successfully sent .02 to that address from v3.19 with no issues.

I think it's a bad error message about precision, or just a scam to get a lot of people to send coins to that address. Congrats, you got me  :P



Hey!

Still the same here. I only get the problem on one specific machine:

Code:
user@(removed):~/bin$ ./bitcoind sendtoaddress 0.1 1PyrrD1EnHminnFPipPGyve4HiVyJPKmGy test2
error: {"code":-4,"message":"Invalid bitcoin address"}
user@:~/bin$

Thanks for the coins - can't we send much smaller coins than 0.01 for testing though?

There must be something wrong with this particular client even though I can see the balance and everything else looks fine. I will try exporting the wallet into a new wallet and try again...


Title: Re: Older client to newer client: `Invalid bitcoin address`
Post by: jago25_98 on October 02, 2011, 11:54:00 PM
I migrated the wallet and now have access.

I'll have to import that key somewhere and when I do I will send back the coins. I've just found the same problem again but on v3.24b; it effects $bitcoind but not the $bitcoin GUI and this is on a different box. Bit worrying to be honest in a way


Title: Re: Older client to newer client: `Invalid bitcoin address`
Post by: pointbiz on October 03, 2011, 12:43:33 AM
I migrated the wallet and now have access.

I'll have to import that key somewhere and when I do I will send back the coins. I've just found the same problem again but on v3.24b; it effects $bitcoind but not the $bitcoin GUI and this is on a different box. Bit worrying to be honest in a way

Thanks for digging into this. I think you'll have to escalate this to one of the official client devs. I'm out of ideas for what your issue could be.


Title: Re: Older client to newer client: `Invalid bitcoin address`
Post by: twobitcoins on October 03, 2011, 01:42:26 AM
"sendtoaddress" expects the address first, then the amount.  "0.0001" is indeed an invalid bitcoin address.