Enhance SwirldState API with additional callback
Closed this issue · 1 comments
Problem
We need to serialize transaction bytes inside hedera.app
to proto types and get system transactions back to the platform for processing.
Solution
To accommodate serializing of transaction bytes inside hedera.app and get system transactions back to the platform we should make a change in the core hedera.app entry point which is SwirldState API.
We should enhance preHandle
and handleConsensusRound
methods with additional argument, which is callback in the form of Consumer< StateSignatureTransaction>.
It will be later used to populate SystemTransactions in it.
Alternatives
No response
@IvanKavaldzhiev @mustafauzunn
I just remembered that we need more information other than the system transaction. So I think the callback should be:
Consumer<ScopedSystemTransaction<StateSignatureTransaction>>