Skip to content

Commit

Permalink
fix: add fast confirmer as validator (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
TucksonDev authored Aug 16, 2024
1 parent f82d01e commit 36fd6fe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/setup-fast-withdrawal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ async function main() {
);
console.log('');

// add the new Safe address as a validator
// (needed to call removeOldZombies() as part of the fastConfirmNextNode() flow)
fcValidators.push(safeAddress);

//
// Step 2. Add validators to the Orbit chain rollup validator whitelist
//
Expand Down Expand Up @@ -297,13 +301,13 @@ async function main() {

// Batch poster configuration
const timeDelay = getTimeDelayFromNumberOfBlocks(parentChain.id, minimumAssertionPeriod);
console.log('Your batch poster has to run at least nitro v3.x');
console.log('Your batch poster has to run at least nitro v3.1.1');
console.log('Add the following parameter:');
console.log(`--node.batch-poster.max-delay=${timeDelay}`);
console.log('');

// Validator configuration
console.log('Your validators have to run at least nitro v3.x');
console.log('Your validators have to run at least nitro v3.1.1');
console.log('Add the following parameters:');
console.log(`--node.staker.enable-fast-confirmation=true`);
console.log(`--node.staker.fast-confirm-safe-address=${safeAddress}`);
Expand Down

0 comments on commit 36fd6fe

Please sign in to comment.