<p>The <code>utxo_increase</code> and <code>utxo_size_inc</code> fields of <code>getblockstats</code> does not exclude provably unspendable outputs. However provably unspendable outputs will not be added to the UTXO set, so <code>gettxoutsetinfo</code> will not count them.</p>

CC BY-SA 4.0
2023-01-08T17:08:35.263Z
2023-01-08T17:08:35.263Z
Ava Chow
<p>I'm running bitcoin core and using the commands getblockstats and gettxoutsetinfo.</p>
<p>I ran gettxoutsetinfo at block 770992 and it showed a total of 83,420,287 unspent transaction outputs. I then waited for block 770993 to appear and ran getblockstats for that block.</p>
<p>In getblockstats it shows a utxo_increase field, which is the difference between the outs and ins fields (outputs created - outputs consumed). For block 770993 it showed -603.</p>
<p>I ran gettxoutsetinfo at block 770993 and it shows a total of 83,419,633 utxos. Why doesn't it match up?</p>
<p>I tested it for a couple previous blocks as well and the same thing happened. Any ideas?</p>

<bitcoin-core><bitcoin-cli><utxo-set><getblockstats>
Mismatch between utxo increase and total utxos
Marco
# Mismatch between utxo increase and total utxos

(Asked by: username_0 on 2023-01-08)

I'm running bitcoin core and using the commands getblockstats and gettxoutsetinfo.

I ran gettxoutsetinfo at block 770992 and it showed a total of 83,420,287 unspent transaction outputs. I then waited for block 770993 to appear and ran getblockstats for that block.

In getblockstats it shows a utxo\_increase field, which is the difference between the outs and ins fields (outputs created - outputs consumed). For block 770993 it showed -603.

I ran gettxoutsetinfo at block 770993 and it shows a total of 83,419,633 utxos. Why doesn't it match up?

I tested it for a couple previous blocks as well and the same thing happened. Any ideas?

**Tags:** bitcoin-core, bitcoin-cli, utxo-set, getblockstats


---

## 1 answers

### Answer by username_1 on 2023-01-08. Score: 7 | Accepted answer

The `utxo_increase` and `utxo_size_inc` fields of `getblockstats` does not exclude provably unspendable outputs. However provably unspendable outputs will not be added to the UTXO set, so `gettxoutsetinfo` will not count them.


---

