Compare commits

...

3 Commits

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

### Bug Fixes

* if startPeriod is greater than genesisPeriod, try to use latestCommittee falling back to genesisCommittee ([ec84027](ec8402714f))
2023-09-16 04:40:47 +00:00
Derrick Hammer 2de960ce28
Merge remote-tracking branch 'origin/develop' into develop 2023-09-16 00:39:42 -04:00
Derrick Hammer ec8402714f
fix: if startPeriod is greater than genesisPeriod, try to use latestCommittee falling back to genesisCommittee 2023-09-16 00:39:38 -04:00
4 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.54](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.53...v0.1.0-develop.54) (2023-09-16)
### Bug Fixes
* if startPeriod is greater than genesisPeriod, try to use latestCommittee falling back to genesisCommittee ([ec84027](https://git.lumeweb.com/LumeWeb/libethsync/commit/ec8402714f6f9c7ec405c465ea6cc965eabacad5))
# [0.1.0-develop.53](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.52...v0.1.0-develop.53) (2023-09-16) # [0.1.0-develop.53](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.52...v0.1.0-develop.53) (2023-09-16)

4
npm-shrinkwrap.json generated
View File

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

View File

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

View File

@ -304,7 +304,10 @@ export default abstract class BaseClient extends EventEmitter {
startPeriod = this.latestPeriod, startPeriod = this.latestPeriod,
): Promise<Uint8Array[]> { ): Promise<Uint8Array[]> {
const currentPeriod = this.getCurrentPeriod(); const currentPeriod = this.getCurrentPeriod();
let startCommittee = this.genesisCommittee; let startCommittee =
startPeriod > this.genesisPeriod
? this.latestCommittee ?? this.genesisCommittee
: this.genesisCommittee;
console.debug( console.debug(
`Sync started from period(${startPeriod}) to period(${currentPeriod})`, `Sync started from period(${startPeriod}) to period(${currentPeriod})`,
); );