rename loadblockextendedcommit -> loadextendedcommit

This commit is contained in:
William Banfield
2022-05-13 12:53:12 -04:00
parent ab83d3307d
commit 8935da8872
11 changed files with 23 additions and 27 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ func (r *Reactor) OnStop() {
func (r *Reactor) respondToPeer(ctx context.Context, msg *bcproto.BlockRequest, peerID types.NodeID, blockSyncCh *p2p.Channel) error {
block := r.store.LoadBlock(msg.Height)
if block != nil {
extCommit := r.store.LoadBlockExtendedCommit(msg.Height)
extCommit := r.store.LoadExtendedCommit(msg.Height)
if extCommit == nil {
return fmt.Errorf("found block in store without extended commit: %v", block)
}