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

[follower api] Augments the follower API with transaction info #1446

Merged
merged 1 commit into from
Apr 22, 2022

Conversation

gdanezis
Copy link
Collaborator

We add a safe_client function that augments the follower API stream with a call to download each transaction info for received digests.

@gdanezis gdanezis requested a review from lanvidr April 19, 2022 16:08
@codecov
Copy link

codecov bot commented Apr 19, 2022

Codecov Report

Merging #1446 (eb7eaa2) into main (c1e46f0) will increase coverage by 0.12%.
The diff coverage is 0.00%.

❗ Current head eb7eaa2 differs from pull request most recent head 57a15a0. Consider uploading reports for the commit 57a15a0 to get more accurate results

@@            Coverage Diff             @@
##             main    #1446      +/-   ##
==========================================
+ Coverage   82.19%   82.31%   +0.12%     
==========================================
  Files         104      103       -1     
  Lines       21145    21100      -45     
==========================================
- Hits        17380    17369      -11     
+ Misses       3765     3731      -34     
Impacted Files Coverage Δ
sui_core/src/safe_client.rs 70.63% <0.00%> (-8.36%) ⬇️
sui/src/keystore.rs 54.68% <0.00%> (-6.13%) ⬇️
sui_types/src/object.rs 81.23% <0.00%> (-0.31%) ⬇️
...ammability/adapter/src/unit_tests/adapter_tests.rs 98.56% <0.00%> (-0.11%) ⬇️
sui/src/unit_tests/cli_tests.rs 89.52% <0.00%> (ø)
sui/src/unit_tests/sui_network.rs 100.00% <0.00%> (ø)
sui/src/validator.rs
sui/src/sui_commands.rs 76.10% <0.00%> (+0.18%) ⬆️
sui_core/src/authority/temporary_store.rs 83.92% <0.00%> (+0.39%) ⬆️
sui_core/src/authority_aggregator.rs 88.04% <0.00%> (+0.60%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 84fedaa...57a15a0. Read the comment docs.

Copy link
Contributor

@lanvidr lanvidr left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Contributor

@velvia velvia left a comment

Choose a reason for hiding this comment

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

I agree this works, and we can use this to start implementing things like event subscription, but this is going to blow up the authority at any decent TPS. We should at least add this to the benchmarks.

@gdanezis
Copy link
Collaborator Author

Once we have a multi-get for getting transaction info from a vector of transactions we can adapt it to use that.

@gdanezis gdanezis force-pushed the follower-augment-transaction-info branch from eb7eaa2 to e1b92b0 Compare April 21, 2022 08:40
@gdanezis gdanezis force-pushed the follower-augment-transaction-info branch from e1b92b0 to 57a15a0 Compare April 21, 2022 14:43
@gdanezis gdanezis merged commit b364f13 into main Apr 22, 2022
@gdanezis gdanezis deleted the follower-augment-transaction-info branch April 22, 2022 07:29
longbowlu added a commit that referenced this pull request Apr 22, 2022
* refactor

* clean up

* refactor
rebase

* rebase

* rebase

* add how-to

* format

* lint

* don't pop key, copy it

* Add a safe client function that augments the follower API with downloading the transactions information (#1446)

Co-authored-by: George Danezis <[email protected]>

* Removing dev-addresses from Move.toml (#1536)

There is no undefined address in the [addresses] section (e.g. AddressToBeFilledIn = "_") so having a [dev-addresses] section is not necessary.

* [move][adapter] Static init rules (#1532)

- Made init rules static
- The existence of the function is optional
- The function must be named 'init'
- The function must be private
- The function can have a single parameter, &mut TxContext
- Alternatively, the function can have zero parameters

* adds a counter example (#1539)

* sui: reorganize binaries

* wallet: log git revision on start

* Refactor Build index by common user workflow (#1530)

* Refactor Build index by common user workflow

* Update index.md

Fix paths missing Markdown file extension

* Update index.md (#1545)

Removing tutorial series until ready

* Update index.md

Remove version from API link
Capitalize REST

* comments and add unwind logic for process

* fix: remove one unneeded instance of key_pair.copy()

* fix: remove three unneeded instances of key_pair.copy()

* fix: remove one unneeded instance of key_pair.copy()

* refactor
rebase

* rebase

* refactor

* rebase

* rebase

* add how-to

* lint

* don't pop key, copy it

* rebase

* Update index.md

Remove version from API link
Capitalize REST

* rebase

Co-authored-by: Lu Zhang <[email protected]>
Co-authored-by: George Danezis <[email protected]>
Co-authored-by: George Danezis <[email protected]>
Co-authored-by: jaredcosulich <[email protected]>
Co-authored-by: Todd Nowacki <[email protected]>
Co-authored-by: Damir S <[email protected]>
Co-authored-by: Brandon Williams <[email protected]>
Co-authored-by: Clay-Mysten <[email protected]>
Co-authored-by: François Garillot <[email protected]>
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.

3 participants