missing status string call in db modules otx

This commit is contained in:
lash 2022-04-20 08:57:57 +00:00
parent c4e58ad784
commit 4612984269
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 3 additions and 1 deletions

View File

@ -238,9 +238,11 @@ class Otx(SessionBase):
SessionBase.release_session(session)
raise TxStateChangeError('OVERRIDDEN/OBSOLETED cannot be set on an entry with FINAL state set ({})'.format(status))
if self.status & StatusBits.IN_NETWORK:
status = status_str(self.status)
SessionBase.release_session(session)
raise TxStateChangeError('OVERRIDDEN/OBSOLETED cannot be set on an entry already IN_NETWORK ({})'.format(status))
if self.status & StatusBits.OBSOLETE:
status = status_str(self.status)
SessionBase.release_session(session)
raise TxStateChangeError('OVERRIDDEN/OBSOLETED cannot be set on an entry already OBSOLETE ({})'.format(status))

View File

@ -1,6 +1,6 @@
[metadata]
name = chainqueue
version = 0.0.6rc7
version = 0.0.6rc8
description = Generic blockchain transaction queue control
author = Louis Holbrook
author_email = dev@holbrook.no