Turned off (expensive) PySerum check of transaction size - now running just with our own cheaper/faster version.

This commit is contained in:
Geoff Taylor 2021-11-23 11:25:54 +00:00
parent 95acb782f7
commit 4bba5cb238
1 changed files with 2 additions and 2 deletions

View File

@ -70,8 +70,8 @@ def _split_instructions_into_chunks(context: Context, signers: typing.Sequence[K
# ```
#
class CombinableInstructions():
# For now let's run both checks to ensure our calculations are accurate.
__check_transaction_size_with_pyserum = True
# A toggle to run both checks to ensure our calculations are accurate.
__check_transaction_size_with_pyserum = False
def __init__(self, signers: typing.Sequence[Keypair], instructions: typing.Sequence[TransactionInstruction]) -> None:
self.logger: logging.Logger = logging.getLogger(self.__class__.__name__)