2
What I have learned is that state is an abstract thing and is maintained by the node locally and the state of the current blockchain can be reached by starting all the way from the genesis block and updating the state to the current state. So the state keeps adding utxos.
Does the state keep track of only the UTXOs which are unspent or the state keeps track of both the spent and the unspent utxos. What I think is ,they should be removed from the memory pool. Also what I think is that the memory pool is nothing else but the state of the blockchain.
Please clarify my confusions. Thanks
Hmm, I never realized that a mempool entry would remove a utxo pre-confirmation. Is that ‘standard’ across all software? I suppose that is done to mitigate against double spends? – chytrik – 2018-07-18T00:09:59.583
I'm not sure about others, but it happens in Bitcoin Core at least. You will get a
txn-mempool-conflictif you try to broadcast a double spend. I'm not actually sure if it updates the UTXO set immediately, but it might have an additional check against mempool txs to achieve the same result – Raghav Sood – 2018-07-18T00:13:35.897