Skip to content

Commit

Permalink
Merge branch 'dev' into update-versions-v1.10.16
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph authored Nov 22, 2023
2 parents 3c76a9c + 48c541c commit 07819c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vms/platformvm/txs/mempool/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ func (m *mempool) Add(tx *txs.Tx) error {
}

m.unissuedTxs.Put(tx.ID(), tx)
m.numTxs.Inc()
m.bytesAvailable -= txSize
m.bytesAvailableMetric.Set(float64(m.bytesAvailable))

Expand Down Expand Up @@ -220,12 +221,11 @@ func (m *mempool) Remove(txsToRemove []*txs.Tx) {
if !m.unissuedTxs.Delete(txID) {
continue
}
m.numTxs.Dec()

m.bytesAvailable += len(tx.Bytes())
m.bytesAvailableMetric.Set(float64(m.bytesAvailable))

m.numTxs.Dec()

inputs := tx.Unsigned.InputIDs()
m.consumedUTXOs.Difference(inputs)
}
Expand Down

0 comments on commit 07819c0

Please sign in to comment.