fix: add getter for store in baseclient
This commit is contained in:
parent
836a8429c7
commit
3a48a52a53
|
@ -28,7 +28,6 @@ export default abstract class BaseClient {
|
|||
protected booted = false;
|
||||
private syncMutex = new Mutex();
|
||||
protected options: BaseClientOptions;
|
||||
protected;
|
||||
|
||||
constructor(options: BaseClientOptions) {
|
||||
this.options = options;
|
||||
|
@ -86,6 +85,10 @@ export default abstract class BaseClient {
|
|||
this.syncMutex.release();
|
||||
}
|
||||
|
||||
public get store(): IStore {
|
||||
return this.options.store as IStore;
|
||||
}
|
||||
|
||||
// committee and prover index of the first honest prover
|
||||
protected abstract syncFromGenesis(): Promise<Uint8Array[]>;
|
||||
|
||||
|
|
Loading…
Reference in New Issue