Skip to content

Commit

Permalink
protocol: Add block hash to state proof's LightBlockHeader (algorand#589
Browse files Browse the repository at this point in the history
)
  • Loading branch information
zeldovich authored and d13co committed Aug 29, 2024
1 parent fcc30ce commit 7db0a2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions protocol/config/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,11 @@ type ConsensusParams struct {
// their account balances.
StateProofExcludeTotalWeightWithRewards bool

// StateProofBlockHashInLightHeader specifies that the LightBlockHeader
// committed to by state proofs should contain the BlockHash of each
// block, instead of the seed.
StateProofBlockHashInLightHeader bool

// EnableAssetCloseAmount adds an extra field to the ApplyData. The field contains the amount of the remaining
// asset that were sent to the close-to address.
EnableAssetCloseAmount bool
Expand Down
1 change: 1 addition & 0 deletions types/lightBlockHeader.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type LightBlockHeader struct {
_struct struct{} `codec:",omitempty,omitemptyarray"`

Seed Seed `codec:"0"`
BlockHash Digest `codec:"1"`
RoundNumber Round `codec:"r"`
GenesisHash Digest `codec:"gh"`
Sha256TxnCommitment Digest `codec:"tc,allocbound=Sha256Size"`
Expand Down

0 comments on commit 7db0a2b

Please sign in to comment.