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

Dosable addr #165

Merged
merged 8 commits into from
Mar 30, 2018
Merged

Dosable addr #165

merged 8 commits into from
Mar 30, 2018

Conversation

aastein
Copy link
Contributor

@aastein aastein commented Mar 29, 2018

fixes #79
refs #164

  • added a nonce field to TxCreateDeployment and TxCreateProvider
  • check txs with
    • tenant/owner is a singer
    • nonce is valid
  • generate the address on the node in deliverTx
  • increment account nonce only after successful deliverTx

@aastein aastein requested a review from boz as a code owner March 29, 2018 23:28
repeated ProviderAttribute requirements = 1 [(gogoproto.nullable) = false];
repeated ResourceGroup resources = 2 [(gogoproto.nullable) = false];
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

any name suggestions for this?

Copy link
Contributor

Choose a reason for hiding this comment

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

GroupSpec seems great.

@coveralls
Copy link

coveralls commented Mar 29, 2018

Pull Request Test Coverage Report for Build 214

  • 77 of 139 (55.4%) changed or added relevant lines in 8 files are covered.
  • 3 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.3%) to 64.837%

Changes Missing Coverage Covered Lines Changed/Added Lines %
cmd/akash/marketplace.go 0 2 0.0%
app/deployment/app.go 20 25 80.0%
app/provider/app.go 11 19 57.89%
cmd/akash/provider.go 0 8 0.0%
app/app.go 24 33 72.73%
cmd/akash/deployment.go 0 30 0.0%
Files with Coverage Reduction New Missed Lines %
app/provider/app.go 1 47.92%
app/app.go 1 52.76%
cmd/akash/deployment.go 1 26.74%
Totals Coverage Status
Change from base Build 210: 0.3%
Covered Lines: 3166
Relevant Lines: 4883

💛 - Coveralls

Copy link
Contributor

@boz boz left a comment

Choose a reason for hiding this comment

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

💊

/* begin stub data */
deployment := testutil.Deployment(tenant, nonce)
groups := testutil.DeploymentGroups(deployment.Address, nonce)
groups := testutil.DeploymentGroups(*new(base.Bytes), nonce)
Copy link
Contributor

Choose a reason for hiding this comment

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

testutil.DeploymentAddress(t) if you want.

l := tx.Lease
fmt.Printf("Group %v/%v Lease: %X\n", l.Group, len(groups.GetItems()),
fmt.Printf("Group %v/%v Lease: %X\n", l.Group, len(groups),
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm not sure how how did %X got back in there. use "%v",X(state.FulfillmentID(...))) for these.

// todo: read and parse deployment yaml file

/* begin stub data */
provider := testutil.Provider(tenant, nonce)
provider := testutil.Provider(*new(base.Bytes), nonce)
Copy link
Contributor

Choose a reason for hiding this comment

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

testutil.Address(t)

repeated ProviderAttribute requirements = 1 [(gogoproto.nullable) = false];
repeated ResourceGroup resources = 2 [(gogoproto.nullable) = false];
}

Copy link
Contributor

Choose a reason for hiding this comment

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

GroupSpec seems great.

@aastein aastein merged commit 939d951 into master Mar 30, 2018
@aastein aastein deleted the dosable-addr branch March 30, 2018 01:37
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.

deployment addresses: current scheme is DoS-able
3 participants