Skip to content

Conversation

@tsachiherman
Copy link
Contributor

Summary

Rebase transaction sync with master

Test Plan

Use existing tests

tsachiherman and others added 30 commits March 12, 2021 10:25
Provide a fallback to use the default consensus parameters in case the agreement is running ahead of the ledger.
Most of the new TEAL 3 features already work with the debugger, but a few changes were needed to make the new array fields display properly on the Chrome frontend.
expand unit test
e2e test runner : skip printing the logs when program is in terminated state.
Based on review comments, pushing down these for more fine tuned configuration and to eliminate the reuse of the fetcher.
algonautshant and others added 24 commits March 18, 2021 01:20
The functions are removed, and all supporting fields.
Tests that relied on them are updated to use alternative means for wating whenever necessary.
…etcher

Use the peer selector as part of the catchup service implementation in order to support archiver nodes.
I discovered that algorand#1004 accidentally changed the `total-transactions` field in the `getPendingTransactions` handler function. That value is supposed to be the total number of pending transactions, but currently it is only the number of transactions returned by the current API call. I've fixed this and improved the names of local variables to make this easier to see.

While testing this, I also discovered a bug with the `max` parameter. When set to 0, `getPendingTransactions` should return all pending transactions. The current behavior is correct when there is no `max` query param in the API request, but when explicitly setting `max` to 0 (i.e.`/v2/transactions/pending?max=0`) the endpoint always returns 0 transactions.

Since the documentation states `If max=0, returns all pending txns`, I believe this is undesirable so I've also fixed this.
Avoid allocation of memory in subsequent calls to Test, and Set.
@tsachiherman tsachiherman requested a review from brianolson March 18, 2021 19:34
@tsachiherman tsachiherman self-assigned this Mar 18, 2021
@tsachiherman tsachiherman merged commit 16686e4 into algorand:feature/txnsync Mar 18, 2021
@tsachiherman tsachiherman deleted the tsachi/rebase2 branch March 18, 2021 21:42
tsachiherman added a commit to tsachiherman/go-algorand that referenced this pull request Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants