Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
bing
Browse files Browse the repository at this point in the history
  • Loading branch information
Devon Bear committed Oct 23, 2023
1 parent a71398b commit 54824b8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cosmos/miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ package miner

import (
"context"
"errors"
"time"

abci "github.com/cometbft/cometbft/abci/types"
Expand Down Expand Up @@ -74,9 +73,7 @@ func (m *Miner) PrepareProposal(
) (*abci.ResponsePrepareProposal, error) {
var payloadEnvelopeBz []byte
var err error
if payloadEnvelopeBz, err = m.buildBlock(ctx); errors.Is(err, context.DeadlineExceeded) {
return nil, err
} else if err != nil {
if payloadEnvelopeBz, err = m.buildBlock(ctx); err != nil {
return nil, err
}
return &abci.ResponsePrepareProposal{Txs: [][]byte{payloadEnvelopeBz}}, err
Expand Down

0 comments on commit 54824b8

Please sign in to comment.