def importmultisig(self):
n = self.spinBox_multisign.value()
addresses = str(self.plainTextEdit_multisigkeys.toPlainText()).splitlines()
for i in range(len(addresses)):
if addresses[i] in self.pubkeys:
addresses[i] = self.pubkeys[addresses[i]]
self.pushButton_importmultisig.setEnabled(False)
res = self.callzcash('addmultisigaddress', [n,addresses])
multisigaddress = str(self.lineEdit_multisigaddress.text())
messagebox = QMessageBox()
messagebox.setText("Importing address.\n\nDo you want to rescan the blockchain? \n\n Rescanning the blockchain allows to use the funds sent to the multisig address before this moment but will take several minutes. The program will be irresponsive during that time.\n\n If you don't rescan the blockchain, you will still be able to create payment orders for the funds that will be received in the future, or to sign orders created by other signers.")
messagebox.setWindowTitle("")
messagebox.setStandardButtons(QMessageBox.Yes | QMessageBox.No)
rescan = messagebox.exec_() == QMessageBox.Yes
self.callzcash('importaddress', [multisigaddress, "", rescan])
self.update()
评论列表
文章目录