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)
|
# [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",
|
"name": "@lumeweb/libethclient",
|
||||||
"version": "0.1.0-develop.42",
|
"version": "0.1.0-develop.41",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@lumeweb/libethclient",
|
"name": "@lumeweb/libethclient",
|
||||||
"version": "0.1.0-develop.42",
|
"version": "0.1.0-develop.41",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chainsafe/as-sha256": "^0.3.1",
|
"@chainsafe/as-sha256": "^0.3.1",
|
||||||
"@chainsafe/bls": "7.1.1",
|
"@chainsafe/bls": "7.1.1",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@lumeweb/libethsync",
|
"name": "@lumeweb/libethsync",
|
||||||
"version": "0.1.0-develop.42",
|
"version": "0.1.0-develop.41",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -61,7 +61,10 @@ export default abstract class BaseClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
public get isSynced() {
|
public get isSynced() {
|
||||||
return this._latestPeriod === this.getCurrentPeriod();
|
return (
|
||||||
|
this._latestPeriod === this.getCurrentPeriod() &&
|
||||||
|
this.getLastBlock() === this.getCurrentBlock()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public get store(): IStore {
|
public get store(): IStore {
|
||||||
|
|
|
@ -25,14 +25,4 @@ export default class Client extends BaseClient {
|
||||||
this.beaconUrl = config.beaconUrl;
|
this.beaconUrl = config.beaconUrl;
|
||||||
this.http.defaults.baseURL = this.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