Skip to content

Commit

Permalink
consensus: change extendVRNew argument order
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrisby committed Jul 22, 2021
1 parent 6cef814 commit 4c6bc9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -156,7 +156,7 @@ pureTryAddTxs cfg txSize tx is
(isMempoolSize is)
)
where
(eVtx, vr) = extendVRNew cfg tx txSize $ validationResultFromIS is
(eVtx, vr) = extendVRNew cfg txSize tx $ validationResultFromIS is
is' = internalStateFromVR vr

-- | A datatype containing the state resulting after removing the requested
Expand Down
Expand Up @@ -220,13 +220,13 @@ extendVRPrevApplied cfg txTicket vr =
-- again.
extendVRNew :: (LedgerSupportsMempool blk, HasTxId (GenTx blk))
=> LedgerConfig blk
-> GenTx blk
-> (GenTx blk -> TxSizeInBytes)
-> GenTx blk
-> ValidationResult (GenTx blk) blk
-> ( Either (ApplyTxErr blk) (Validated (GenTx blk))
, ValidationResult (GenTx blk) blk
)
extendVRNew cfg tx txSize vr = assert (isNothing vrNewValid) $
extendVRNew cfg txSize tx vr = assert (isNothing vrNewValid) $
case runExcept (applyTx cfg vrSlotNo tx vrAfter) of
Left err ->
( Left err
Expand Down

0 comments on commit 4c6bc9b

Please sign in to comment.