Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot 57965ef9cd chore(release): 0.1.0-develop.56 [skip ci]
# [0.1.0-develop.56](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.55...v0.1.0-develop.56) (2023-09-16)

### Bug Fixes

* if we are within 1 period of getCurrentPeriod manually call sync actions, otherwise call parent sync ([6500219](65002190b8))
2023-09-16 15:13:32 +00:00
Derrick Hammer dc35711a75
Merge remote-tracking branch 'origin/develop' into develop 2023-09-16 11:12:22 -04:00
Derrick Hammer 65002190b8
fix: if we are within 1 period of getCurrentPeriod manually call sync actions, otherwise call parent sync 2023-09-16 11:12:18 -04:00
4 changed files with 17 additions and 6 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.56](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.55...v0.1.0-develop.56) (2023-09-16)
### Bug Fixes
* if we are within 1 period of getCurrentPeriod manually call sync actions, otherwise call parent sync ([6500219](https://git.lumeweb.com/LumeWeb/libethsync/commit/65002190b834c5a31c5c8ca1dcf0f5953f83594d))
# [0.1.0-develop.55](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.54...v0.1.0-develop.55) (2023-09-16)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/libethsync",
"version": "0.1.0-develop.55",
"version": "0.1.0-develop.56",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/libethsync",
"version": "0.1.0-develop.55",
"version": "0.1.0-develop.56",
"dependencies": {
"@chainsafe/as-sha256": "^0.3.1",
"@chainsafe/bls": "7.1.1",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/libethsync",
"version": "0.1.0-develop.55",
"version": "0.1.0-develop.56",
"type": "module",
"repository": {
"type": "git",

View File

@ -50,10 +50,14 @@ export default class Client extends BaseClient {
checkpoint.attestedHeader.beacon.slot,
);
this.latestCommittee = checkpoint.nextSyncCommittee.pubkeys;
if (this._latestPeriod + 1 === this.getCurrentPeriod()) {
this.booted = true;
this.emit("synced");
await this.getLatestExecution(false);
} else {
await super.sync();
}
}
public async rpcCall(method: string, params: any) {