From bc19975a8a9bcd1d47e3e20438153a1ed29690e4 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 10 Apr 2023 02:51:44 -0400 Subject: [PATCH] Update Bitcoin confirmations from 3 to 6 While Bitcoin practically doesn't have long re-orgs, it is possible for a single miner to build a long chain. Recently, a miner found 5 blocks in a row, which would be enough to re-org a transaction Serai considered finalized. --- processor/src/coins/bitcoin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/src/coins/bitcoin.rs b/processor/src/coins/bitcoin.rs index b780c71a..c3cd32f2 100644 --- a/processor/src/coins/bitcoin.rs +++ b/processor/src/coins/bitcoin.rs @@ -288,7 +288,7 @@ impl Coin for Bitcoin { const NETWORK: NetworkId = BITCOIN_NET_ID; const ID: &'static str = "Bitcoin"; - const CONFIRMATIONS: usize = 3; + const CONFIRMATIONS: usize = 6; // 0.0001 BTC, 10,000 satoshis #[allow(clippy::inconsistent_digit_grouping)]