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

chore: add needed TransactionOutput fields #415

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

tinker-michaelj
Copy link
Contributor

@tinker-michaelj tinker-michaelj commented Sep 4, 2024

Description:

  • Adds TransactionOutput fields for SCHEDULE_CREATE, TOKEN_AIRDROP, and ETHEREUM_TRANSACTION that are necessary to recover the full record stream from the block stream.
  • Includes some javadoc improvements in block_stream_info.proto.

Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Copy link
Member

@jsync-swirlds jsync-swirlds left a comment

Choose a reason for hiding this comment

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

I am not sure we actually need the new outputs.
We deliberately do not include values that are present in some other block item in outputs, so created ID values (which must be present in the state changes) or messages added to state as part of a transaction (i.e. PendingAirdrop messages) are not included in transaction outputs, for example.

block/stream/output/schedule_service.proto Outdated Show resolved Hide resolved
block/stream/output/smart_contract_service.proto Outdated Show resolved Hide resolved
block/stream/output/smart_contract_service.proto Outdated Show resolved Hide resolved
block/stream/output/smart_contract_service.proto Outdated Show resolved Hide resolved
block/stream/output/token_service.proto Outdated Show resolved Hide resolved
block/stream/output/token_service.proto Show resolved Hide resolved
block/stream/output/schedule_service.proto Show resolved Hide resolved
services/state/blockstream/block_stream_info.proto Outdated Show resolved Hide resolved
tinker-michaelj and others added 8 commits September 4, 2024 15:01
Co-authored-by: Joseph S. <121976561+jsync-swirlds@users.noreply.github.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Co-authored-by: Joseph S. <121976561+jsync-swirlds@users.noreply.github.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Co-authored-by: Joseph S. <121976561+jsync-swirlds@users.noreply.github.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Co-authored-by: Joseph S. <121976561+jsync-swirlds@users.noreply.github.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Co-authored-by: Joseph S. <121976561+jsync-swirlds@users.noreply.github.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Co-authored-by: Joseph S. <121976561+jsync-swirlds@users.noreply.github.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Copy link
Member

@jsync-swirlds jsync-swirlds left a comment

Choose a reason for hiding this comment

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

Looks good, one small question remains.

* that is identical to the one that was requested.<br/>
* For any other status, this value SHALL NOT be set.
*/
proto.ScheduleID schedule_id = 1;
Copy link
Member

Choose a reason for hiding this comment

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

Should this be renamed to duplicate_schedule_id?
Also, if we only set this for duplicate schedules, we may need to remove the first specification sentence in the document comment above.

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