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

refactor: split up app grpc proto files #4466

Merged
merged 1 commit into from
Aug 18, 2022

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Aug 15, 2022

Description

Splits up types.proto into transaction.proto, block.proto and sidechain_types.proto

Motivation and Context

types.proto had many somewhat unrelated types that could be better split up which makes them more maintainable.
It also makes it clear what types each protobuf service interface requires.

How Has This Been Tested?

Code compiles and tests pass

@sdbondi sdbondi force-pushed the apps-grpc-split-up branch from 1e8a57a to 4613652 Compare August 15, 2022 08:20
@sdbondi
Copy link
Member Author

sdbondi commented Aug 15, 2022

Draft for now as #4463 should go in first and I'll resolve conflicts. Ready

@sdbondi sdbondi force-pushed the apps-grpc-split-up branch from 4613652 to a5f6727 Compare August 16, 2022 11:01
@sdbondi sdbondi marked this pull request as ready for review August 16, 2022 11:01
@stringhandler stringhandler merged commit 9fc2dd2 into tari-project:development Aug 18, 2022
@sdbondi sdbondi deleted the apps-grpc-split-up branch August 18, 2022 07:30
stringhandler pushed a commit that referenced this pull request Aug 29, 2022
Description
---
- adds CodeTemplateRegistration output type
- adds TemplateRegistration to SideChainFeatures
- add grpc methods for registering a code template

Motivation and Context
--- 
Code templates need to be committed to on L1.

The `binary_url` and `repo_url` fields are not validated by base node consensus because: 
1. The rust implementation of Multiaddr does not currently support paths in http addresses e.g. `/dns4/github.com/tcp/443/http/tari-project/tari.git` is not well-formed however [the spec](https://multiformats.io/multiaddr/) says it should be.
2. Url parsing is complex and adding it to consensus code could introduce bugs (general/security/DoS)

Depends on #4466 
Depends on #4496 

How Has This Been Tested?
---
TODO: add cucumber tests for this output type
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.

2 participants