Skip to content

Commit

Permalink
[ADP-3476] Bump cardano-node-runtime flake input (#4835)
Browse files Browse the repository at this point in the history
- bump the cardano-node-runtime input

ADP-3476
  • Loading branch information
paolino authored Nov 15, 2024
2 parents b49617f + d9e5df5 commit c3a6712
Show file tree
Hide file tree
Showing 7 changed files with 449 additions and 84 deletions.
45 changes: 14 additions & 31 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions lib/api/src/Cardano/Wallet/Api/Http/Shelley/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@ import Cardano.Wallet.Transaction
, Withdrawal (..)
, WitnessCount (..)
, WitnessCountCtx (..)
, containsSelfWithdrawal
, defaultTransactionCtx
)
import Cardano.Wallet.Unsafe
Expand Down Expand Up @@ -2289,6 +2290,8 @@ postTransactionOld ctx@ApiLayer{..} argGenChange (ApiT wid) body = do
let outs = addressAmountToTxOut <$> body ^. #payments
let md = body ^? #metadata . traverse . #txMetadataWithSchema_metadata
let mTTL = body ^? #timeToLive . traverse . #getQuantity
(Write.PParamsInAnyRecentEra era _, _)
<- liftIO $ W.readNodeTipStateForTxWrite netLayer
withWorkerCtx ctx wid liftE liftE $ \wrk -> do
let db = wrk ^. dbLayer
ttl <- liftIO $ W.transactionExpirySlot ti mTTL
Expand All @@ -2300,6 +2303,8 @@ postTransactionOld ctx@ApiLayer{..} argGenChange (ApiT wid) body = do
(txWitnessTagForKey $ keyOfWallet $ walletFlavor @s)
db
apiWdrl
when (containsSelfWithdrawal wdrl) $
liftHandler $ W.assertIsVoting db era
let txCtx = defaultTransactionCtx
{ txWithdrawal = wdrl
, txMetadata = md
Expand Down
Loading

0 comments on commit c3a6712

Please sign in to comment.