mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 19:40:37 +00:00
927e338f9e
* Fix finding terminal block hash calculation * Update mainnet_config.go * Update beacon_block.pb.go * Various fixes to pass all spec tests for Merge (#9777) * Proper upgrade altair to merge state * Use uint64 for ttd * Correctly upgrade to merge state + object mapping fixes * Use proper receive block path for initial syncing * Disable contract lookback * Disable deposit contract lookback * Go fmt * Merge: switch from go bindings to raw rpc calls (#9803) * Disable genesis ETH1.0 chain header logging * Update htrutils.go * all gossip tests passing * Remove gas validations * Update penalty params for Merge * Fix gossip and tx size limits for the merge part 1 * Remove extraneous p2p condition * Add and use * Add and use TBH_ACTIVATION_EPOCH * Update WORKSPACE * Update Kintsugi engine API (#9865) * Kintsugi ssz (#9867) * All spec tests pass * Update spec test shas * Update Kintsugi consensus implementations (#9872) * Remove secp256k1 * Remove unused merge genesis state gen tool * Manually override nil transaction field. M2 works * Fix bad hex conversion * Change Gossip message size and Chunk SIze from 1 MB t0 10MB (#9860) * change gossip size and chunk size after merge * change ssz to accomodate both changes * gofmt config file * add testcase for merge MsgId * Update beacon-chain/p2p/message_id.go Change MB to Mib in comment Co-authored-by: terence tsao <terence@prysmaticlabs.com> * change function name from altairMsgID to postAltairMsgID Co-authored-by: terence tsao <terence@prysmaticlabs.com> * Sync with develop * Merge branch 'develop' of github.com:prysmaticlabs/prysm into kintsugi * Update state_trie.go * Clean up conflicts * Fix build * Update config to devnet1 * Fix state merge * Handle merge test case for update balance * Fix build * State pkg cleanup * Fix a bug with loading mainnet state * Fix transactions root * Add v2 endpoint for merge blocks (#9802) * Add V2 blocks endpoint for merge blocks * Update beacon-chain/rpc/apimiddleware/structs.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * go mod * fix transactions * Terence's comments * add missing file Co-authored-by: Radosław Kapka <rkapka@wp.pl> * Sync * Go mod tidy * change EP field names * latest kintusgi execution api * fix conflicts * converting base fee to big endian format (#10018) * ReverseByteOrder function does not mess the input * sync with develop * use merge gossip sizes * correct gossip sizes this time * visibility * clean ups * Sync with develop, fix payload nil check bug * Speed up syncing, hide cosmetic errors * Sync with develop * Clean up after sync * Update generate_keys.go * sync with develop * Update mainnet_config.go * Clean ups * Sync optimistically candidate blocks (#10193) * Revert "Sync optimistically candidate blocks (#10193)" This reverts commit f99a0419ef1efc4bda0be77f22165b8fe4377c0d. * Sync optimistically candidate blocks (#10193) * allow optimistic sync * Fix merge transition block validation * Update proposer.go * Sync with develop * delete deprecated client, update testnet flag * Change optimistic logic (#10194) * Logs and err handling * Fix build * Clean ups * Add back get payload * c * Done * Rm uncommented * Optimistic sync: prysm validator rpcs (#10200) * Logs to reproduce * Use pointers * Use pointers * Use pointers * Update json_marshal_unmarshal.go * Fix marshal * Update json_marshal_unmarshal.go * Log * string total diff * str * marshal un * set string * json * gaz * Comment out optimistic status * remove kiln flag here (#10269) * Sync with devleop * Sync with develop * clean ups * refactor engine calls * Update process_block.go * Fix deadlock, uncomment duty opt sync * Update proposer_execution_payload.go * Sync with develop * Rm post state check * Bypass eth1 data checks * Update proposer_execution_payload.go * Return early if ttd is not reached * Sync with devleop * Update process_block.go * Update receive_block.go * Update bzl * Revert "Update receive_block.go" This reverts commit 5b4a87c512325d9f26de4db7f941dcd7303cd0d8. * Fix run time * add in all the fixes * fix evaluator bugs * latest fixes * sum * fix to be configurable * Update go.mod * Fix AltairCompatible to account for future state version * Update proposer_execution_payload.go * fix broken conditional checks * fix all issues * Handle pre state Altair with valid payload * Handle pre state Altair with valid payload * Log bellatrix fields * Update log.go * Revert "fix broken conditional checks" This reverts commit e118db6c20172783a3bb573d2f78670f0207ec1e. * LH multiclient working * Friendly fee recipient log * Remove extra SetOptimisticToValid * fix race * fix test * Fix base fee per gas * Fix notifypayload headroot * tx fuzzer * clean up with develop branch * save progress * 200tx/block * add LH flags * Sync with devleop * cleanup * cleanup * hash * fix build * fix test * fix go check * fmt * gosec * add deps * cleanup * fix up * change gas price * remove flag * last fix * use new LH version * fix up * fix finalized block panic Co-authored-by: terence tsao <terence@prysmaticlabs.com> Co-authored-by: Zahoor Mohamed <zahoor@zahoor.in> Co-authored-by: kasey <489222+kasey@users.noreply.github.com> Co-authored-by: Potuz <potuz@prysmaticlabs.com> Co-authored-by: Radosław Kapka <rkapka@wp.pl> Co-authored-by: Zahoor Mohamed <zahoor@prysmaticlabs.com> Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
115 lines
3.3 KiB
Go
115 lines
3.3 KiB
Go
package endtoend
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"strconv"
|
|
"testing"
|
|
|
|
"github.com/prysmaticlabs/prysm/config/params"
|
|
ev "github.com/prysmaticlabs/prysm/testing/endtoend/evaluators"
|
|
"github.com/prysmaticlabs/prysm/testing/endtoend/helpers"
|
|
e2eParams "github.com/prysmaticlabs/prysm/testing/endtoend/params"
|
|
"github.com/prysmaticlabs/prysm/testing/endtoend/types"
|
|
"github.com/prysmaticlabs/prysm/testing/require"
|
|
)
|
|
|
|
type testArgs struct {
|
|
usePrysmSh bool
|
|
useWeb3RemoteSigner bool
|
|
}
|
|
|
|
func TestEndToEnd_MinimalConfig(t *testing.T) {
|
|
e2eMinimal(t, &testArgs{
|
|
usePrysmSh: false,
|
|
useWeb3RemoteSigner: false,
|
|
})
|
|
}
|
|
|
|
func TestEndToEnd_MinimalConfig_Web3Signer(t *testing.T) {
|
|
t.Skip("TODO(9994): Complete web3signer client implementation, currently blocked by https://github.com/ConsenSys/web3signer/issues/494")
|
|
e2eMinimal(t, &testArgs{
|
|
usePrysmSh: false,
|
|
useWeb3RemoteSigner: true,
|
|
})
|
|
}
|
|
|
|
// Run minimal e2e config with the current release validator against latest beacon node.
|
|
func TestEndToEnd_MinimalConfig_ValidatorAtCurrentRelease(t *testing.T) {
|
|
e2eMinimal(t, &testArgs{
|
|
usePrysmSh: true,
|
|
useWeb3RemoteSigner: false,
|
|
})
|
|
}
|
|
|
|
func e2eMinimal(t *testing.T, args *testArgs) {
|
|
params.UseE2EConfig()
|
|
require.NoError(t, e2eParams.Init(e2eParams.StandardBeaconCount))
|
|
|
|
// Run for 10 epochs if not in long-running to confirm long-running has no issues.
|
|
var err error
|
|
epochsToRun := 10
|
|
epochStr, longRunning := os.LookupEnv("E2E_EPOCHS")
|
|
if longRunning {
|
|
epochsToRun, err = strconv.Atoi(epochStr)
|
|
require.NoError(t, err)
|
|
}
|
|
if args.usePrysmSh {
|
|
// If using prysm.sh, run for only 6 epochs.
|
|
// TODO(#9166): remove this block once v2 changes are live.
|
|
epochsToRun = helpers.AltairE2EForkEpoch - 1
|
|
}
|
|
seed := 0
|
|
seedStr, isValid := os.LookupEnv("E2E_SEED")
|
|
if isValid {
|
|
seed, err = strconv.Atoi(seedStr)
|
|
require.NoError(t, err)
|
|
}
|
|
tracingPort := e2eParams.TestParams.Ports.JaegerTracingPort
|
|
tracingEndpoint := fmt.Sprintf("127.0.0.1:%d", tracingPort)
|
|
evals := []types.Evaluator{
|
|
ev.PeersConnect,
|
|
ev.HealthzCheck,
|
|
ev.MetricsCheck,
|
|
ev.ValidatorsAreActive,
|
|
ev.ValidatorsParticipatingAtEpoch(2),
|
|
ev.FinalizationOccurs(3),
|
|
ev.PeersCheck,
|
|
ev.ProcessesDepositsInBlocks,
|
|
ev.VerifyBlockGraffiti,
|
|
ev.ActivatesDepositedValidators,
|
|
ev.DepositedValidatorsAreActive,
|
|
ev.ProposeVoluntaryExit,
|
|
ev.ValidatorHasExited,
|
|
ev.ValidatorsVoteWithTheMajority,
|
|
ev.ColdStateCheckpoint,
|
|
ev.ForkTransition,
|
|
ev.APIMiddlewareVerifyIntegrity,
|
|
ev.APIGatewayV1Alpha1VerifyIntegrity,
|
|
ev.FinishedSyncing,
|
|
ev.AllNodesHaveSameHead,
|
|
ev.ValidatorSyncParticipation,
|
|
}
|
|
testConfig := &types.E2EConfig{
|
|
BeaconFlags: []string{
|
|
fmt.Sprintf("--slots-per-archive-point=%d", params.BeaconConfig().SlotsPerEpoch*16),
|
|
fmt.Sprintf("--tracing-endpoint=http://%s", tracingEndpoint),
|
|
"--enable-tracing",
|
|
"--trace-sample-fraction=1.0",
|
|
},
|
|
ValidatorFlags: []string{},
|
|
EpochsToRun: uint64(epochsToRun),
|
|
TestSync: true,
|
|
TestFeature: true,
|
|
TestDeposits: true,
|
|
UsePrysmShValidator: args.usePrysmSh,
|
|
UsePprof: !longRunning,
|
|
UseWeb3RemoteSigner: args.useWeb3RemoteSigner,
|
|
TracingSinkEndpoint: tracingEndpoint,
|
|
Evaluators: evals,
|
|
Seed: int64(seed),
|
|
}
|
|
|
|
newTestRunner(t, testConfig).run()
|
|
}
|