Skip to content
Snippets Groups Projects
Commit 704e5b2c authored by inso's avatar inso
Browse files

Fix bugs

parent cff4d374
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ class Connection:
password = attr.ib(init=False, convert=str, default="", cmp=False, hash=False)
def title(self):
return self.uid + "[" + self.pubkey[:7] + "]@" + self.currency
return "@".join([self.uid, self.pubkey[:11]])
@property
def scrypt_params(self):
......
......@@ -64,14 +64,14 @@ class DividendsProcessor:
for tx in transactions:
txdoc = Transaction.from_signed_raw(tx.raw)
for input in txdoc.inputs:
if input.source == "D" and input.origin_id == identity.pubkey and input.index not in block_numbers:
block = await self._bma_connector.get(identity.currency,
if input.source == "D" and input.origin_id == connection.pubkey and input.index not in block_numbers:
block = await self._bma_connector.get(connection.currency,
bma.blockchain.block, req_args={'number': input.index},
verify=False)
await asyncio.sleep(0.5)
dividend = Dividend(currency=identity.currency,
pubkey=identity.pubkey,
dividend = Dividend(currency=connection.currency,
pubkey=connection.pubkey,
block_number=input.index,
timestamp=block["medianTime"],
amount=block["dividend"],
......
......@@ -168,6 +168,7 @@ class TransferController(QObject):
self.view.accept()
else:
await self.view.show_error(self.model.notifications(), result[1])
self.model.app.new_transfer.emit(transaction)
QApplication.restoreOverrideCursor()
self.view.button_box.setEnabled(True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment