-
Notifications
You must be signed in to change notification settings - Fork 159
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
Calibnet Support #1370
Merged
Merged
Calibnet Support #1370
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
899b440
scaffold network params
connormullett f18f887
Merge branch 'main' into connor/calibnet
connormullett bdeb708
Merge branch 'main' into connor/calibnet
connormullett 8c6d20c
add new option for consensus min miner power
connormullett d1a0cbf
fix drand schedule; enable features
connormullett 011af6e
add actor/calibnet feature
connormullett e2673f4
add calibnet feature to actor_interface
connormullett 04010c3
Merge branch 'main' into connor/calibnet
connormullett 0662347
debugging calibnet syncing
connormullett c5aaad4
Merge branch 'main' into connor/calibnet
connormullett e332842
add NL @ EOF
connormullett b202340
Merge branch 'main' into connor/calibnet
connormullett 92dbb55
syncs with calib net
ec2 ffa619d
Merge branch 'main' into connor/calibnet
connormullett 390d65d
Merge branch 'main' into connor/calibnet
q9f 7909b00
vm/actors: run cargo fmt
q9f 8857e16
Merge branch 'main' into connor/calibnet
q9f 8d59c63
forest: fix cli network version
q9f 02f44bf
test snapshot with more state
connormullett 4d03a3c
Merge branch 'connor/calibnet' of github.com:ChainSafe/forest into co…
connormullett 252e6ad
Merge branch 'main' into connor/calibnet
connormullett 177b8c7
fix for sync panics
connormullett 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,5 @@ serde_json = "1.0" | |
mainnet = [] | ||
interopnet = [] | ||
devnet = [] | ||
conformance = [] | ||
conformance = [] | ||
calibnet = [] |
Binary file not shown.
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,95 @@ | ||
// Copyright 2019-2022 ChainSafe Systems | ||
// SPDX-License-Identifier: Apache-2.0, MIT | ||
|
||
use super::{drand::DRAND_MAINNET, DrandPoint}; | ||
use clock::{ChainEpoch, EPOCH_DURATION_SECONDS}; | ||
use fil_types::NetworkVersion; | ||
|
||
/// Default genesis car file bytes. | ||
pub const DEFAULT_GENESIS: &[u8] = include_bytes!("genesis.car"); | ||
|
||
/// V1 network upgrade | ||
#[cfg(feature = "calibnet")] | ||
pub const UPGRADE_BREEZE_HEIGHT: ChainEpoch = -1; | ||
|
||
/// V2 network upgrade | ||
#[cfg(feature = "calibnet")] | ||
pub const UPGRADE_SMOKE_HEIGHT: ChainEpoch = -2; | ||
|
||
/// V3 network upgrade | ||
#[cfg(feature = "calibnet")] | ||
pub const UPGRADE_IGNITION_HEIGHT: ChainEpoch = -3; | ||
|
||
/// V4 network upgrade | ||
#[cfg(feature = "calibnet")] | ||
pub const UPGRADE_ACTORS_V2_HEIGHT: ChainEpoch = 30; | ||
|
||
/// V5 network upgrade | ||
#[cfg(feature = "calibnet")] | ||
pub const UPGRADE_TAPE_HEIGHT: ChainEpoch = 60; | ||
|
||
#[cfg(feature = "calibnet")] | ||
pub const UPGRADE_LIFTOFF_HEIGHT: i64 = -5; | ||
|
||
/// V6 network upgrade | ||
#[cfg(feature = "calibnet")] | ||
pub const UPGRADE_KUMQUAT_HEIGHT: ChainEpoch = 90; | ||
|
||
/// V7 network upgrade | ||
#[cfg(feature = "calibnet")] | ||
pub const UPGRADE_CALICO_HEIGHT: ChainEpoch = 120; | ||
|
||
/// V8 network upgrade | ||
#[cfg(feature = "calibnet")] | ||
pub const UPGRADE_PERSIAN_HEIGHT: ChainEpoch = 130; | ||
|
||
/// V9 network upgrade | ||
#[cfg(feature = "calibnet")] | ||
pub const UPGRADE_ORANGE_HEIGHT: ChainEpoch = 300; | ||
|
||
/// Remove burn on window PoSt fork | ||
#[cfg(feature = "calibnet")] | ||
pub const UPGRADE_CLAUS_HEIGHT: ChainEpoch = 270; | ||
|
||
/// V10 network upgrade | ||
#[cfg(feature = "calibnet")] | ||
pub const UPGRADE_ACTORS_V3_HEIGHT: ChainEpoch = 330; | ||
|
||
/// V11 network upgrade | ||
#[cfg(feature = "calibnet")] | ||
pub const UPGRADE_NORWEGIAN_HEIGHT: ChainEpoch = 360; | ||
|
||
/// V12 network upgrade | ||
#[cfg(feature = "calibnet")] | ||
pub const UPGRADE_ACTORS_V4_HEIGHT: ChainEpoch = 390; | ||
|
||
/// V13 network upgrade | ||
#[cfg(feature = "calibnet")] | ||
pub const UPGRADE_HYPERDRIVE_HEIGHT: ChainEpoch = 420; | ||
|
||
/// V14 network update | ||
#[cfg(feature = "calibnet")] | ||
pub const UPGRADE_ACTORS_V6_HEIGHT: ChainEpoch = 312746; | ||
|
||
pub const UPGRADE_PLACEHOLDER_HEIGHT: ChainEpoch = 9999999; | ||
|
||
/// Current network version for the network | ||
pub const NEWEST_NETWORK_VERSION: NetworkVersion = NetworkVersion::V14; | ||
|
||
/// Bootstrap peer ids | ||
pub const DEFAULT_BOOTSTRAP: &[&str] = &[ | ||
"/dns4/bootstrap-0.calibration.fildev.network/tcp/1347/p2p/12D3KooWJkikQQkxS58spo76BYzFt4fotaT5NpV2zngvrqm4u5ow", | ||
"/dns4/bootstrap-1.calibration.fildev.network/tcp/1347/p2p/12D3KooWLce5FDHR4EX4CrYavphA5xS3uDsX6aoowXh5tzDUxJav", | ||
"/dns4/bootstrap-2.calibration.fildev.network/tcp/1347/p2p/12D3KooWA9hFfQG9GjP6bHeuQQbMD3FDtZLdW1NayxKXUT26PQZu", | ||
"/dns4/bootstrap-3.calibration.fildev.network/tcp/1347/p2p/12D3KooWMHDi3LVTFG8Szqogt7RkNXvonbQYqSazxBx41A5aeuVz", | ||
]; | ||
|
||
lazy_static! { | ||
pub(super) static ref DRAND_SCHEDULE: [DrandPoint<'static>; 1] = [DrandPoint { | ||
height: 0, | ||
config: &*DRAND_MAINNET, | ||
},]; | ||
} | ||
|
||
/// Time, in seconds, between each block. | ||
pub const BLOCK_DELAY_SECS: u64 = EPOCH_DURATION_SECONDS as u64; |
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.
Should this be backported to
ref-fvm
? If I understand correctly, they have the same issue on their side so calibnet can't work with any implementation using ref-fvm, right? https://github.com/filecoin-project/ref-fvm/blob/lemmih/forest/ipld/hamt/src/node.rs#L396There 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.
Good question, I'm going to say yes. I'll open a PR on their side with the same fix and see what they say
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.
PR opened here: filecoin-project/ref-fvm#343
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.
Thank you!