Skip to content

Commit

Permalink
[FIX] Calculate weight unites and vsize when retrieving tx from cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mccwdev committed Oct 28, 2021
1 parent c494372 commit 5d723b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bitcoinlib/services/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ def _parse_db_transaction(db_tx):

t.update_totals()
t.size = len(t.raw())
t.calc_weight_units()
_logger.info("Retrieved transaction %s from cache" % t.txid)
return t

Expand Down

0 comments on commit 5d723b9

Please sign in to comment.