Skip to content

Commit

Permalink
hertz check should be less than not less than equal (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
restevens402 authored and davedispatch committed Nov 13, 2018
1 parent 1e98529 commit bb1cb31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dapos/dapos_handshake.go
Expand Up @@ -432,7 +432,7 @@ func executeTransaction(transaction *types.Transaction, receipt *types.Receipt,
if err != nil {
utils.Error(err)
}
if availableHertz <= minHertzUsed {
if availableHertz < minHertzUsed {
msg := fmt.Sprintf("Account %s has a hertz balance of %d\n", fromAccount.Address, availableHertz)
utils.Error(msg)
receipt.SetStatusWithNewTransaction(services.GetDb(), types.StatusInsufficientHertz)
Expand Down

0 comments on commit bb1cb31

Please sign in to comment.