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)
|
# [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",
|
"name": "@lumeweb/libethclient",
|
||||||
"version": "0.1.0-develop.13",
|
"version": "0.1.0-develop.14",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@lumeweb/libethclient",
|
"name": "@lumeweb/libethclient",
|
||||||
"version": "0.1.0-develop.13",
|
"version": "0.1.0-develop.14",
|
||||||
"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.13",
|
"version": "0.1.0-develop.14",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -41,6 +41,8 @@ export async function optimisticUpdateVerify(
|
||||||
header.beacon,
|
header.beacon,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const chainConfig = getDefaultClientConfig().chainConfig;
|
||||||
|
|
||||||
const committeeFast = deserializeSyncCommittee({
|
const committeeFast = deserializeSyncCommittee({
|
||||||
pubkeys: committee,
|
pubkeys: committee,
|
||||||
aggregatePubkey: bls.PublicKey.aggregate(
|
aggregatePubkey: bls.PublicKey.aggregate(
|
||||||
|
@ -50,7 +52,7 @@ export async function optimisticUpdateVerify(
|
||||||
|
|
||||||
try {
|
try {
|
||||||
assertValidSignedHeader(
|
assertValidSignedHeader(
|
||||||
getDefaultClientConfig().chainConfig,
|
chainConfig,
|
||||||
committeeFast,
|
committeeFast,
|
||||||
syncAggregate,
|
syncAggregate,
|
||||||
headerBlockRoot,
|
headerBlockRoot,
|
||||||
|
@ -66,7 +68,7 @@ export async function optimisticUpdateVerify(
|
||||||
return { correct: false, reason: "insufficient signatures" };
|
return { correct: false, reason: "insufficient signatures" };
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.isValidLightClientHeader(this.config.chainConfig, header)) {
|
if (!this.isValidLightClientHeader(chainConfig, header)) {
|
||||||
return { correct: false, reason: "invalid header" };
|
return { correct: false, reason: "invalid header" };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue