mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 06:31:57 +00:00
Fixed ProcessProposalSync
This commit is contained in:
+1
-2
@@ -141,13 +141,12 @@ func (blockExec *BlockExecutor) CreateProposalBlock(
|
||||
func (blockExec *BlockExecutor) ProcessProposal(
|
||||
block *types.Block,
|
||||
) (bool, error) {
|
||||
ctx := context.Background()
|
||||
req := abci.RequestProcessProposal{
|
||||
Txs: block.Data.Txs.ToSliceOfBytes(),
|
||||
Header: *block.Header.ToProto(),
|
||||
}
|
||||
|
||||
resp, err := blockExec.proxyApp.ProcessProposalSync(ctx, req)
|
||||
resp, err := blockExec.proxyApp.ProcessProposalSync(req)
|
||||
if err != nil {
|
||||
return false, ErrInvalidBlock(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user