From cc58ae777dd9418d0d12cf9df27bd08b5f572874 Mon Sep 17 00:00:00 2001 From: Suning Yao Date: Fri, 13 Oct 2023 18:54:35 +0800 Subject: [PATCH] Add sequencer order in config --- packages/node/src/config/Config.ts | 1 + packages/node/src/config/config.local.ts | 4 ++++ packages/node/src/config/config.production.ts | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/packages/node/src/config/Config.ts b/packages/node/src/config/Config.ts index f250ba5..75d0f5b 100644 --- a/packages/node/src/config/Config.ts +++ b/packages/node/src/config/Config.ts @@ -14,6 +14,7 @@ export interface Config { readonly batchPoster: { readonly intervalMs: number readonly gasLimit: number + readonly sequencerOrder: string } readonly privateKey: Hex readonly genesisState: Record diff --git a/packages/node/src/config/config.local.ts b/packages/node/src/config/config.local.ts index d8ccdf0..a09eb3c 100644 --- a/packages/node/src/config/config.local.ts +++ b/packages/node/src/config/config.local.ts @@ -22,6 +22,10 @@ export function getLocalConfig(): Config { batchPoster: { intervalMs: 10_000, gasLimit: 3_000_000, + sequencerOrder: env.string( + 'SEQUENCER_ORDER', + 'FEE' + ) }, privateKey: Hex( '0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a', diff --git a/packages/node/src/config/config.production.ts b/packages/node/src/config/config.production.ts index 5f34775..a741395 100644 --- a/packages/node/src/config/config.production.ts +++ b/packages/node/src/config/config.production.ts @@ -33,6 +33,10 @@ export function getProductionConfig(): Config { batchPoster: { intervalMs: 10_000, gasLimit: 3_000_000, + sequencerOrder: env.string( + 'SEQUENCER_ORDER', + 'FEE' + ) }, privateKey: Hex(env.string('PRIVATE_KEY')), genesisState: GENESIS_STATE,