Fixed broken tx api (#398)

* enforced using a newer planetmint-transactions package and adjusted to a renaming of the variable
* bumped version & added changelog info

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2023-05-24 21:48:50 +02:00 committed by GitHub
parent 4c55f576b9
commit 34e5492420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 10 deletions

View File

@ -25,7 +25,10 @@ For reference, the possible headings are:
* **Known Issues** * **Known Issues**
* **Notes** * **Notes**
## [2.4.6] - 2023-2-05 ## [2.4.7] - 2023-24-05
* **Fixed** wrong referencing of planetmint-transactions object and variable
## [2.4.6] - 2023-24-05
* **Fixed** Missing ABCI_RPC object initiailization for CLI voting commands. * **Fixed** Missing ABCI_RPC object initiailization for CLI voting commands.
* **Fixed** TypeError in EndBlock procedure that occured rarely within the network. * **Fixed** TypeError in EndBlock procedure that occured rarely within the network.
* **Security** moved to a more secure requests version * **Security** moved to a more secure requests version

View File

@ -3,7 +3,7 @@
# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0)
# Code is Apache-2.0 and docs are CC-BY-4.0 # Code is Apache-2.0 and docs are CC-BY-4.0
__version__ = "2.4.6" __version__ = "2.4.7"
__short_version__ = "2.4" __short_version__ = "2.4"
# Supported Tendermint versions # Supported Tendermint versions

View File

@ -97,7 +97,7 @@ class TransactionListApi(Resource):
500, "Invalid transaction ({}): {} : {}".format(type(e).__name__, e, tx), level="error" 500, "Invalid transaction ({}): {} : {}".format(type(e).__name__, e, tx), level="error"
) )
else: else:
if tx_obj.version != Transaction.VERSION: if tx_obj.version != Transaction.__VERSION__:
return make_error( return make_error(
401, 401,
"Invalid transaction version: The transaction is valid, \ "Invalid transaction version: The transaction is valid, \

10
poetry.lock generated
View File

@ -1,4 +1,4 @@
# This file is automatically @generated by Poetry and should not be changed by hand. # This file is automatically @generated by Poetry 1.4.2 and should not be changed by hand.
[[package]] [[package]]
name = "aafigure" name = "aafigure"
@ -1870,14 +1870,14 @@ sha3 = ["pysha3"]
[[package]] [[package]]
name = "planetmint-transactions" name = "planetmint-transactions"
version = "0.8.0" version = "0.8.1"
description = "Python implementation of the planetmint transactions spec" description = "Python implementation of the planetmint transactions spec"
category = "main" category = "main"
optional = false optional = false
python-versions = ">=3.9,<4.0" python-versions = ">=3.9,<4.0"
files = [ files = [
{file = "planetmint_transactions-0.8.0-py3-none-any.whl", hash = "sha256:83f0aaa35dfc80e80e031cf52fe927ce43aedda691496030a2a70d03a0dba107"}, {file = "planetmint_transactions-0.8.1-py3-none-any.whl", hash = "sha256:25a9d310085b088de1688ca269f2130d455af9c6470cd67f587ba8e6a95bd0f6"},
{file = "planetmint_transactions-0.8.0.tar.gz", hash = "sha256:33cf22d5852056164f5d05455d1aa5c893f2d37df99e3bf9f8576f310b9d4b6f"}, {file = "planetmint_transactions-0.8.1.tar.gz", hash = "sha256:f9c473312731dd0e79445074ce7c23d8a2e7c7a29a82ce15b8efd87a2303f33f"},
] ]
[package.dependencies] [package.dependencies]
@ -3395,4 +3395,4 @@ testing = ["func-timeout", "jaraco.itertools", "pytest (>=6)", "pytest-black (>=
[metadata] [metadata]
lock-version = "2.0" lock-version = "2.0"
python-versions = "^3.9" python-versions = "^3.9"
content-hash = "7bbc4f46a465a2586505b3cf89d87ff3106d81824aef18670b154d71721b53a4" content-hash = "bcd8049e8e3ab7d29de82e32689ad38a84c9f3b9dbc0b2871d2a53f298dfeaa1"

View File

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "planetmint" name = "planetmint"
version = "2.4.6" version = "2.4.7"
description = "Planetmint: The Blockchain Database" description = "Planetmint: The Blockchain Database"
authors = ["Planetmint contributors"] authors = ["Planetmint contributors"]
license = "AGPLv3" license = "AGPLv3"
@ -45,7 +45,7 @@ protobuf = "3.20.2"
planetmint-ipld = ">=0.0.3" planetmint-ipld = ">=0.0.3"
pyasn1 = ">=0.4.8" pyasn1 = ">=0.4.8"
python-decouple = "^3.7" python-decouple = "^3.7"
planetmint-transactions = ">=0.8.0" planetmint-transactions = ">=0.8.1"
asynctnt = "^2.0.1" asynctnt = "^2.0.1"
abci = "^0.8.3" abci = "^0.8.3"