-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add wen_restart module: - Implement reading LastVotedForkSlots from blockstore. - Add proto file to record the intermediate results. - Also link wen_restart into validator. - Move recreation of tower outside replay_stage so we can get last_vote. * Update lock file. * Fix linter errors. * Fix depencies order. * Update wen_restart explanation and small fixes. * Generate tower outside tvu. * Update validator/src/cli.rs Co-authored-by: Tyera <[email protected]> * Update wen-restart/protos/wen_restart.proto Co-authored-by: Tyera <[email protected]> * Update wen-restart/build.rs Co-authored-by: Tyera <[email protected]> * Update wen-restart/src/wen_restart.rs Co-authored-by: Tyera <[email protected]> * Rename proto directory. * Rename InitRecord to MyLastVotedForkSlots, add imports. * Update wen-restart/Cargo.toml Co-authored-by: Tyera <[email protected]> * Update wen-restart/src/wen_restart.rs Co-authored-by: Tyera <[email protected]> * Move prost-build dependency to project toml. * No need to continue if the distance between slot and last_vote is already larger than MAX_SLOTS_ON_VOTED_FORKS. * Use 16k slots instead of 81k slots, a few more wording changes. * Use AncestorIterator which does the same thing. * Update Cargo.lock * Update Cargo.lock --------- Co-authored-by: Tyera <[email protected]>
- Loading branch information
1 parent
f075867
commit 630feed
Showing
15 changed files
with
387 additions
and
18 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,43 @@ | ||
[package] | ||
name = "solana-wen-restart" | ||
description = "Automatic repair and restart protocol" | ||
documentation = "https://github.com/solana-foundation/solana-improvement-documents/pull/46" | ||
version = { workspace = true } | ||
authors = { workspace = true } | ||
repository = { workspace = true } | ||
homepage = { workspace = true } | ||
license = { workspace = true } | ||
edition = { workspace = true } | ||
publish = false | ||
|
||
[dependencies] | ||
log = { workspace = true } | ||
prost = { workspace = true } | ||
prost-types = { workspace = true } | ||
solana-gossip = { workspace = true } | ||
solana-ledger = { workspace = true } | ||
solana-logger = { workspace = true } | ||
solana-program = { workspace = true } | ||
solana-runtime = { workspace = true } | ||
solana-sdk = { workspace = true } | ||
solana-vote-program = { workspace = true } | ||
|
||
[dev-dependencies] | ||
serial_test = { workspace = true } | ||
solana-entry = { workspace = true } | ||
solana-streamer = { workspace = true } | ||
|
||
[build-dependencies] | ||
prost-build = { workspace = true } | ||
rustc_version = { workspace = true } | ||
|
||
# windows users should install the protobuf compiler manually and set the PROTOC | ||
# envar to point to the installed binary | ||
[target."cfg(not(windows))".build-dependencies] | ||
protobuf-src = { workspace = true } | ||
|
||
[lib] | ||
name = "solana_wen_restart" | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] |
Oops, something went wrong.