thehubbleproject / hubble-contracts

Hubble optimistic rollup
https://thehubbleproject.github.io/docs/
MIT License
133 stars 28 forks source link

Allow node operators to specify number of confirmations neded for L1 txns #616

Open jacque006 opened 3 years ago

jacque006 commented 3 years ago

Problem

Currently, we consider all L1 transactions valid after 1 confirmations. In mainnet scenarios, this is rather naive and we need to wait for additional confirmations.

Relevant discussion: https://ethereum.stackexchange.com/questions/319/what-number-of-confirmations-is-considered-secure-in-ethereum

Solution

Allow node operators to specify how many confirmations they would like for L1 txns via a config field such as l1Confirmations. Default to 1 per current behavior.