Skip to content

Commit

Permalink
account for maxTxDataBytes when inserting oracle tx in to block prop
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-soon committed Mar 8, 2024
1 parent ab6d575 commit c96342c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions state/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ func (blockExec *BlockExecutor) CreateProposalBlock(

if len(signGossipVoteTxBz) > 0 {
maxReapBytes -= int64(len(signGossipVoteTxBz))
maxDataBytes -= int64(len(signGossipVoteTxBz))
txs = blockExec.mempool.ReapMaxBytesMaxGas(maxReapBytes, maxGas)
signGossipVoteTx := types.Tx(signGossipVoteTxBz)
txs = append([]types.Tx{signGossipVoteTx}, txs...)
Expand Down

0 comments on commit c96342c

Please sign in to comment.