Skip to content

Commit

Permalink
Merge pull request #2134 from CounterpartyXCP/eventhash
Browse files Browse the repository at this point in the history
Fix events hash mismatch on reparse; Update Cargo.lock
  • Loading branch information
ouziel-slama authored Aug 7, 2024
2 parents 4434a4d + 53fee98 commit ba1dac3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
2 changes: 2 additions & 0 deletions counterparty-core/counterpartycore/lib/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ def parse_tx(db, tx):
def replay_transactions_events(db, transactions):
cursor = db.cursor()
for tx in transactions:
util.CURRENT_TX_HASH = tx["tx_hash"]
transaction_bindings = {
"tx_index": tx["tx_index"],
"tx_hash": tx["tx_hash"],
Expand Down Expand Up @@ -263,6 +264,7 @@ def replay_transactions_events(db, transactions):
"NEW_TRANSACTION_OUTPUT",
transaction_outputs_bindings,
)
util.CURRENT_TX_HASH = None


def parse_block(
Expand Down
13 changes: 7 additions & 6 deletions counterparty-rs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions release-notes/release-notes-v10.4.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Release Notes - Counterparty Core v10.4.0 (2024-08-??)

# Upgrading

# ChangeLog

## Bugfixes

* Fix `get_value_by_block_index()` on `regtest`
* Fix events hash mismatch after a reparse


## Codebase

## API

## CLI

# Credits

* Ouziel Slama
* Adam Krellenstein
* Warren Puffett
* Matt Marcello

0 comments on commit ba1dac3

Please sign in to comment.