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

Minimize use of transactions to advance rounds in #360 #365

Merged
merged 7 commits into from
Jul 28, 2022

Conversation

michaeldiamant
Copy link
Contributor

Extends #360 to propose minimizing use of transactions to advance rounds.

@michaeldiamant michaeldiamant marked this pull request as ready for review July 28, 2022 15:57
@michaeldiamant michaeldiamant requested a review from algochoi July 28, 2022 16:13
@@ -3,7 +3,7 @@
from algosdk import account, constants, encoding, logic
from algosdk.future import transaction
from behave import given, then, when
from tests.steps.other_v2_steps import dev_mode_wait_for_confirmation
import tests.steps.other_v2_steps # Imports MaybeString
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch

Copy link
Contributor

@algochoi algochoi left a comment

Choose a reason for hiding this comment

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

Thanks for the changes! LGTM

Co-authored-by: algochoi <[email protected]>
@michaeldiamant michaeldiamant merged commit 6fd5fd9 into dev-mode-testing Jul 28, 2022
@michaeldiamant michaeldiamant deleted the dev-mode-testing-patch branch July 28, 2022 17:08
algochoi added a commit that referenced this pull request Aug 1, 2022
* Revise tests

* Revise and delete v1 algod steps and add devmode helpers

* Change testing branch

* Formatting

* Use randint instead of randbytes due to 3.8 support

* Revert "Revise and delete v1 algod steps and add devmode helpers"

This reverts commit d951d75.

* Make v1 tests work again

* Change testing branch

* Delete debug print statements

* Increase timeout and add back imports

* Change circle configs to increase timeout

* Delete v1 integration tests just to see passing CI

* Revert v1 tests and add wait times

* Change how txids are retrieved

* Fix v1 steps again

* Use v1 functions

* Try fixing v1 tests

* Skip v1 step when waiting for certain transactions to go through

* Revert no output in CI

* Disable v1 rekey test and some flaky v1 algod functions on dev mode

* Delete redundant assert

* Initialize dev mode accounts to prevent rekeying woes

* Refactor some names and delete extra unused lines

* Add some comments, refactor some variables, and change wait rounds to 1 in dev mode

* Add env variable to use dev mode network

* Rekey in separate account

* Fix amounts to proportional amount and rename burn txns

* Isolate dev account in v2 tests

* Lower initial dev mode algo limit to avoid overspending

* Minimize use of transactions to advance rounds in #360 (#365)

* Wait for blocks using sleep instead of relying on status_after v1 api

* Lets do some formatting

* Bring back transaction check in v1 step

* Revert setting network in run_integration script

* Rename rekeying integ test

* Revert branch back to master

Co-authored-by: Michael Diamant <[email protected]>
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.

2 participants