-
Notifications
You must be signed in to change notification settings - Fork 772
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1032 from ethereumjs/add-clique-support
Add Clique Support
- Loading branch information
Showing
38 changed files
with
2,556 additions
and
558 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { BN } from 'ethereumjs-util' | ||
|
||
// Fixed number of extra-data prefix bytes reserved for signer vanity | ||
export const CLIQUE_EXTRA_VANITY = 32 | ||
// Fixed number of extra-data suffix bytes reserved for signer seal | ||
export const CLIQUE_EXTRA_SEAL = 65 | ||
|
||
// Block difficulty for in-turn signatures | ||
export const CLIQUE_DIFF_INTURN = new BN(2) | ||
// Block difficulty for in-turn signatures | ||
export const CLIQUE_DIFF_NOTURN = new BN(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.