diff --git a/CHANGELOG.md b/CHANGELOG.md index 1603e272..b892cc72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ Improvements: Bugs fixed: * context-bound PreBlock and PreHeader are not reset properly (#127) + * PreHeader is constructed instead of PreBlock to create PreCommit message (#128) ## [0.3.0] (01 August 2024) diff --git a/send.go b/send.go index 5b25e4e1..cc9c5082 100644 --- a/send.go +++ b/send.go @@ -104,7 +104,7 @@ func (c *Context[H]) makePreCommit() ConsensusPayload[H] { return msg } - if preB := c.MakePreHeader(); preB != nil { + if preB := c.CreatePreBlock(); preB != nil { var preData []byte if err := preB.SetData(c.Priv); err == nil { preData = preB.Data()