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

Integrate Construction API 2.0 #120

Merged
merged 13 commits into from
Sep 1, 2020
Merged

Conversation

patrick-ogrady
Copy link
Contributor

@patrick-ogrady patrick-ogrady commented Aug 25, 2020

Related Issue: #112
Blocking PR: coinbase/mesh-sdk-go#118

Changes

  • remove default configuration for construction in configuration
  • integrate rosetta-sdk-go/constructor
  • add script to validate that example configuration files are correct
  • update configuration files (add back Bitcoin in future PR)

@patrick-ogrady patrick-ogrady mentioned this pull request Aug 25, 2020
30 tasks
@coveralls
Copy link

coveralls commented Aug 25, 2020

Pull Request Test Coverage Report for Build 4357

  • 19 of 33 (57.58%) changed or added relevant lines in 1 file are covered.
  • 6 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+9.07%) to 84.043%

Changes Missing Coverage Covered Lines Changed/Added Lines %
configuration/configuration.go 19 33 57.58%
Files with Coverage Reduction New Missed Lines %
configuration/configuration.go 6 84.04%
Totals Coverage Status
Change from base Build 4322: 9.07%
Covered Lines: 158
Relevant Lines: 188

💛 - Coveralls

@patrick-ogrady patrick-ogrady changed the title [WIP] Integrate Construction API 2.0 Integrate Construction API 2.0 Aug 31, 2020
func (c *ConstructorHelper) AllAddresses(ctx context.Context) ([]string, error) {
return c.keyStorage.GetAllAddresses(ctx)
// BroadcastAll attempts to broadcast all ready transactions.
func (c *CoordinatorHelper) BroadcastAll(
Copy link
Contributor

Choose a reason for hiding this comment

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

How does this method handle partial failures, i.e. if one broadcast fails, does the subsequent one also fails or it will continue broadcasting?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@qiwu7 qiwu7 left a comment

Choose a reason for hiding this comment

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

Left a question. But looks good 🔥

@patrick-ogrady patrick-ogrady merged commit 1a222ef into master Sep 1, 2020
@patrick-ogrady patrick-ogrady deleted the patrick/new-construction-api branch September 1, 2020 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants