Skip to content

Commit

Permalink
fix(mempool): allow requests with 0 funds if chain is set for 0 fees
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemmsilva committed May 6, 2024
1 parent af9f243 commit 789964e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/chain/mempool/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ func (mpi *mempoolImpl) shouldAddOffledgerRequest(req isc.OffLedgerRequest) erro
governanceState := governance.NewStateAccess(mpi.chainHeadState)
chainOwner := governanceState.ChainOwnerID()
isGovRequest := req.SenderAccount().Equals(chainOwner) && req.CallTarget().Contract == governance.Contract.Hname()
if !isGovRequest {
if !isGovRequest || governanceState.DefaultGasPrice().Cmp(util.Big0) == 0 {
return fmt.Errorf("no funds on chain")
}
}
Expand Down

0 comments on commit 789964e

Please sign in to comment.