Skip to content

Commit

Permalink
Merge pull request #517 from ethereum/dev
Browse files Browse the repository at this point in the history
Release dev -> master
  • Loading branch information
wackerow authored Jul 1, 2022
2 parents 00d849b + c46a1e9 commit fdbd580
Show file tree
Hide file tree
Showing 9 changed files with 407 additions and 197 deletions.
54 changes: 54 additions & 0 deletions src/components/ClientDiversityWarning.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// Libary imports
import React from 'react';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
// Component imports
import { Text } from './Text';
import { Link } from './Link';

const Container = styled(Text as any)`
background: #ffdeb32e;
border: 1px solid burlywood;
padding: 30px;
border-radius: 4px;
`;

export interface ClientDiversityWarningProps {
children: React.ReactNode;
className?: string;
}

export const ClientDiversityWarning = (props: ClientDiversityWarningProps) => {
const { children, className } = props;
return (
<Container className={className}>
{!!children && <p>{children}</p>}
<p>
<FormattedMessage
defaultMessage="Client diversity is extremely important for the network health of Ethereum:
A bug in a client with a share of over 33% can cause Ethereum to go offline. If the client has
a supermajority (>66%), a bug could cause the chain to incorrectly split, potentially leading to
slashing."
/>
</p>
<p>
<FormattedMessage defaultMessage="If at all possible, consider running another client at this time to help protect yourself and the network." />
</p>
<ul>
<li>
<Link
to="https://ethereum.org/en/developers/docs/nodes-and-clients/client-diversity/"
primary
>
<FormattedMessage defaultMessage="More on client diversity" />
</Link>
</li>
<li>
<Link to="https://clientdiversity.org/" primary>
<FormattedMessage defaultMessage="Latest data on network client usage" />
</Link>
</li>
</ul>
</Container>
);
};
Loading

0 comments on commit fdbd580

Please sign in to comment.