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)
|
||||
SessionBase.release_session(session)
|
||||
raise TxStateChangeError('FUBAR cannot be set on an entry with an error state already set ({})'.format(status))
|
||||
if not self.status & StatusBits.RESERVED:
|
||||
status = status_str(self.status)
|
||||
SessionBase.release_session(session)
|
||||
raise TxStateChangeError('FUBAR on tx that has not been RESERVED ({})'.format(status))
|
||||
|
||||
# if not self.status & StatusBits.RESERVED:
|
||||
# status = status_str(self.status)
|
||||
# SessionBase.release_session(session)
|
||||
# raise TxStateChangeError('FUBAR on tx that has not been RESERVED ({})'.format(status))
|
||||
|
||||
self.__set_status(StatusBits.UNKNOWN_ERROR | StatusBits.FINAL, 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()
|
||||
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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user