{ "subject": "Re: I broke my wallet, sends never confirm now.", "content": { "format": "html", "body": "<div class=\"post\">As you figured out, the root problem is we shouldn't be counting or spending transactions until they have at least 1 confirmation.&nbsp; 0/unconfirmed transactions are very much second class citizens.&nbsp; At most, they are advice that something has been received, but counting them as balance or spending them is premature.<br/><br/>I made changes so they show up in lighter print, with the credit amount in square brackets like [+1.23], and the amount not counted towards your balance and not available for spending.&nbsp; This doesn't apply to transactions you sent, which you implicitly trust, since you wrote them.<br/><br/>I didn't make it (+1.23) because parenthesis in accounting means negative.&nbsp; I hope square brackets is different enough to be clear what is meant.<br/><br/>The JSON-RPC interface can still see 0/unconfirmed if it wants by specifying 0 confirmations.<br/><br/>I uploaded the changes to SVN rev 158.&nbsp; I will post a 0.3.13 RC shortly.<br/><br/>If you have any of these transactions in your wallet, do not send any payments until you've upgraded to 0.3.13, which will be coming soon.<br/><br/>If you've already sent any of these transactions, or you're the creator of them, then use theymos' patch or make the following change and use it to send your clean transactions to a new wallet to clean things up.<br/><br/>change:<br/>&nbsp; &nbsp; if (pcoin-&gt;GetDepthInMainChain() &lt; 1 &amp;&amp; pcoin-&gt;GetDebit() &lt;= 0)<br/>&nbsp; &nbsp; &nbsp; &nbsp; continue;<br/>to:<br/>&nbsp; &nbsp; if (pcoin-&gt;GetDepthInMainChain() &lt; 1)<br/>&nbsp; &nbsp; &nbsp; &nbsp; continue;<br/></div>" }, "source": { "name": "Bitcoin Forum", "url": "https://bitcointalk.org/index.php?topic=1306.msg14714#msg14714" }, "date": "2010-09-30T16:38:53Z" }
Inscription number 18,209,377
Genesis block 799,364
File type json
File size 2.17 KB
Creation date Nov 24,2023 7:1 pm