Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release master -> mainnet #518

Merged
merged 11 commits into from
Jul 5, 2022
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