hyperledger-iroha / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
438 stars 280 forks source link

Remove query store from snapshot #4971

Closed mversic closed 3 weeks ago

mversic commented 2 months ago

Why is query store saved to the disk as part the snapshot functionality? When deserializing snapshot from the disk the query store should just be created as empty

Erigara commented 3 weeks ago

@mversic currently query store is not stored as part of snapshot, it passes as seed on deserialization.

    /// Handle to the [`LiveQueryStore`].
    #[serde(skip)]
    pub query_handle: LiveQueryStoreHandle,