Skip to content

Commit

Permalink
shardData now holds proof structures
Browse files Browse the repository at this point in the history
  • Loading branch information
sstanculeanu committed Nov 21, 2024
1 parent c69b5c8 commit ffcdfdf
Show file tree
Hide file tree
Showing 5 changed files with 235 additions and 176 deletions.
5 changes: 5 additions & 0 deletions data/block/blockV2.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,11 @@ func (hv2 *HeaderV2) GetPreviousProof() data.HeaderProofHandler {

// SetPreviousProof sets the previous proof
func (hv2 *HeaderV2) SetPreviousProof(proof data.HeaderProofHandler) {
if check.IfNilReflect(proof) {
hv2.PreviousHeaderProof = nil
return
}

hv2.PreviousHeaderProof = &HeaderProof{
PubKeysBitmap: proof.GetPubKeysBitmap(),
AggregatedSignature: proof.GetAggregatedSignature(),
Expand Down
Loading

0 comments on commit ffcdfdf

Please sign in to comment.