You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param string returnOrderId: If set to "head" or "irreversible" the call will wait for the tx to appear in
the head/irreversible block and add the key "orderid" to the tx output
But it used only like a bool
if returnOrderId:
# Make blocking broadcasts
prevblocking = self.blockchain.blocking
self.blockchain.blocking = returnOrderId
tx = self.blockchain.finalizeOp(order, account["name"], "active", **kwargs)
if returnOrderId:
tx["orderid"] = tx["operation_results"][0][1]
self.blockchain.blocking = prevblocking
The text was updated successfully, but these errors were encountered:
Algruun
added a commit
to Algruun/python-bitshares
that referenced
this issue
Jan 17, 2019
This is a rather hacky details.
Basically, the blocking variable is read in transactionsbuilder.TransactionBuilder.broadcast() and results in instanciating blockchain.Blockchain with the value of blocking as mode. That results in the blockchain.BLockchain.blocks() call to only look for blocks that are either "head" (most recent) or "irreversible".
I am open for suggestions to make those more clear and easier to maintain
In annotation returnOrderId is string
But it used only like a bool
The text was updated successfully, but these errors were encountered: