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

Merge master into amm #3901

Merged
merged 3 commits into from
Sep 9, 2021
Merged

Merge master into amm #3901

merged 3 commits into from
Sep 9, 2021

Conversation

bartekn
Copy link
Contributor

@bartekn bartekn commented Sep 9, 2021

Would be great to test e011c91 in futurenet.

leighmcculloch and others added 3 commits September 7, 2021 14:48
…umpTransaction, GenericTransaction (#3897)

Implement `encoding.TextMarshaler` and `encoding.TextUnmarshaler` in `Transaction`, `FeeBumpTransaction`, `GenericTransaction`.

Transaction, FeeBumpTransaction, and GenericTransaction all have well defined formats for serialization as strings. It would be convenient if these types were automatically serializable via encoders such as the `encoding/json` package.

Constructors for GenericTransaction are added so that code building Transaction and FeeBumpTransaction can get a GenericTransaction for those built transactions, for setting in a field that can hold both, in a type supporting serialization.
…r to indicate support (#3891)

Allow the `Fund` function to submit a fund request to any horizon instance, not just the instance defined by `horizonclient.DefaultTestNetClient`, and rely on the horizon instance responding with a 404 as an indicator that funding is not supported.

The only way to construct a `horizonclient.Client` that supports the `Fund` operation is to use and mutate the `horizonclient.DefaultTestNetClient`. This is unnecessarily restrictive because a developer may wish to use the `Fund` operation with a non-default client that they have constructed themselves, or they may wish to use the `Fund` operation with their own private or standalone test network.
…edger update methods (#3900)

This commit splits `UpdateLedgerState` into `UpdateCoreLedgerState` and
`UpdateHorizonLedgerState` which update Core and Horizon ledger state
separately. It also changes `Tick` frequency to 5 seconds.

If Stellar-Core is unresponsive the call to Stellar-Core `/info` endpoint  will
be cancelled after 10 seconds but it will also return entire `UpdateLedgerState`
method. This will make Horizon ledger stats out of date which can affect
streaming (because streams are updated only when Horizon ledger in
`ledger.Status` is incremented).

Known limitations: with this change it's possible that Horizon root can report
Core ledger sequence behind Horizon.
@bartekn bartekn requested a review from a team September 9, 2021 11:43
@bartekn
Copy link
Contributor Author

bartekn commented Sep 9, 2021

Looks like test_and_publish_verify_range_docker_image job is broken. Going to check it and fix in another PR.

@bartekn bartekn merged commit 3b1e4fe into amm Sep 9, 2021
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