Remove reserved status requirements for fubar state set
This commit is contained in:
parent
2761e8851e
commit
e5c8af1aaa
@ -168,11 +168,10 @@ class Otx(SessionBase):
|
|||||||
status = status_str(self.status)
|
status = status_str(self.status)
|
||||||
SessionBase.release_session(session)
|
SessionBase.release_session(session)
|
||||||
raise TxStateChangeError('FUBAR cannot be set on an entry with an error state already set ({})'.format(status))
|
raise TxStateChangeError('FUBAR cannot be set on an entry with an error state already set ({})'.format(status))
|
||||||
if not self.status & StatusBits.RESERVED:
|
# if not self.status & StatusBits.RESERVED:
|
||||||
status = status_str(self.status)
|
# status = status_str(self.status)
|
||||||
SessionBase.release_session(session)
|
# SessionBase.release_session(session)
|
||||||
raise TxStateChangeError('FUBAR on tx that has not been RESERVED ({})'.format(status))
|
# raise TxStateChangeError('FUBAR on tx that has not been RESERVED ({})'.format(status))
|
||||||
|
|
||||||
|
|
||||||
self.__set_status(StatusBits.UNKNOWN_ERROR | StatusBits.FINAL, session)
|
self.__set_status(StatusBits.UNKNOWN_ERROR | StatusBits.FINAL, session)
|
||||||
self.__reset_status(StatusBits.QUEUED | StatusBits.RESERVED, session)
|
self.__reset_status(StatusBits.QUEUED | StatusBits.RESERVED, session)
|
||||||
|
@ -76,7 +76,7 @@ def create(chain_spec, nonce, holder_address, tx_hash, signed_tx, obsolete_prede
|
|||||||
|
|
||||||
session.commit()
|
session.commit()
|
||||||
SessionBase.release_session(session)
|
SessionBase.release_session(session)
|
||||||
logg.debug('queue created nonce {} from {} hash {}'.format(nonce, holder_address, tx_hash))
|
logg.debug('queue created nonce {} from {} hash {} tx {}'.format(nonce, holder_address, tx_hash, signed_tx))
|
||||||
return tx_hash
|
return tx_hash
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = chainqueue
|
name = chainqueue
|
||||||
version = 0.0.6rc3
|
version = 0.0.6rc4
|
||||||
description = Generic blockchain transaction queue control
|
description = Generic blockchain transaction queue control
|
||||||
author = Louis Holbrook
|
author = Louis Holbrook
|
||||||
author_email = dev@holbrook.no
|
author_email = dev@holbrook.no
|
||||||
|
Loading…
Reference in New Issue
Block a user