Skip to content

Commit

Permalink
evil: #976 - after #1017 proposal must not include any invalid txs
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Apr 7, 2023
1 parent 723dd3f commit a2545a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/src/lib/node/ledger/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ impl ErrorCodes {
// NOTE: pattern match on all `ErrorCodes` variants, in order
// to catch potential bugs when adding new codes
match self {
Ok | InvalidTx | InvalidSig | WasmRuntimeError => true,
InvalidOrder | ExtraTxs | Undecryptable | AllocationError
| ReplayTx => false,
Ok => true,
InvalidTx | InvalidSig | WasmRuntimeError | InvalidOrder
| ExtraTxs | Undecryptable | AllocationError | ReplayTx => false,
}
}
}
Expand Down

0 comments on commit a2545a1

Please sign in to comment.