Skip to content

Commit

Permalink
fix(bpos): add ChangeSideChainMinGasPrice proposal to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
RainFallsSilent committed Nov 6, 2023
1 parent 660a3a0 commit 328845e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/transaction/transaction.go
Expand Up @@ -353,7 +353,8 @@ func (tx *BaseTransaction) IsCustomIDRelatedTx() bool {
p, _ := tx.payload.(*payload.CRCProposal)
return p.ProposalType == payload.ReserveCustomID ||
p.ProposalType == payload.ReceiveCustomID ||
p.ProposalType == payload.ChangeCustomIDFee
p.ProposalType == payload.ChangeCustomIDFee ||
p.ProposalType == payload.ChangeSideChainMinGasPrice
}
if tx.IsCustomIDResultTx() {
return true
Expand Down Expand Up @@ -410,7 +411,7 @@ func (tx *BaseTransaction) IsIllegalTypeTx() bool {
return tx.IsIllegalProposalTx() || tx.IsIllegalVoteTx() || tx.IsIllegalBlockTx() || tx.IsSidechainIllegalDataTx()
}

//special tx is this kind of tx who have no input and output
// special tx is this kind of tx who have no input and output
func (tx *BaseTransaction) IsSpecialTx() bool {
if tx.IsIllegalTypeTx() || tx.IsInactiveArbitrators() || tx.IsNextTurnDPOSInfoTx() {
return true
Expand Down

0 comments on commit 328845e

Please sign in to comment.