diff --git a/graphenecommon/transactionbuilder.py b/graphenecommon/transactionbuilder.py index a278cc6c..19a683a9 100644 --- a/graphenecommon/transactionbuilder.py +++ b/graphenecommon/transactionbuilder.py @@ -450,14 +450,17 @@ def broadcast(self): :param tx tx: Signed transaction to broadcast """ # Cannot broadcast an empty transaction - if not self._is_signed(): - self.sign() - if "operations" not in self or not self["operations"]: return + # Sign if not signed + if not self._is_signed(): + self.sign() + + # Obtain JS ret = self.json() + # Debugging mode does not broadcast if self.blockchain.nobroadcast: log.warning("Not broadcasting anything!") self.clear()