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

Enforce transaction input and outputs limits #340

Merged
merged 3 commits into from
Jun 1, 2022

Conversation

Shramp
Copy link
Contributor

@Shramp Shramp commented May 31, 2022

There is a limit (16) on the number of inputs and outputs for a transaction. This limits is enforced by the mobilecoin lib but not by full service. Right now you could build a transaction in full service using an invalid number of ins/outs and submit it, only to have it fail in consensus. This PR enforces those limits in full service, so that users get better feedback about their transactions before submitting them to consensus.

@briancorbin briancorbin merged commit 8d06d6e into develop Jun 1, 2022
@briancorbin briancorbin deleted the feature/limit-tx-ins-and-outs branch June 1, 2022 22:10
@briancorbin briancorbin added the bug Something isn't working label Jun 5, 2022
briancorbin added a commit that referenced this pull request Jun 13, 2022
* Latest migration tester (#281)

* feature/limit offset optional (#283)

* feature/update-ci-testing (#285)

* Feature/switch-to-github-actions (#289)

* Implement view-key management through CLI. (#290)

* Make .mobconf and rust-toolchain reference mobilecoin submodule (#318)

* Max Spendable MOB (#314)

* Feature/transaction signer service (#282)

* Add faq with precision (#324)

* Add change output for zero change (#323)

* Updating export VO package for normal accounts (#327)

* Docs/fix new updates (#330)

* Feature/vo account balance improvements (#328)

* e2e tests for view only account flow + documentation updates (#333)

* fixed bug (#334)

* Implement offline transaction signing in CLI. (#337)

* updating gitignore (#341)

* Add inputn and output validation (#340)

* new release action (#344)

* Update actions to include ARM64 build (M1 Mac) (#351)

* setting db encryption key earlier (#353)

* Fix linker errors related to openssl on Ubuntu 22.04. (#355)

* Support BlockVersion 0->2 and mc v1.2.0 (#291)

* Upgrade mobilecoin submodule to release 1.2.1. (#357)

* only log tx when Token is MOB (#358)

* Update cargo lock for mc v1.2.1 (#360)

* Get TxLogs by range of blocks (#362)

* setting flags for runners for OpenSSL (#364)

* Fix build issue with macOS runners (#365)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API should enforce max inputs and outputs limit when building transactions (16 currently)
3 participants