Skip to content
Open
Show file tree
Hide file tree
Changes from 126 commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
9fb0368
Add naive service with test
MitchTurner Sep 1, 2025
d695469
Return a BoxStream instead of just sending over channel
MitchTurner Sep 1, 2025
8384238
Cleanup
MitchTurner Sep 1, 2025
db993bf
Add failing test
MitchTurner Sep 1, 2025
17ac53c
Add test for receiving new block
MitchTurner Sep 3, 2025
77d64ef
Cleanup
MitchTurner Sep 3, 2025
ad951b9
Lint
MitchTurner Sep 3, 2025
267ce07
Add query for current height to allow checking the progress
MitchTurner Sep 3, 2025
78f1ee0
Remove commented code
MitchTurner Sep 3, 2025
90867f8
Update CHANGELOG
MitchTurner Sep 3, 2025
f6d2fdb
Fix privacy of constructor
MitchTurner Sep 3, 2025
e612ea2
Improve tests, fix flake
MitchTurner Sep 3, 2025
489e74c
Remove commented code
MitchTurner Sep 3, 2025
56f4eb0
Remove unnecessary task spawn
MitchTurner Sep 4, 2025
7216d38
Update crates/services/block_aggregator_api/src/lib.rs
MitchTurner Sep 4, 2025
5119ab9
Update crates/services/block_aggregator_api/Cargo.toml
MitchTurner Sep 4, 2025
dc4f1aa
use futures instead of future-utils
MitchTurner Sep 4, 2025
720694a
Fix Debug impl and only use in test
MitchTurner Sep 4, 2025
e1a7305
Add assoc type for block response to allow for a variety of types
MitchTurner Sep 4, 2025
51b7268
Lin toml
MitchTurner Sep 4, 2025
389c46b
Add example block range response type
MitchTurner Sep 4, 2025
a12da43
Add documentation
MitchTurner Sep 4, 2025
541b71b
Re-add debug impl for everyone
MitchTurner Sep 4, 2025
5236bee
WIP add bare adapter
MitchTurner Sep 3, 2025
146812e
Fix compilation
MitchTurner Sep 4, 2025
995c6e1
Add failing test
MitchTurner Sep 4, 2025
cedacfc
Remove commented code
MitchTurner Sep 4, 2025
930b465
WIP
MitchTurner Sep 4, 2025
71b5d12
Use `BlockHeight` instead of `u64`
MitchTurner Sep 4, 2025
b9c6ead
Merge branch 'chore/add-block-aggregator-service' into chore/block-ag…
MitchTurner Sep 4, 2025
325de73
Add failing test
MitchTurner Sep 4, 2025
ced1c10
Wip add get_block_range test
MitchTurner Sep 5, 2025
fce4c3c
Add a custom stream that gets the job done. Maybe not performant
MitchTurner Sep 5, 2025
9540a5f
Merge branch 'master' into chore/add-block-aggregator-service
MitchTurner Sep 8, 2025
8c56749
Merge branch 'chore/add-block-aggregator-service' into chore/block-ag…
MitchTurner Sep 8, 2025
eb280c7
Use view for stream of db data
MitchTurner Sep 8, 2025
8d178e1
Cleanup
MitchTurner Sep 8, 2025
571691f
Add changelog, spellcheck, lint
MitchTurner Sep 9, 2025
5797130
Basic
MitchTurner Sep 9, 2025
119af9b
Appease Clippy-sama
MitchTurner Sep 9, 2025
b738793
Remove commented code
MitchTurner Sep 9, 2025
3bd552b
Merge branch 'chore/block-aggregator-db-adapter' into chore/add-apdap…
MitchTurner Sep 9, 2025
6649ac6
Add tests for get_current_height indirectly
MitchTurner Sep 9, 2025
0bb38ef
Merge branch 'chore/block-aggregator-db-adapter' into chore/add-apdap…
MitchTurner Sep 9, 2025
010e111
Remove unnecessary clone
MitchTurner Sep 9, 2025
8e0619b
Merge branch 'chore/block-aggregator-db-adapter' into chore/add-apdap…
MitchTurner Sep 9, 2025
dab98e2
Add block subscription code
MitchTurner Sep 9, 2025
358a242
Appease Clippy-sama
MitchTurner Sep 9, 2025
e393cc4
Merge branch 'chore/block-aggregator-db-adapter' into chore/add-apdap…
MitchTurner Sep 9, 2025
0b7aaa5
Fix imports
MitchTurner Sep 9, 2025
0a17d3c
Update CHANGELOG
MitchTurner Sep 9, 2025
d0f2c81
fmt
MitchTurner Sep 9, 2025
95a38fc
Add old block test
MitchTurner Sep 9, 2025
81194d4
Add drain method to source
MitchTurner Sep 10, 2025
00ce90b
Merge branch 'chore/add-block-aggregator-service' into chore/block-ag…
MitchTurner Sep 10, 2025
3b2931b
Merge branch 'chore/block-aggregator-db-adapter' into chore/add-apdap…
MitchTurner Sep 10, 2025
15b3733
Add doc
MitchTurner Sep 10, 2025
17030c0
Merge branch 'chore/add-block-aggregator-service' into chore/block-ag…
MitchTurner Sep 10, 2025
6c690a9
Merge branch 'chore/block-aggregator-db-adapter' into chore/add-apdap…
MitchTurner Sep 10, 2025
41343c2
Remove empty mod
MitchTurner Sep 10, 2025
6a16f99
Merge remote-tracking branch 'origin' into chore/block-aggregator-db-…
MitchTurner Sep 10, 2025
db77caf
Merge branch 'chore/block-aggregator-db-adapter' into chore/add-apdap…
MitchTurner Sep 10, 2025
2fa9b2c
WIP add new adapter
MitchTurner Sep 10, 2025
53b2b18
Get test passing
MitchTurner Sep 10, 2025
2d44731
Refactor
MitchTurner Sep 10, 2025
e9a04b5
Add db to task generics
MitchTurner Sep 10, 2025
67e63af
Add more for dbs
MitchTurner Sep 10, 2025
ba51463
Get basic db sync test working
MitchTurner Sep 12, 2025
145b94d
Include tx in db
MitchTurner Sep 12, 2025
6884644
Update CHANGELOG
MitchTurner Sep 12, 2025
c5bd39c
Refactor
MitchTurner Sep 12, 2025
7995ff4
Refactor into two services
MitchTurner Sep 12, 2025
86db658
lint
MitchTurner Sep 12, 2025
7143929
Note some questions about the intended behavior
MitchTurner Sep 12, 2025
a59e27e
Fix test to look for correct variant
MitchTurner Sep 12, 2025
1c9a129
Merge branch 'master' into chore/block-aggregator-db-adapter
xgreenx Sep 15, 2025
98f7d64
Merge branch 'chore/block-aggregator-db-adapter' into chore/add-apdap…
MitchTurner Sep 15, 2025
8c32bd6
Merge branch 'master' into chore/block-aggregator-db-adapter
MitchTurner Sep 15, 2025
1f1a4cc
Merge branch 'chore/block-aggregator-db-adapter' into chore/add-apdap…
MitchTurner Sep 15, 2025
06d3428
Add warning trace instead of just comment
MitchTurner Sep 15, 2025
9ed34e4
Merge branch 'chore/block-aggregator-db-adapter' into chore/add-apdap…
MitchTurner Sep 15, 2025
7af852b
Update crates/services/block_aggregator_api/src/lib.rs
MitchTurner Sep 15, 2025
a813c34
Hide test methods, fix trace message
MitchTurner Sep 15, 2025
b1273d6
Merge branch 'chore/add-apdapter-for-block-aggregator-source' into ch…
MitchTurner Sep 15, 2025
d0f50c6
Rename tasks, remove feature from deps
MitchTurner Sep 15, 2025
89ad266
Account for `NewBlock` type
MitchTurner Sep 15, 2025
231485c
Increase timeout on failing test
MitchTurner Sep 15, 2025
755997c
Merge branch 'chore/block-aggregator-db-adapter' into chore/add-apdap…
MitchTurner Sep 15, 2025
c8975fb
Merge branch 'chore/add-apdapter-for-block-aggregator-source' into ch…
MitchTurner Sep 15, 2025
2910881
Fix spelling
MitchTurner Sep 15, 2025
fff0c74
Add new test for taking into account importer height
MitchTurner Sep 15, 2025
a9b3851
Remove todos
MitchTurner Sep 15, 2025
bdf8f33
Refactor and cover cases better
MitchTurner Sep 15, 2025
b2a67a7
Cleanup
MitchTurner Sep 15, 2025
eeeccb7
Appease Clippy-sama
MitchTurner Sep 15, 2025
0ce096e
Merge branch 'master' into chore/add-apdapter-for-block-aggregator-so…
MitchTurner Sep 16, 2025
5c43e86
Merge branch 'chore/add-apdapter-for-block-aggregator-source' into ch…
MitchTurner Sep 16, 2025
8c30b6b
remove comment
MitchTurner Sep 16, 2025
74e9230
Add error handling for broken tasks
MitchTurner Sep 16, 2025
13a8901
Cleanup
MitchTurner Sep 16, 2025
ceede2a
Create protobuf server and client and implement first endpoint
MitchTurner Sep 16, 2025
3e47823
Lint, update changelog
MitchTurner Sep 16, 2025
d808cf1
include `protoc` in CI image
MitchTurner Sep 16, 2025
7f01759
Start adding range stream
MitchTurner Sep 16, 2025
aad009a
Add failing test
MitchTurner Sep 16, 2025
d463547
Add stream of blocks
MitchTurner Sep 17, 2025
1519a28
Add test for new block stream
MitchTurner Sep 18, 2025
9d68fc3
Lint toml
MitchTurner Sep 18, 2025
0315228
Remove comments
MitchTurner Sep 18, 2025
7c63d40
Fix compilation
MitchTurner Sep 19, 2025
918c156
Merge branch 'master' into chore/add-apdapter-for-block-aggregator-so…
MitchTurner Sep 23, 2025
a1af5a7
Remove comment, rename fn
MitchTurner Sep 23, 2025
b110538
Merge branch 'chore/add-apdapter-for-block-aggregator-source' into ch…
MitchTurner Sep 23, 2025
2d71835
Merge branch 'chore/block-source-for-aggregator' into chore/protobuf-…
MitchTurner Sep 23, 2025
505ce6c
Merge branch 'master' into chore/block-source-for-aggregator
MitchTurner Sep 25, 2025
3d66f8a
Merge branch 'chore/block-source-for-aggregator' into chore/protobuf-…
MitchTurner Sep 25, 2025
9636204
fmt
MitchTurner Sep 25, 2025
596daf2
Merge branch 'chore/block-source-for-aggregator' into chore/protobuf-…
MitchTurner Sep 25, 2025
dab0ef2
Revert mistake from merge
MitchTurner Sep 25, 2025
3b917ba
Remove `mut`
MitchTurner Sep 25, 2025
01f6f98
Merge branch 'chore/block-source-for-aggregator' into chore/protobuf-…
MitchTurner Sep 25, 2025
4454103
Merge branch 'master' into chore/protobuf-api-adatper
MitchTurner Sep 26, 2025
2e723bb
Merge branch 'master' into chore/protobuf-api-adatper
MitchTurner Sep 29, 2025
47a89db
Add recommended changes from previous PR
MitchTurner Oct 1, 2025
c61cbae
Fix spelling
MitchTurner Oct 1, 2025
8bb41cf
MAke proto block response an enum
MitchTurner Oct 1, 2025
ad652dd
Update crates/services/block_aggregator_api/src/api/protobuf_adapter.rs
MitchTurner Oct 2, 2025
a0d99f2
include inner error in API error message
MitchTurner Oct 2, 2025
d821f9c
Merge branch 'master' into chore/protobuf-api-adatper
MitchTurner Oct 13, 2025
db15acc
Merge remote-tracking branch 'origin/master' into chore/protobuf-api-…
MitchTurner Oct 21, 2025
55b3686
Integrate Block Aggregator (#3101)
MitchTurner Nov 12, 2025
a7c3e28
Merge branch 'master' into chore/protobuf-api-adatper
MitchTurner Nov 12, 2025
b2b023b
Fix cargo lock
MitchTurner Nov 12, 2025
ab29ec6
Ignore rustsec with tracking issue
MitchTurner Nov 17, 2025
9dbd0e4
Merge branch 'chore/rustsec-2025-0118' into chore/protobuf-api-adatper
MitchTurner Nov 17, 2025
412be8a
Fix spellcheck, update changelog
MitchTurner Nov 17, 2025
3db8c2f
Merge branch 'chore/rustsec-2025-0118' into chore/protobuf-api-adatper
MitchTurner Nov 17, 2025
0ae1f71
Merge branch 'master' into chore/protobuf-api-adatper
MitchTurner Nov 17, 2025
7b49d6d
Merge branch 'master' into chore/protobuf-api-adatper
MitchTurner Nov 19, 2025
0da8556
Merge branch 'master' into chore/protobuf-api-adatper
MitchTurner Nov 19, 2025
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
1 change: 1 addition & 0 deletions .changes/added/3100.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add protobuf api for querying the block aggregator
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ jobs:
uses: davidB/rust-cargo-make@v1
with:
version: "0.36.4"
- name: Install Protoc
uses: arduino/setup-protoc@v3
Comment on lines +177 to +178
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a way to not require additional dependency? For example, maybe tonic could use Rust-based implementation of the protobuf?

If not, I think we should follow @rymnc's suggestion and move Protobuf definition into a separate repository which will publish a Rust crate which we can use later in fuel-core, t avoid additional dependency for SDK and Sway

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah. That makes sense to me.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to remove dependency from protoc before we merge this change to the master=)

- uses: rui314/setup-mold@v1
- uses: buildjet/cache@v3
with:
Expand Down
Loading
Loading