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

Support Protobuf and gRPC #3443

Merged
merged 84 commits into from
Apr 4, 2023
Merged
Show file tree
Hide file tree
Changes from 72 commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
330e9ca
feat: add grpc support
aoudiamoncef Jan 18, 2023
8161d9b
feat: add send_blocks method
aoudiamoncef Mar 2, 2023
4f8b4eb
feat: add send_operations
aoudiamoncef Mar 3, 2023
1a9fb82
feat: add send_endorsements
aoudiamoncef Mar 3, 2023
9278c73
feat: add get_datastore_entries
aoudiamoncef Mar 4, 2023
96308b5
feat: add get_selector_draws
aoudiamoncef Mar 6, 2023
1f9ad5b
refactor: cleaning after draft review
aoudiamoncef Mar 7, 2023
01a0012
refactor: get_datastore_entries
aoudiamoncef Mar 7, 2023
ada903c
refactor: improve error handling
aoudiamoncef Mar 7, 2023
120d394
doc: add readme
aoudiamoncef Mar 7, 2023
c2e63cb
add small timeout for starting grpc api
Mar 8, 2023
775e172
fix(grpc) : spawn grpc serve
Mar 8, 2023
3234e4f
fix(fmt) : format proto file
Mar 9, 2023
3a31803
refactor(grpc) : first step of splitting api
Mar 9, 2023
1f52e86
refactor(grpc) : refactor send_blocks
Mar 9, 2023
0b2eb66
refactor(grpc) : create module stream and move send_blocks.rs to sepa…
Mar 9, 2023
80500aa
refactor(grpc) : rename message -> result and result -> ok for SendBl…
Mar 9, 2023
356ef99
refactor(grpc) : split send_endorsements and send_operations
Mar 10, 2023
2d89a72
feat(grpc) : impl get_next_block_best_parents (#3674)
modship Mar 13, 2023
9148950
implement get_transactions_throughput (#3683)
modship Mar 14, 2023
4fb58f8
implement get_blocks_by_slots (#3686)
modship Mar 15, 2023
5e35f7f
feat(grpc): implement subscribe_new_operations with filter (#3690)
modship Mar 17, 2023
74f216e
feat: add starting server(s) messages
aoudiamoncef Mar 23, 2023
58d0820
feat: add complete server settings
aoudiamoncef Mar 23, 2023
33be756
feat(grpc) : impl new_blocks
Mar 24, 2023
89d2196
refactor : rename SubscribeNewOperations to NewOperations
Mar 24, 2023
4c20005
replace uint by fixed
Mar 24, 2023
42709da
refactor: new blocks
aoudiamoncef Mar 24, 2023
983d973
feat: add new blocks headers
aoudiamoncef Mar 24, 2023
6f514f8
feat: new filled blocks
aoudiamoncef Mar 24, 2023
1d9d74f
rename subscribe_tx_throughput
Mar 27, 2023
3215551
refactor: the great reset
aoudiamoncef Mar 27, 2023
16bf93b
refactor: remove useless code + document slot.proto
aoudiamoncef Mar 27, 2023
c633441
rename BestParentTuple to Parents
Mar 27, 2023
f930cf8
refactor: clean and document endorsement.proto
aoudiamoncef Mar 27, 2023
0580fdd
test(grpc): add test
Mar 27, 2023
d2710ad
refactor: add complete doc and enhance
aoudiamoncef Mar 27, 2023
5f6e0b6
fix: lint
aoudiamoncef Mar 28, 2023
2f32597
refactor: disable grpc by default
aoudiamoncef Mar 28, 2023
ced0fea
doc: add comments
aoudiamoncef Mar 28, 2023
f761d1e
build: fix tonic version
aoudiamoncef Mar 28, 2023
eb21fef
refactor: doc + enhancements
aoudiamoncef Mar 28, 2023
cd6cb8a
refactor: normalize new operations filter
aoudiamoncef Mar 28, 2023
1a44c59
Apply suggestions from code review
modship Mar 29, 2023
219fa6e
refactor(grpc): use from impl on SecureShareEndorsement for get_block…
Mar 29, 2023
eba681e
fix: small issues
aoudiamoncef Mar 29, 2023
72c049f
fix: api config
aoudiamoncef Mar 29, 2023
fa6b6a7
refactor(grpc) : remove clone and variable
Mar 29, 2023
1185339
refactor(grpc) : remove cast
Mar 29, 2023
9207838
fix: small issues
aoudiamoncef Mar 29, 2023
21f5015
fix: some issues from PR
aoudiamoncef Mar 29, 2023
5d5f7b0
Merge branch 'testnet_21' into feature/testnet-19-grpc
Mar 29, 2023
be86847
fix: small issues from PR
aoudiamoncef Mar 30, 2023
95131d5
Merge branch 'testnet_21' into feature/testnet-19-grpc
aoudiamoncef Mar 30, 2023
2856a6d
ci: try to save the planete
aoudiamoncef Mar 30, 2023
0d4834f
ci: concurrency test
aoudiamoncef Mar 30, 2023
93e557e
ci: concu test
aoudiamoncef Mar 30, 2023
90fc3e3
ci: fix concurrency group
aoudiamoncef Mar 30, 2023
736c9c4
doc: remove api
aoudiamoncef Mar 30, 2023
cee0863
refactor is_filtered in new_operations
Mar 30, 2023
40d08b0
remove import
Mar 30, 2023
17709db
doc: add complete doc and licence headers
aoudiamoncef Mar 30, 2023
275dc5f
fix: fmt and try auto CI cancel
aoudiamoncef Mar 30, 2023
ebe8b83
refactor(grpc) : rename service -> server and MassaGrpcService -> Mas…
Mar 31, 2023
675ac0e
refactor(grpc): pr review
Mar 31, 2023
06ce787
refactor(grpc) : rename THROUGHPUT_INTERVAL to DEFAULT_THROUGHPUT_INT…
Mar 31, 2023
d435bc2
refactor(grpc) : remove match in new_operations.rs (use From impl)
Mar 31, 2023
59a054b
refactor(grpc) : improve code
Mar 31, 2023
936e239
fix: smells + docs
aoudiamoncef Mar 31, 2023
7870e85
fix: doc lints for private items
aoudiamoncef Mar 31, 2023
b8fd9d6
fix: all lints + issues
aoudiamoncef Mar 31, 2023
206c747
fix: doctest + remove buf
aoudiamoncef Mar 31, 2023
d48b7c7
fix: test issue
aoudiamoncef Mar 31, 2023
3e46631
Merge branch 'testnet_21' into feature/testnet-19-grpc
aoudiamoncef Mar 31, 2023
6c4ee8f
doc: proto + readme
aoudiamoncef Apr 3, 2023
51e5a38
improve vector allocation
Apr 3, 2023
5c3e38f
Merge branch 'testnet_21' into feature/testnet-19-grpc
aoudiamoncef Apr 3, 2023
c3cb282
Merge branch 'testnet_21' into feature/testnet-19-grpc
aoudiamoncef Apr 3, 2023
5cf69ed
Merge branch 'testnet_21' into feature/testnet-19-grpc
aoudiamoncef Apr 3, 2023
d92630c
refactor: doc + tuto + readme
aoudiamoncef Apr 3, 2023
159bcc0
refactor: config broadcast + debug error
aoudiamoncef Apr 3, 2023
f83cfda
Merge branch 'testnet_21' into feature/testnet-19-grpc
aoudiamoncef Apr 3, 2023
94f7da2
fix: grpc test issue
aoudiamoncef Apr 3, 2023
ef194cb
fix: fmt issue
aoudiamoncef Apr 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
release:
strategy:
Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ env:
RUST_BACKTRACE: full
RUSTFLAGS: "--deny warnings"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# Quick tests on each commit/PR
sanity:
Expand Down Expand Up @@ -56,6 +60,10 @@ jobs:
with:
shared-key: "check"
save-if: ${{ github.ref_name == 'testnet_21' }}
- uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: check
Expand All @@ -79,6 +87,10 @@ jobs:
with:
shared-key: "clippy"
save-if: ${{ github.ref_name == 'testnet_21' }}
- uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -109,6 +121,10 @@ jobs:
with:
shared-key: "massa"
save-if: ${{ github.ref_name == 'testnet_21' }}
- uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: install
Expand Down Expand Up @@ -181,10 +197,14 @@ jobs:
with:
shared-key: "doc"
save-if: ${{ github.ref_name == 'testnet_21' }}
- uses: arduino/setup-protoc@v1
with:
version: '3.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps
args: --no-deps --all-features --document-private-items
- uses: JamesIves/github-pages-deploy-action@4.1.7
with:
branch: gh-pages
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
security_audit:
runs-on: ubuntu-latest
Expand Down
Loading