Compare commits

..

3 Commits

Author SHA1 Message Date
semantic-release-bot 23d0f91eac chore(release): 0.1.0-develop.14 [skip ci]
# [0.1.0-develop.14](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.13...v0.1.0-develop.14) (2023-07-11)

### Bug Fixes

* further chainConfig fixes ([8b11911](8b1191165a))
2023-07-11 07:17:38 +00:00
Derrick Hammer e197dea9a5
Merge remote-tracking branch 'origin/develop' into develop 2023-07-11 03:16:45 -04:00
Derrick Hammer 8b1191165a
fix: further chainConfig fixes 2023-07-11 03:16:39 -04:00
4 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.14](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.13...v0.1.0-develop.14) (2023-07-11)
### Bug Fixes
* further chainConfig fixes ([8b11911](https://git.lumeweb.com/LumeWeb/libethsync/commit/8b1191165addc8bd981b57a62e3870e54bb6c0ea))
# [0.1.0-develop.13](https://git.lumeweb.com/LumeWeb/libethsync/compare/v0.1.0-develop.12...v0.1.0-develop.13) (2023-07-11)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/libethclient",
"version": "0.1.0-develop.13",
"version": "0.1.0-develop.14",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/libethclient",
"version": "0.1.0-develop.13",
"version": "0.1.0-develop.14",
"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.13",
"version": "0.1.0-develop.14",
"type": "module",
"repository": {
"type": "git",

View File

@ -41,6 +41,8 @@ export async function optimisticUpdateVerify(
header.beacon,
);
const chainConfig = getDefaultClientConfig().chainConfig;
const committeeFast = deserializeSyncCommittee({
pubkeys: committee,
aggregatePubkey: bls.PublicKey.aggregate(
@ -50,7 +52,7 @@ export async function optimisticUpdateVerify(
try {
assertValidSignedHeader(
getDefaultClientConfig().chainConfig,
chainConfig,
committeeFast,
syncAggregate,
headerBlockRoot,
@ -66,7 +68,7 @@ export async function optimisticUpdateVerify(
return { correct: false, reason: "insufficient signatures" };
}
if (!this.isValidLightClientHeader(this.config.chainConfig, header)) {
if (!this.isValidLightClientHeader(chainConfig, header)) {
return { correct: false, reason: "invalid header" };
}