Skip to content

Commit 4ae9cca

Browse files
committed
add hack to schedule 6493 on prague in cli for stablecontainer devnets
1 parent 1a6da99 commit 4ae9cca

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

packages/client/bin/cli.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ const args: ClientOpts = yargs
126126
boolean: true,
127127
default: true,
128128
})
129+
// just a hack to insert 6493 on pragueTime for input genesis
130+
.option('eip6493AtPrague', {
131+
describe: 'Just for stablecontainer devnets testing',
132+
boolean: true,
133+
default: true,
134+
})
129135
.option('bootnodes', {
130136
describe:
131137
'Comma-separated list of network bootnodes (format: "enode://<id>@<host:port>,enode://..." ("[?discport=<port>]" not supported) or path to a bootnode.txt file',
@@ -1003,6 +1009,12 @@ async function run() {
10031009
// Use geth genesis parameters file if specified
10041010
const genesisFile = JSON.parse(readFileSync(args.gethGenesis, 'utf-8'))
10051011
const chainName = path.parse(args.gethGenesis).base.split('.')[0]
1012+
// just a hack for stable container devnets to schedule 6493 at prague
1013+
if (args.eip6493AtPrague === true) {
1014+
genesisFile.config.eip6493Time = genesisFile.config.pragueTime
1015+
console.log('Scheduling eip6493AtPrague', genesisFile.config)
1016+
}
1017+
10061018
common = Common.fromGethGenesis(genesisFile, {
10071019
chain: chainName,
10081020
mergeForkIdPostMerge: args.mergeForkIdPostMerge,

packages/client/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export interface ClientOpts {
107107
gethGenesis?: string
108108
trustedSetup?: string
109109
mergeForkIdPostMerge?: boolean
110+
eip6493AtPrague?: boolean
110111
bootnodes?: string | string[]
111112
port?: number
112113
extIP?: string

packages/client/test/rpc/engine/newPayloadEip6493.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ describe(`${method}: call with executionPayloadV4`, () => {
101101
).sign(pk)
102102
await service.txPool.add(normalLegacyTx, true)
103103

104-
console.log({normalLegacyTx: normalLegacyTx.toJSON(), payloadjson: normalLegacyTx.toExecutionPayloadTx()})
104+
console.log({
105+
normalLegacyTx: normalLegacyTx.toJSON(),
106+
payloadjson: normalLegacyTx.toExecutionPayloadTx(),
107+
})
105108

106109
res = await rpc.request('engine_getPayloadV4', [payloadId])
107110
const { executionPayload } = res.result

0 commit comments

Comments
 (0)