Compare commits
No commits in common. "v0.1.0-develop.42" and "v0.1.0-develop.41" have entirely different histories.
v0.1.0-dev
...
v0.1.0-dev
|
@ -1,5 +1,3 @@
|
|||
# [0.1.0-develop.42](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.41...v0.1.0-develop.42) (2023-07-15)
|
||||
|
||||
# [0.1.0-develop.41](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.40...v0.1.0-develop.41) (2023-07-14)
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@lumeweb/libethclient",
|
||||
"version": "0.1.0-develop.42",
|
||||
"version": "0.1.0-develop.41",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lumeweb/libethclient",
|
||||
"version": "0.1.0-develop.42",
|
||||
"version": "0.1.0-develop.41",
|
||||
"dependencies": {
|
||||
"@chainsafe/as-sha256": "^0.3.1",
|
||||
"@chainsafe/bls": "7.1.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/libethsync",
|
||||
"version": "0.1.0-develop.42",
|
||||
"version": "0.1.0-develop.41",
|
||||
"type": "module",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -61,7 +61,10 @@ export default abstract class BaseClient {
|
|||
}
|
||||
|
||||
public get isSynced() {
|
||||
return this._latestPeriod === this.getCurrentPeriod();
|
||||
return (
|
||||
this._latestPeriod === this.getCurrentPeriod() &&
|
||||
this.getLastBlock() === this.getCurrentBlock()
|
||||
);
|
||||
}
|
||||
|
||||
public get store(): IStore {
|
||||
|
|
|
@ -25,14 +25,4 @@ export default class Client extends BaseClient {
|
|||
this.beaconUrl = config.beaconUrl;
|
||||
this.http.defaults.baseURL = this.beaconUrl;
|
||||
}
|
||||
|
||||
async sync(): Promise<void> {
|
||||
await super.sync();
|
||||
|
||||
if (!this.booted) {
|
||||
this.subscribe();
|
||||
|
||||
this.booted = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue