Skip to content

Commit

Permalink
Move commits closer to usage
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil committed Dec 10, 2024
1 parent 6614544 commit 4b168f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2p/starknet/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,12 @@ func (h *Handler) onHeadersRequest(req *spec.BlockHeadersRequest) (iter.Seq[prot
return nil, err
}

var commitments *core.BlockCommitments
blockVer, err := core.ParseBlockVersion(header.ProtocolVersion)
if err != nil {
return nil, err
}

var commitments *core.BlockCommitments
if blockVer.LessThan(core.Ver0_13_2) {
block, err := it.Block()
if err != nil {
Expand Down

0 comments on commit 4b168f3

Please sign in to comment.