pyzcto.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:pyzcto 作者: miguelmarco 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号