Esempio n. 1
0
 def get_cost_for_certificate_batch(self, dust_threshold, recommended_fee_per_transaction, satoshi_per_byte,
                                    allow_transfer):
     num_certificates = len(self.certificates_to_issue)
     num_outputs = Issuer.get_num_outputs(num_certificates)
     return Issuer.get_cost_for_certificate_batch(dust_threshold, recommended_fee_per_transaction,
                                                  satoshi_per_byte, num_outputs, allow_transfer, num_certificates,
                                                  num_certificates)
Esempio n. 2
0
 def get_cost_for_certificate_batch(self, dust_threshold, recommended_fee_per_transaction, satoshi_per_byte,
                                    allow_transfer):
     '''
     Per certificate, we pay 2*min_per_output (which is based on dust) + fee. Note assumes 1 input
     per tx. We may also need to pay additional fees for splitting into temp addresses
     '''
     num_certificates = len(self.certificates_to_issue)
     num_outputs = Issuer.get_num_outputs(num_certificates)
     return Issuer.get_cost_for_certificate_batch(dust_threshold, recommended_fee_per_transaction, satoshi_per_byte,
                                                  num_outputs, allow_transfer, 1, 1)
Esempio n. 3
0
 def get_cost_for_certificate_batch(self, allow_transfer):
     """
     Per certificate, we pay 2*min_per_output (which is based on dust) + fee. Note assumes 1 input
     per tx. We may also need to pay additional fees for splitting into temp addresses
     :param allow_transfer:
     :return:
     """
     num_certificates = len(self.certificates_to_issue)
     num_outputs = Issuer.get_num_outputs(num_certificates)
     return Issuer.get_cost_for_certificate_batch(num_outputs,
                                                  allow_transfer)