Skip to content

Commit

Permalink
Merge pull request #2777 from CounterpartyXCP/hotfixunpack
Browse files Browse the repository at this point in the history
v10.7.3
  • Loading branch information
ouziel-slama authored Nov 26, 2024
2 parents b11b50f + 207f2f8 commit 24a0aad
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 12 deletions.
2 changes: 1 addition & 1 deletion apiary.apib
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ Returns server information and the list of documented routes in JSON format.
"result": {
"server_ready": true,
"network": "mainnet",
"version": "10.7.2",
"version": "10.7.3",
"backend_height": 850214,
"counterparty_height": 850214,
"documentation": "https://counterpartycore.docs.apiary.io/",
Expand Down
2 changes: 1 addition & 1 deletion counterparty-core/counterpartycore/lib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


# Semantic Version
__version__ = "10.7.2" # for hatch
__version__ = "10.7.3" # for hatch
VERSION_STRING = __version__
version = VERSION_STRING.split("-")[0].split(".")
VERSION_MAJOR = int(version[0])
Expand Down
4 changes: 2 additions & 2 deletions counterparty-core/counterpartycore/lib/messages/attach.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def unpack(message, return_dict=False):
}

return (asset, int(quantity), destination_vout)
except Exception as e:
raise exceptions.UnpackError(f"Cannot unpack utxo message: {e}") from e
except Exception:
return "", 0, None


def pay_fee(db, tx, source, fee):
Expand Down
4 changes: 2 additions & 2 deletions counterparty-core/counterpartycore/lib/messages/detach.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def unpack(message, return_dict=False):
"destination": destination,
}
return destination
except Exception as e:
raise exceptions.UnpackError(f"Cannot unpack utxo message: {e}") from e
except Exception:
return None


def detach_assets(db, tx, source, destination=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Returns server information and the list of documented routes in JSON format.
"result": {
"server_ready": true,
"network": "mainnet",
"version": "10.7.2",
"version": "10.7.3",
"backend_height": 850214,
"counterparty_height": 850214,
"documentation": "https://counterpartycore.docs.apiary.io/",
Expand Down
2 changes: 1 addition & 1 deletion counterparty-core/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ yoyo-migrations==8.2.0
gunicorn==23.0.0
waitress==3.0.1
hypothesis==6.116.0
counterparty-rs==10.7.2
counterparty-rs==10.7.3
2 changes: 1 addition & 1 deletion counterparty-rs/Cargo.lock

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

2 changes: 1 addition & 1 deletion counterparty-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "counterparty-rs"
version = "10.7.2"
version = "10.7.3"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion counterparty-wallet/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ colorlog==6.8.0
python-dateutil==2.8.2
requests==2.32.0
termcolor==2.4.0
counterparty-core==10.7.2
counterparty-core==10.7.3
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ x-addrindexrs-common: &addrindexrs-common
restart: unless-stopped

x-counterparty-common: &counterparty-common
image: counterparty/counterparty:v10.7.2
image: counterparty/counterparty:v10.7.3
stop_grace_period: 1m
volumes:
- data:/root/.bitcoin
Expand Down
26 changes: 26 additions & 0 deletions release-notes/release-notes-v10.7.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Release Notes - Counterparty Core v10.7.3 (2024-11-26)

This is a hotfix release that must be installed immediately. It fixes a bug in the parsing of Attach and Detach transactions that crashes the server.

# Upgrading


# ChangeLog

## Protocol Changes

## Bugfixes

- Don't raise error on unpack exceptions

## Codebase

## API

## CLI


# Credits

* Ouziel Slama

0 comments on commit 24a0aad

Please sign in to comment.