Fix Transaction Pool in E2E (#10561)

This commit is contained in:
Nishant Das
2022-04-23 05:13:11 +08:00
committed by GitHub
parent 7765d275d1
commit baa2e2e340
3 changed files with 3 additions and 1 deletions

View File

@@ -127,6 +127,7 @@ func (m *Miner) Start(ctx context.Context) error {
"--mine",
"--unlock=0x878705ba3f8bc32fcf7f4caa1a35e72af65cf766",
"--allow-insecure-unlock",
"--txpool.locals=0x878705ba3f8bc32fcf7f4caa1a35e72af65cf766",
fmt.Sprintf("--password=%s", eth1Path+"/keystore/"+minerPasswordFile),
}

View File

@@ -88,6 +88,7 @@ func (node *Node) Start(ctx context.Context) error {
"--ws.origins=\"*\"",
"--ipcdisable",
"--verbosity=4",
"--txpool.locals=0x878705ba3f8bc32fcf7f4caa1a35e72af65cf766",
}
// If we are testing sync, geth needs to be run via full sync as snap sync does not
// work in our setup.

View File

@@ -65,7 +65,7 @@ func (t *TransactionGenerator) Start(ctx context.Context) error {
}
f := filler.NewFiller(rnd)
// Broadcast Transactions every 3 blocks
txPeriod := time.Duration(params.BeaconConfig().SecondsPerETH1Block*3) * time.Second
txPeriod := time.Duration(params.BeaconConfig().SecondsPerSlot) * time.Second
ticker := time.NewTicker(txPeriod)
gasPrice := big.NewInt(1e11)
for {