Skip to content

Commit

Permalink
Working
Browse files Browse the repository at this point in the history
  • Loading branch information
rezbera committed Feb 4, 2025
1 parent badb066 commit ed588b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions scripts/build/testing.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
# beacond #
#################

HOMEDIR = .tmp/beacond
HOMEDIR = /var/folders/z8/dnjjtbt10z50dtk_5sfckr7r0000gn/T/TestInjectedConsensusTestProcessProposalRequestInvalidBlock2262598698/001
DEVNET_CHAIN_SPEC = devnet
JWT_PATH = ${TESTAPP_FILES_DIR}/jwt.hex
# Use the genesis file from the beacond folder as it has been modified by beacond genesis set-deposit-storage.
ETH_GENESIS_PATH = ${HOMEDIR}/eth-genesis.json
NETHER_ETH_GENESIS_PATH = ${HOMEDIR}/eth-nether-genesis.json
ETH_DATA_DIR = .tmp/eth-home
ETH_DATA_DIR = ${HOMEDIR}/eth-home
# URLs used for dialing the eth client
IPC_PATH = .tmp/eth-home/eth-engine.ipc
HTTP_URL = localhost:8551
Expand Down Expand Up @@ -103,8 +103,8 @@ start-reth-host: ## start a local ephemeral `reth` node on host machine
start-geth: ## start an ephemeral `geth` node with docker
rm -rf ${ETH_DATA_DIR}
docker run \
-v ${HOMEDIR}:/${HOMEDIR} \
--rm -v $(PWD)/${TESTAPP_FILES_DIR}:/${TESTAPP_FILES_DIR} \
-v $(PWD)/.tmp:/.tmp \
ethereum/client-go init \
--datadir ${ETH_DATA_DIR} \
${ETH_GENESIS_PATH}
Expand All @@ -114,7 +114,7 @@ start-geth: ## start an ephemeral `geth` node with docker
-p 8545:8545 \
-p 8551:8551 \
--rm -v $(PWD)/${TESTAPP_FILES_DIR}:/${TESTAPP_FILES_DIR} \
-v $(PWD)/.tmp:/.tmp \
-v ${HOMEDIR}:/${HOMEDIR} \
ethereum/client-go \
--http \
--http.addr 0.0.0.0 \
Expand Down
4 changes: 4 additions & 0 deletions testing/injected-consensus/injected-consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ package injectedconsensus
import (
"context"
"os"
"path"
"path/filepath"
"testing"

Expand Down Expand Up @@ -230,6 +231,9 @@ func NewTestNode(t *testing.T) *TestNode {
err = genesis.SetDepositStorage(chainSpec, cometConfig, "./eth-genesis.json", false)
require.NoError(t, err)

err = genesis.AddExecutionPayload(chainSpec, path.Join(tempHomeDir, "eth-genesis.json"), cometConfig)
require.NoError(t, err)

// Create a database
database, err := db.OpenDB(tempHomeDir, dbm.PebbleDBBackend)
require.NoError(t, err)
Expand Down
2 changes: 1 addition & 1 deletion testing/injected-consensus/invalid_block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (s *InjectedConsensus) TestProcessProposalRequestInvalidBlock() {
}
}()

<-time.After(1000 * time.Second)
<-time.After(30 * time.Second)

// genesis := genesisFromFile(t, testNode.cometConfig.Genesis)

Expand Down

0 comments on commit ed588b3

Please sign in to comment.