polytope-labs / hyperbridge

Hyperbridge is a hyperscalable coprocessor for verifiable, cross-chain interoperability
https://docs.hyperbridge.network/
Apache License 2.0
104 stars 33 forks source link

Store requests and responses offchain when `NoOpMmrTree` is used #205

Closed Wizdave97 closed 3 months ago

Wizdave97 commented 3 months ago

Requests and responses are not stored offchain when NoOpMmrTree is used, this makes the request and response data inaccessible through the rpc. This PR fixes that by storing requests and responses in the offchain DB when NoOpMmrTree is used in place of the mmr pallet.

NOTE: offchain_indexing must be enabled for the substrate node client so relayers can access the requests and responses from the rpc server.