Get rid of using MerkleStateRoot
features on initialization in platform-core
code
#17868
Milestone
MerkleStateRoot
features on initialization in platform-core
code
#17868
Currently there are three classes left in
platform-core
production code that are still usingMerkleStateRoot
class:PlatformStateFacade
. It castsState
object toMerkleStateRoot
to bypass normal access mechanism (viaReadableStates
) because it's not initialized at the moment of invocation. Solution: we need to change the initialization so that we didn't have to do this direct access to Merkle tree node by indexSignedStateFileReader
.registerServiceState
usesMerkleStateRoot#putServiceStateIfAbsent
.There are two possible soltions:
putServiceStateIfAbsent
can be elevated toState
interface. This will require movingStateMetadata
registerServiceState
can have a callback parameters passed by thehedera-app
codeSignedStateFileWriter
castsstate
to initializetime
field:It can be fixed by setting the time where it's more appropriate.
The text was updated successfully, but these errors were encountered: