mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-28 19:59:37 +00:00
another round of review
This commit is contained in:
@@ -5342,9 +5342,11 @@ nonSpaceTextP = safeDecodeUtf8 <$> A.takeTill (== ' ')
|
||||
defaultNameTtl :: NameTtl
|
||||
defaultNameTtl = 31536000
|
||||
|
||||
-- | Hardcoded commit→reveal wait in ms, standing in for the on-chain minimum commitment age.
|
||||
-- | Hardcoded commit→reveal wait in ms, standing in for the on-chain minimum
|
||||
-- commitment age. Deliberately longer than the age the service enforces: waiting
|
||||
-- exactly the minimum makes every registration a race against its own clock.
|
||||
commitWaitMs :: Word32
|
||||
commitWaitMs = 1000
|
||||
commitWaitMs = 1500
|
||||
|
||||
firstNameLink :: ContactConnType -> [Text] -> Maybe (ConnShortLink 'CMContact)
|
||||
firstNameLink ctType = foldr (\t r -> nameLink t <|> r) Nothing
|
||||
|
||||
Reference in New Issue
Block a user