-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ProposerVM Extend windows 0 - Cleanup (#2404)
Co-authored-by: Stephen Buttolph <[email protected]>
- Loading branch information
1 parent
477157d
commit 439dc1e
Showing
14 changed files
with
321 additions
and
234 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (C) 2019-2023, Ava Labs, Inc. All rights reserved. | ||
// See the file LICENSE for licensing terms. | ||
|
||
package proposervm | ||
|
||
import ( | ||
"crypto" | ||
"time" | ||
|
||
"github.com/ava-labs/avalanchego/staking" | ||
) | ||
|
||
type Config struct { | ||
// Time at which proposerVM activates its congestion control mechanism | ||
ActivationTime time.Time | ||
|
||
// Minimal P-chain height referenced upon block building | ||
MinimumPChainHeight uint64 | ||
|
||
// Configurable minimal delay among blocks issued consecutively | ||
MinBlkDelay time.Duration | ||
|
||
// Maximal number of block indexed. | ||
// Zero signals all blocks are indexed. | ||
NumHistoricalBlocks uint64 | ||
|
||
// Block signer | ||
StakingLeafSigner crypto.Signer | ||
|
||
// Block certificate | ||
StakingCertLeaf *staking.Certificate | ||
} |
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.