Skip to content

Commit

Permalink
fix process proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
cmwaters committed Aug 23, 2023
1 parent 6ae7e20 commit 8859c76
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions state/execution.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package state

import (
"encoding/binary"
"errors"
"fmt"
"time"
Expand Down Expand Up @@ -168,11 +167,9 @@ func (blockExec *BlockExecutor) ProcessProposal(
state State,
) (bool, error) {

// Similar to PrepareProposal, the last two transactions provided to Celestia
// in ProcessProposal are the data hash and square size respectively
squareSizeBytes := make([]byte, 8)
binary.BigEndian.PutUint64(squareSizeBytes, block.Data.SquareSize)
txs := append(block.Data.Txs.ToSliceOfBytes(), block.DataHash, squareSizeBytes)
// Similar to PrepareProposal, the last transaction provided to Celestia
// in ProcessProposal is the data hash
txs := append(block.Data.Txs.ToSliceOfBytes(), block.DataHash)

resp, err := blockExec.proxyApp.ProcessProposalSync(abci.RequestProcessProposal{
Hash: block.Header.Hash(),
Expand Down

0 comments on commit 8859c76

Please sign in to comment.