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

stream transfer history #4861

Open
wants to merge 35 commits into
base: main_2_6
Choose a base branch
from
Open

stream transfer history #4861

wants to merge 35 commits into from

Conversation

modship
Copy link
Member

@modship modship commented Feb 14, 2025

  • document all added functions
  • try in sandbox /simulation/labnet
    • if part of node-launch, checked using the resync_check flag
  • unit tests on the added/changed features
    • make tests compile
    • make tests pass
  • add logs allowing easy debugging in case the changes caused problems
  • if the API has changed, update the API specification

@modship modship changed the title update mappingr transfers history Feb 14, 2025
@modship modship changed the title transfers history stream transfer history Feb 18, 2025
@modship modship changed the base branch from feature/execution-info-grpc-1 to main_2_6 February 18, 2025 15:04
@modship modship added the p1 label Feb 18, 2025
@modship modship requested a review from damip February 20, 2025 09:45
@sydhds sydhds requested a review from damip March 5, 2025 09:06
execution-trace = ["massa_execution_exports/execution-trace"]
execution-trace = [
"massa_execution_exports/execution-trace",
"schnellru"
Copy link
Member

Choose a reason for hiding this comment

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

LRU is not necessary anymore

Copy link
Contributor

Choose a reason for hiding this comment

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

See comment above...

@@ -91,7 +96,7 @@ massa_event_cache = { workspace = true }
tempfile = { workspace = true, optional = true }
massa_wallet = { workspace = true }
massa-proto-rs = { workspace = true }
schnellru = { workspace = true }
schnellru = { workspace = true, optional = true }
Copy link
Member

Choose a reason for hiding this comment

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

not necessary

Copy link
Contributor

Choose a reason for hiding this comment

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

Removing "optional = true" here add a warning when compiling without any feature:

warning: extern crate `schnellru` is unused in crate `massa_execution_worker`

@sydhds sydhds requested a review from damip March 10, 2025 09:49
Copy link
Collaborator

@Leo-Besancon Leo-Besancon left a comment

Choose a reason for hiding this comment

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

I added some comments but coming a bit as an outsider on this work, don't hesitate to close irrelevant ones directly!

@@ -75,6 +77,9 @@ pub mod test_exports;
/// types for execution-trace / execution-info
pub mod types_trace_info;

/// types for execution-info
pub mod execution_info;
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 reason to separate types_trace_info and execution_info here?

@@ -11,6 +11,7 @@ documentation = "https://docs.massa.net/"
execution-trace = ["serde_json"]
dump-block = []
test-exports = []
execution-info = ["execution-trace"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't we also add "massa_execution_exports/execution-info"? (or "massa_execution_exports/execution-trace", not sure).
Because in public.rs, we import types that are only valid if "massa_execution_exports/execution-trace" is set, so building this package separately fails (cargo check --package massa_grpc --features execution-info)

None,
None,
None,
None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

we don't provide other info here? (the operation_id where the register was done?)

(CoinOrigin::Slash as i32, None, None, None, None)
}
TransferContext::CreateSCStorage => {
(CoinOrigin::CreateScStorage as i32, None, None, None, None)
Copy link
Collaborator

Choose a reason for hiding this comment

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

same for here and below, can't we get the operation id?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issues related to the API EllipX Project w/ Mark K. MAIN.2.6 p1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accounting needs
4 participants