Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#365 remove prflight check #411

Merged
merged 27 commits into from
Jan 5, 2022
Merged

#365 remove prflight check #411

merged 27 commits into from
Jan 5, 2022

Conversation

otselnik
Copy link
Contributor

@otselnik otselnik commented Dec 27, 2021

New RETRY_ON_BLOCKED variable defining count of retries on blocked accounts. In environment.py it is set to a minimum of 1.
Removed RuntimeError from confirm_multiple_transactions.
collect_results and collect_result now return response["result"]. And all corresponding changes by removing ['result']
Write sent by packs of 20.
CombinedContinue sent by 16.
Iterative execution performed By trying to send bucked. If got error of blocked or steps exceeded - retry until success and than go back to bucked send. If there were no errors or result retry bucked.
If got error and no succec transactions sent just return error. If were success trxs try cancel.

@otselnik otselnik self-assigned this Dec 27, 2021
@otselnik otselnik requested a review from s-medvedev December 27, 2021 00:29
otselnik pushed a commit that referenced this pull request Dec 27, 2021
* impl

* fix emulate call

* set temporary evm_loader branch

* fix last commit

* temporary commit: set evm_loader version

* fix emulate

* Revert "temporary commit: set evm_loader version"

This reverts commit 2383212.

* Revert "fix last commit"

This reverts commit c51e198.

* Revert "set temporary evm_loader branch"

This reverts commit 5bb8c77.
@otselnik otselnik requested a review from ivandzen December 30, 2021 08:59
try_one_step = False
found_errors = False

logger.debug(f"Send bucked combined: {self.instruction_type}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean 'bucket'?

@@ -131,13 +130,10 @@ def _getAccountData(self, account, expected_length, owner=None):
def send_transaction(self, trx, eth_trx, reason=None):
for _i in range(RETRY_ON_FAIL):
reciept = self.send_transaction_unconfirmed(trx)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we catch exception here? send_transaction_unconfirmed still can throw error

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only caught "could not confirm transaction" exception which is removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If send_transaction_unconfirmed throws so be it.

@ivandzen ivandzen merged commit a9360eb into develop Jan 5, 2022
@afalaleev afalaleev deleted the 365_remove_prflight_check branch April 28, 2022 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants