Skip to content

Commit

Permalink
Add sequencer order in config
Browse files Browse the repository at this point in the history
  • Loading branch information
fewwwww committed Oct 13, 2023
1 parent 9351af5 commit cc58ae7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/node/src/config/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface Config {
readonly batchPoster: {
readonly intervalMs: number
readonly gasLimit: number
readonly sequencerOrder: string
}
readonly privateKey: Hex
readonly genesisState: Record<string, number>
Expand Down
4 changes: 4 additions & 0 deletions packages/node/src/config/config.local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 4 additions & 0 deletions packages/node/src/config/config.production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cc58ae7

Please sign in to comment.