Skip to content

Commit fdbd580

Browse files
authored
Merge pull request #517 from ethereum/dev
Release dev -> master
2 parents 00d849b + c46a1e9 commit fdbd580

File tree

9 files changed

+407
-197
lines changed

9 files changed

+407
-197
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// Libary imports
2+
import React from 'react';
3+
import styled from 'styled-components';
4+
import { FormattedMessage } from 'react-intl';
5+
// Component imports
6+
import { Text } from './Text';
7+
import { Link } from './Link';
8+
9+
const Container = styled(Text as any)`
10+
background: #ffdeb32e;
11+
border: 1px solid burlywood;
12+
padding: 30px;
13+
border-radius: 4px;
14+
`;
15+
16+
export interface ClientDiversityWarningProps {
17+
children: React.ReactNode;
18+
className?: string;
19+
}
20+
21+
export const ClientDiversityWarning = (props: ClientDiversityWarningProps) => {
22+
const { children, className } = props;
23+
return (
24+
<Container className={className}>
25+
{!!children && <p>{children}</p>}
26+
<p>
27+
<FormattedMessage
28+
defaultMessage="Client diversity is extremely important for the network health of Ethereum:
29+
A bug in a client with a share of over 33% can cause Ethereum to go offline. If the client has
30+
a supermajority (>66%), a bug could cause the chain to incorrectly split, potentially leading to
31+
slashing."
32+
/>
33+
</p>
34+
<p>
35+
<FormattedMessage defaultMessage="If at all possible, consider running another client at this time to help protect yourself and the network." />
36+
</p>
37+
<ul>
38+
<li>
39+
<Link
40+
to="https://ethereum.org/en/developers/docs/nodes-and-clients/client-diversity/"
41+
primary
42+
>
43+
<FormattedMessage defaultMessage="More on client diversity" />
44+
</Link>
45+
</li>
46+
<li>
47+
<Link to="https://clientdiversity.org/" primary>
48+
<FormattedMessage defaultMessage="Latest data on network client usage" />
49+
</Link>
50+
</li>
51+
</ul>
52+
</Container>
53+
);
54+
};

0 commit comments

Comments
 (0)