fixing web3signer for e2e (#15832)

* fixing web3signer for e2e

* fixing tests

* gaz

* reverting fix

* extra space
This commit is contained in:
james-prysm
2025-10-09 14:21:56 -05:00
committed by GitHub
parent 515590e7fe
commit c0ad87df4b
8 changed files with 131 additions and 35 deletions

View File

@@ -256,17 +256,12 @@ func (w *Web3RemoteSigner) UnderlyingProcess() *os.Process {
func createTestnetDir() (string, error) {
testNetDir := e2e.TestParams.TestPath + "/web3signer-testnet"
configPath := filepath.Join(testNetDir, "config.yaml")
// TODO: add blob schedule back in as soon as web3signer supports it!
configCopy := params.BeaconConfig().Copy()
configCopy.BlobSchedule = nil
// ---
rawYaml := params.ConfigToYaml(configCopy)
// Add in deposit contract in yaml
depContractStr := fmt.Sprintf("\nDEPOSIT_CONTRACT_ADDRESS: %s\n", params.BeaconConfig().DepositContractAddress)
rawYaml = append(rawYaml, []byte(depContractStr)...)
// TODO: remove this when it's removed from web3signer
maxBlobsStr := fmt.Sprintf("\nMAX_BLOBS_PER_BLOCK_ELECTRA: %s\n", fmt.Sprintf("%d", params.BeaconConfig().DeprecatedMaxBlobsPerBlockElectra))
rawYaml = append(rawYaml, []byte(maxBlobsStr)...)
if err := file.MkdirAll(testNetDir); err != nil {
return "", err

View File

@@ -6,10 +6,10 @@ lighthouse_archive_name = "lighthouse-%s-x86_64-unknown-linux-gnu.tar.gz" % ligh
def e2e_deps():
http_archive(
name = "web3signer",
urls = ["https://github.com/Consensys/web3signer/releases/download/25.9.0/web3signer-25.9.0.tar.gz"],
sha256 = "4bc95a86e232050ff071279043e1d04616572d551f6f72aee31108f96dc77bd8",
urls = ["https://github.com/Consensys/web3signer/releases/download/25.9.1/web3signer-25.9.1.tar.gz"],
sha256 = "d84498abbe46fcf10ca44f930eafcd80d7339cbf3f7f7f42a77eb1763ab209cf",
build_file = "@prysm//testing/endtoend:web3signer.BUILD",
strip_prefix = "web3signer-25.9.0",
strip_prefix = "web3signer-25.9.1",
)
http_archive(