Compare commits
3 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 23d0f91eac | |
Derrick Hammer | e197dea9a5 | |
Derrick Hammer | 8b1191165a |
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lumeweb/libethsync",
|
||||
"version": "0.1.0-develop.13",
|
||||
"version": "0.1.0-develop.14",
|
||||
"type": "module",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -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" };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue