Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: bitcoin_unsend on January 08, 2022, 03:07:49 PM



Title: Sent bitcoin before Bitcoin Core client was fully synced
Post by: bitcoin_unsend on January 08, 2022, 03:07:49 PM
Hello everyone,

I sent some bitcoin from my Bitcoin Core client in 2 transactions before the client was fully synced with the network. The transactions appear on my wallet in Bitcoin Core and my balance shown is reduced. However, the bitcoin has not arrived and the transactions do not show on any blockchain explorer. The status of the transactions is: 0/unconfirmed, in mempool. My bitcoin client is now fully synced. I paid a sufficient fee of 0.0023 btc for a 220 kb transaction, so that is not the problem. Bitcoin Core has the option of 'abandon transaction' greyed out on the transactions.

My question is: How do I get the bitcoin to show as unspent in the wallet so that I can send them again? Or is there a way to make sure the bitcoin still gets there?

Thanks.


Title: Re: Sent bitcoin before Bitcoin Core client was fully synced
Post by: BlackHatCoiner on January 08, 2022, 03:14:12 PM
When did you make the transaction?

The status of the transactions is: 0/unconfirmed, in mempool.
This means that your transaction hasn't been confirmed yet. Your client shows you that it has happened, but in order to be considered done, it has to be included into a block, which will happen probably. The fee seems good for its size.

The abandon option won't reverse the transaction. It'll just remove it locally, from your computer. Once it gets confirmed it should show up.

Edit: I responded too fast and misunderstood your problem.


Title: Re: Sent bitcoin before Bitcoin Core client was fully synced
Post by: Rath_ on January 08, 2022, 03:17:29 PM
Bitcoin Core has the option of 'abandon transaction' greyed out on the transactions.

Try abandoning the transaction manually in the console. Select 'Window -> Console' (or press CTRL+T) and type in: abandontransaction "txid". You might also need to remove mempool.dat from your data directory beforehand.


Title: Re: Sent bitcoin before Bitcoin Core client was fully synced
Post by: bitcoin_unsend on January 08, 2022, 03:20:16 PM
@blackhat:
These transactions were made on 1/1, so 7 days ago. The reason that it seems to me like it will not ever be confirmed is that: 1. it does not show on blockchain explorers. and 2. I did put on a significant miner's fee. Perhaps it is relevant to say that my client has only been synced beyond 1/1 for about 3 hrs?


Title: Re: Sent bitcoin before Bitcoin Core client was fully synced
Post by: Rath_ on January 08, 2022, 03:25:27 PM
Alternatively, you could also use getrawtransaction "txid". The command should return you hex-encoded data which you can paste, for example, here (https://live.blockcypher.com/btc/pushtx/). Your wallet should periodically rebroadcast your transactions, but this way, BlockCypher will do it for you.


Title: Re: Sent bitcoin before Bitcoin Core client was fully synced
Post by: BlackHatCoiner on January 08, 2022, 03:28:36 PM
Perhaps it is relevant to say that my client has only been synced beyond 1/1 for about 3 hrs?

May I ask why don't you just sync?


Title: Re: Sent bitcoin before Bitcoin Core client was fully synced
Post by: bitcoin_unsend on January 08, 2022, 03:30:11 PM
@BlackHatCoiner
This is an older wallet and I had not opened Bitcoin Core for a year when I made the transaction. Made the mistake of not letting the client sync first before sending any bitcoin.


Title: Re: Sent bitcoin before Bitcoin Core client was fully synced
Post by: BlackHatCoiner on January 08, 2022, 03:32:47 PM
[...]

Okay, then just rebroadcast it (if you still want it confirmed) or just do what Rath says.


Title: Re: Sent bitcoin before Bitcoin Core client was fully synced
Post by: bitcoin_unsend on January 08, 2022, 03:38:24 PM
@Rath_
Your suggestion of rebroadcasting with https://live.blockcypher.com/btc/pushtx/ seems like an easy solution. But what if Bitcoin Core suddenly also rebroadcasts my transaction (though this has not happened, hence my post)? If both broadcast it, am I not in risk of double spending?


Title: Re: Sent bitcoin before Bitcoin Core client was fully synced
Post by: Rath_ on January 08, 2022, 03:40:03 PM
But what if Bitcoin Core suddenly also rebroadcasts my transaction (though this has not happened, hence my post)? If both broadcast it, am I not in risk of double spending?

You have nothing to worry about. Bitcoin Core would rebroadcast the same transaction so it wouldn't be considered as a double-spend attempt. If some node receives the same transaction then they simply ignore it since it's already in their mempool.


Title: Re: Sent bitcoin before Bitcoin Core client was fully synced
Post by: bitcoin_unsend on January 08, 2022, 04:23:21 PM
@Rath_

Thank you kindly, your suggestion worked and the bitcoin has arrived. I would send you a tip like people used to do but the fees are a bit excessive.