Skip to content

Commit

Permalink
feat!: remove square size from block data (#1051)
Browse files Browse the repository at this point in the history
Closes #1045

Co-authored-by: Callum Waters <cmwaters19@gmail.com>
  • Loading branch information
rach-id and cmwaters authored Aug 25, 2023
1 parent ca1411a commit 8f3e050
Show file tree
Hide file tree
Showing 5 changed files with 121 additions and 174 deletions.
7 changes: 2 additions & 5 deletions abci/types/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package types

import (
"context"
"encoding/binary"

"github.com/cometbft/cometbft/crypto/tmhash"
)
Expand Down Expand Up @@ -96,10 +95,8 @@ func (BaseApplication) ApplySnapshotChunk(req RequestApplySnapshotChunk) Respons
}

func (BaseApplication) PrepareProposal(req RequestPrepareProposal) ResponsePrepareProposal {
// we use placeholder values for the hash and square size
squareSizeBytes := make([]byte, 8)
binary.BigEndian.PutUint64(squareSizeBytes, 0)
req.Txs = append(req.Txs, tmhash.Sum(nil), squareSizeBytes)
// we use placeholder values for the hash
req.Txs = append(req.Txs, tmhash.Sum(nil))
return ResponsePrepareProposal{Txs: req.Txs}
}

Expand Down
Loading

0 comments on commit 8f3e050

Please sign in to comment.