This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New slashing logic #570
Merged
Merged
New slashing logic #570
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b06b022
New slashing mechanism (#554)
gavofyork 8d85ecb
Remove accidental merge files.
gavofyork f46c603
Merge remote-tracking branch 'origin/master' into gav-new-pos
gavofyork 5d12d61
Version bump, fixes (#572)
gavofyork fd04ad7
Fix merge
gavofyork 15315de
Fix accidental merge bug
gavofyork bd579f1
Fixes.
gavofyork 42c5856
Staking failsafes
gavofyork dc6de6c
Make minimum validator count dynamic.
gavofyork b85cb38
test fixes
gavofyork 7192001
Fix tests.
gavofyork 5a19b7b
Fix tests
gavofyork bc9f55b
Fix tests, update readme.
gavofyork b6069c7
Merge remote-tracking branch 'origin/master' into gav-new-pos
gavofyork 97ed7b9
Test with release.
gavofyork 03631c6
Use safe math when dealing with total stake
gavofyork 94bebf6
Fix test again.
gavofyork 5d8bc21
Fix grumbles.
gavofyork File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,30 @@ | ||
# Substrate | ||
|
||
Framework for blockchain innovators. | ||
More to come here. | ||
Next-generation framework for blockchain innovation. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
|
||
## Description | ||
|
||
At its heart, Substrate is a combination of three technologies: WebAssembly, Libp2p and AfG Consensus. It is both a library for building new blockchains with and a "skeleton key" of a blockchain client, able to synchronise to any Substrate-based chain. | ||
|
||
Substrate chains have two distinct features that make them "next-generation": a dynamic, self-defining state-transition function and a progressive consensus algorithm with fast block production and adaptive, definite finality. The STF, encoded in WebAssembly, is known as the "runtime". This defines the `execute_block` function, and can specify everything from the staking algorithm, transaction semantics, logging mechanisms and governance procedures. Because the runtime is entirely dynamic all of these can be switched out or upgraded at any time. A Substrate chain is very much a "living organism". | ||
|
||
## Roadmap | ||
|
||
### So far | ||
|
||
- 0.1 "PoC-1": PBFT consensus, Wasm runtime engine, basic runtime modules. | ||
- 0.2 "PoC-2": Libp2p | ||
|
||
### In progress | ||
|
||
- AfG consensus | ||
- Improved PoS | ||
- Smart contract runtime module | ||
|
||
### The future | ||
|
||
- Splitting out runtime modules into separate repo | ||
- Introduce substrate executable (the skeleton-key runtime) | ||
- Introduce basic but extensible transaction queue and block-builder and place them in the executable. | ||
- DAO runtime module | ||
- Audit |
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
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to run tests in
--release
mode?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they go incredibly slow otherwise. the sync tests take ages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, thought as much. But I wonder maybe it is worth to add
RUSTFLAGS="-C debug-assertions"
?