1

I have a wallet.dat which has so many addresses in it. Like 1, 2, 3, 4, ....., 1234324234 addresses. (Each number is address)

I backed up original wallet.dat, and I want to use this light wallet.dat from now on. This light wallet.dat has only 1, 2, 3, .... 100 addresses in it I think. (keypool size was 100)

Both wallet.dat has same address "1", so is it okay to sending all coins to address "1" and use light wallet.dat after that?

It may cause sending to address "1" from "1". Is it okay?

3
  • I cannot find anything of the sort, but I suppose it will return an error when you try to send bitcoin to the same address as where it came from. – Mathias711 May 28 '14 at 8:07
  • 1
    @Mathias711: That is not correct, nothing prevents you from sending Bitcoin to the same address it was stored on before. See Can a Bitcoin transaction have the same address for input and output? – Murch May 30 '14 at 7:16
  • @Murch Ahh, interesting. I tried googling it, but I didn't find anything. Wrong keywords probably – Mathias711 May 30 '14 at 11:11
1

I think you need to understand a lot more about public and private key cryptography first. It sounds like you have no idea what the address actually is or how it's used in Bitcoin.

Yes, the standard client does generate addresses in advance, and these are used by the client when you request the "creation" of a new address. But if you (or rather your client) does not know the private key associated with the address, you will lose your bitcoins forever.

Therefore you need to know both the address that you are sending to and the private key, to be safe.

Can I recommend that you learn about your wallet and how it works by using your bitcoin client in testnet mode first.

2
  • I think you totally misunderstood my question. I'm asking that what would happen if I send coins to wallet address which is included in sender addresses. Actually I tested it with alt coin, and it works as expected. – Euntai Kim May 29 '14 at 4:14
  • What you describe is the method by which "change" is given, in the standard client, but you are trying to circumvent this by using the generated addresses directly from wallet.dat - and this is problematic of you do not know what you are doing. My point is not about sending or receiving, it is about being able to spend the coins afterwards. Just be careful - don't jump to conclusions. – T9b May 30 '14 at 14:33
1

Related question was asked at Can a Bitcoin transaction have the same address for input and output?

And the answer is "Yes" and I also tested it. Unspent transactions can be totally sent to its wallet address as well. There is no internal restriction on in and out.

It's already written at Murch's comment but I'm posting answer to accept the question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.