As you figured out, the root problem is we shouldn't be counting or spending transactions until they have at least 1 confirmation. 0/unconfirmed transactions are very much second class citizens. At most, they are advice that something has been received, but counting them as balance or spending them is premature.

Reply to this note

Please Login to reply.

Discussion

B-Cashers be like: "NOOOO WE HAVE TO NEUTER TRANSACTIONS TO MAKE 0 CONF STANDARD SO THAT WE WILL NEVER SCALE TO GLOBAL ADOPTION"