fix getForkedBlock to read EIP4844 and Capella blocks (#4450)
* fix getForkedBlock to read EIP4844 and Capella blocks * update geth develop URLs
This commit is contained in:
parent
d854317646
commit
121c66ad3e
|
@ -211,7 +211,14 @@ proc getForkedBlock*(db: BeaconChainDB, root: Eth2Digest):
|
||||||
Opt[ForkedTrustedSignedBeaconBlock] =
|
Opt[ForkedTrustedSignedBeaconBlock] =
|
||||||
# When we only have a digest, we don't know which fork it's from so we try
|
# When we only have a digest, we don't know which fork it's from so we try
|
||||||
# them one by one - this should be used sparingly
|
# them one by one - this should be used sparingly
|
||||||
if (let blck = db.getBlock(root, bellatrix.TrustedSignedBeaconBlock);
|
static: doAssert high(BeaconBlockFork) == BeaconBlockFork.EIP4844
|
||||||
|
if (let blck = db.getBlock(root, eip4844.TrustedSignedBeaconBlock);
|
||||||
|
blck.isSome()):
|
||||||
|
ok(ForkedTrustedSignedBeaconBlock.init(blck.get()))
|
||||||
|
elif (let blck = db.getBlock(root, capella.TrustedSignedBeaconBlock);
|
||||||
|
blck.isSome()):
|
||||||
|
ok(ForkedTrustedSignedBeaconBlock.init(blck.get()))
|
||||||
|
elif (let blck = db.getBlock(root, bellatrix.TrustedSignedBeaconBlock);
|
||||||
blck.isSome()):
|
blck.isSome()):
|
||||||
ok(ForkedTrustedSignedBeaconBlock.init(blck.get()))
|
ok(ForkedTrustedSignedBeaconBlock.init(blck.get()))
|
||||||
elif (let blck = db.getBlock(root, altair.TrustedSignedBeaconBlock);
|
elif (let blck = db.getBlock(root, altair.TrustedSignedBeaconBlock);
|
||||||
|
|
|
@ -450,12 +450,12 @@ fi
|
||||||
|
|
||||||
|
|
||||||
download_geth() {
|
download_geth() {
|
||||||
GETH_VERSION="1.11.0-unstable-262bd38f"
|
GETH_VERSION="1.11.0-unstable-b818e73e"
|
||||||
|
|
||||||
# https://geth.ethereum.org/downloads/
|
# https://geth.ethereum.org/downloads/
|
||||||
# "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.11.0-unstable-262bd38f.tar.gz"
|
# "https://gethstore.blob.core.windows.net/builds/geth-linux-amd64-1.11.0-unstable-b818e73e.tar.gz"
|
||||||
# "https://gethstore.blob.core.windows.net/builds/geth-darwin-amd64-1.11.0-unstable-262bd38f.tar.gz"
|
# "https://gethstore.blob.core.windows.net/builds/geth-darwin-amd64-1.11.0-unstable-b818e73e.tar.gz"
|
||||||
# "https://gethstore.blob.core.windows.net/builds/geth-windows-amd64-1.11.0-unstable-262bd38f.zip"
|
# "https://gethstore.blob.core.windows.net/builds/geth-windows-amd64-1.11.0-unstable-b818e73e.zip"
|
||||||
|
|
||||||
GETH_URL="https://gethstore.blob.core.windows.net/builds/"
|
GETH_URL="https://gethstore.blob.core.windows.net/builds/"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue