Skip to content

Commit

Permalink
chore: require 5 blocks for mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodylow committed Aug 16, 2024
1 parent 6c4c8f6 commit 74d4c69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,14 @@ export const BitcoinSettingsForm: React.FC<BitcoinSettingsFormProps> = ({
<NumberFormControl
isDisabled={bitcoinSetFromParams}
labelText={t('set-config.block-confirmations')}
helperText={t('set-config.block-confirmations-help')}
helperText={
network === Network.Bitcoin
? t('set-config.block-confirmations-help-mainnet')
: t('set-config.block-confirmations-help')
}
warningText={t('set-config.block-confirmations-warning')}
recommendedMin={5}
min={0}
min={network === Network.Bitcoin ? 5 : 0}
max={200}
value={blockConfirmations}
onChange={(value) => {
Expand Down
1 change: 1 addition & 0 deletions apps/guardian-ui/src/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@
"bitcoin-settings": "Bitcoin settings",
"block-confirmations": "Additional Block Confirmations",
"block-confirmations-help": "Fedimint Guardians trail the blockchain tip by several confirmations to avoid block reorganizations.",
"block-confirmations-help-mainnet": "Running on Mainnet requires at least 5 additional confirmations.",
"block-confirmations-warning": "Running Fedimint with less than 5 additional block confirmations is extremely risky! Fedimint CANNOT handle blockchain reorganizations.",
"bitcoin-network": "Bitcoin Network",
"select-network": "Select a network",
Expand Down

0 comments on commit 74d4c69

Please sign in to comment.