Skip to content

Commit beb4795

Browse files
authored
Merge pull request #4978 from stacks-network/fix/existing-chainstate
Support existing chainstate
2 parents 175d807 + e01e40d commit beb4795

File tree

1 file changed

+5
-0
lines changed
  • stackslib/src/chainstate/burn/operations

1 file changed

+5
-0
lines changed

stackslib/src/chainstate/burn/operations/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ pub struct LeaderBlockCommitOp {
249249
/// of the PoX addresses active during the block commit.
250250
///
251251
/// This value is set by the check() call, not during parsing.
252+
#[serde(default = "default_treatment")]
252253
pub treatment: Vec<Treatment>,
253254

254255
// PoX sunset burn
@@ -261,6 +262,10 @@ pub struct LeaderBlockCommitOp {
261262
pub burn_header_hash: BurnchainHeaderHash, // hash of the burn chain block header
262263
}
263264

265+
fn default_treatment() -> Vec<Treatment> {
266+
Vec::new()
267+
}
268+
264269
#[derive(Debug, PartialEq, Clone, Eq, Serialize, Deserialize)]
265270
pub struct LeaderKeyRegisterOp {
266271
pub consensus_hash: ConsensusHash, // consensus hash at time of issuance

0 commit comments

Comments
 (0)