You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I propose implementing the BlockBackend and HeaderBackend into the newly introduced Client. Given that db.Backend already provides access to the underlying HeaderBackend this is trivially implemented by calling the Backend.Blockchain() which returns an impl of blockchain.Backend which embeds HeaderBackend. BlockBackend is implemented by also calling methods on the returned impl blockchain.Backend from Backend.Blockchain().
After the introduction and implementation of the BlockBackend and HeaderBackend interfaces, we can create a translation shim type to map the above BlockState methods to utilize the Client methods for both BlockBackend and ChainHeaderBackend.
Issue Summary
Taken from design doc:
Acceptance Criteria
BlockBackend
interfaceBlockBackend
inClient
.HeaderBackend
inClient
.Other Information and links
BlockBackend
trait.The text was updated successfully, but these errors were encountered: