Skip to content

Commit 24a0aad

Browse files
authored
Merge pull request #2777 from CounterpartyXCP/hotfixunpack
v10.7.3
2 parents b11b50f + 207f2f8 commit 24a0aad

File tree

11 files changed

+38
-12
lines changed

11 files changed

+38
-12
lines changed

Diff for: apiary.apib

+1-1
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ Returns server information and the list of documented routes in JSON format.
14541454
"result": {
14551455
"server_ready": true,
14561456
"network": "mainnet",
1457-
"version": "10.7.2",
1457+
"version": "10.7.3",
14581458
"backend_height": 850214,
14591459
"counterparty_height": 850214,
14601460
"documentation": "https://counterpartycore.docs.apiary.io/",

Diff for: counterparty-core/counterpartycore/lib/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
# Semantic Version
8-
__version__ = "10.7.2" # for hatch
8+
__version__ = "10.7.3" # for hatch
99
VERSION_STRING = __version__
1010
version = VERSION_STRING.split("-")[0].split(".")
1111
VERSION_MAJOR = int(version[0])

Diff for: counterparty-core/counterpartycore/lib/messages/attach.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ def unpack(message, return_dict=False):
125125
}
126126

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

131131

132132
def pay_fee(db, tx, source, fee):

Diff for: counterparty-core/counterpartycore/lib/messages/detach.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ def unpack(message, return_dict=False):
5454
"destination": destination,
5555
}
5656
return destination
57-
except Exception as e:
58-
raise exceptions.UnpackError(f"Cannot unpack utxo message: {e}") from e
57+
except Exception:
58+
return None
5959

6060

6161
def detach_assets(db, tx, source, destination=None):

Diff for: counterparty-core/counterpartycore/test/regtest/apidoc/blueprint-template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Returns server information and the list of documented routes in JSON format.
158158
"result": {
159159
"server_ready": true,
160160
"network": "mainnet",
161-
"version": "10.7.2",
161+
"version": "10.7.3",
162162
"backend_height": 850214,
163163
"counterparty_height": 850214,
164164
"documentation": "https://counterpartycore.docs.apiary.io/",

Diff for: counterparty-core/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ yoyo-migrations==8.2.0
3535
gunicorn==23.0.0
3636
waitress==3.0.1
3737
hypothesis==6.116.0
38-
counterparty-rs==10.7.2
38+
counterparty-rs==10.7.3

Diff for: counterparty-rs/Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: counterparty-rs/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "counterparty-rs"
3-
version = "10.7.2"
3+
version = "10.7.3"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Diff for: counterparty-wallet/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ colorlog==6.8.0
55
python-dateutil==2.8.2
66
requests==2.32.0
77
termcolor==2.4.0
8-
counterparty-core==10.7.2
8+
counterparty-core==10.7.3

Diff for: docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ x-addrindexrs-common: &addrindexrs-common
1515
restart: unless-stopped
1616

1717
x-counterparty-common: &counterparty-common
18-
image: counterparty/counterparty:v10.7.2
18+
image: counterparty/counterparty:v10.7.3
1919
stop_grace_period: 1m
2020
volumes:
2121
- data:/root/.bitcoin

Diff for: release-notes/release-notes-v10.7.3.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Release Notes - Counterparty Core v10.7.3 (2024-11-26)
2+
3+
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.
4+
5+
# Upgrading
6+
7+
8+
# ChangeLog
9+
10+
## Protocol Changes
11+
12+
## Bugfixes
13+
14+
- Don't raise error on unpack exceptions
15+
16+
## Codebase
17+
18+
## API
19+
20+
## CLI
21+
22+
23+
# Credits
24+
25+
* Ouziel Slama
26+

0 commit comments

Comments
 (0)