From a5b79a152b2b2e7e450734db168a998436cd19a7 Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Tue, 5 Jul 2022 20:43:27 +0530 Subject: [PATCH] Update parameters --- src/backend/address_generator.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/backend/address_generator.py b/src/backend/address_generator.py index 2db93d2f..89e5e006 100644 --- a/src/backend/address_generator.py +++ b/src/backend/address_generator.py @@ -4,14 +4,15 @@ Common methods and functions for kivy and qt. import queues from bmconfigparser import BMConfigParser - +from defaults import networkDefaultProofOfWorkNonceTrialsPerByte, networkDefaultPayloadLengthExtraBytes class AddressGenerator: @staticmethod def random_address_generation( label, streamNumberForAddress=1, eighteenByteRipe=False, - nonceTrialsPerByte=1000, payloadLengthExtraBytes=1000 + nonceTrialsPerByte=networkDefaultProofOfWorkNonceTrialsPerByte, + payloadLengthExtraBytes=networkDefaultPayloadLengthExtraBytes ): """"Return True if the label is unique""" labels = [BMConfigParser().get(obj, 'label') @@ -37,5 +38,5 @@ class AddressGenerator: elif label: instance.error = False else: - instance.error = False + instance.error = True instance.helper_text = 'This field is required'