Skip to content

Conversation

intricate
Copy link
Contributor

Closes #1118

@intricate intricate self-assigned this Jun 9, 2020
@intricate intricate force-pushed the intricate/1118-cli-exit-codes branch from cbf015e to 0651ee5 Compare June 9, 2020 17:49
TxSubmitFailureShelley err -> liftIO $ print err
TxSubmitSuccess -> return ()
TxSubmitFailureShelley _ -> left (ShelleyTxSubmitError result)
TxSubmitFailureByron _ -> left (ShelleyTxSubmitError result)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it not odd that we're able to submit Byron transactions from this command?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should get sorted out as we flesh out the typed API

@@ -69,6 +70,8 @@ renderShelleyTxCmdError err =
"Error while writing signed shelley tx: " <> renderApiError apiError
ShelleyTxWriteUnsignedTxError apiError ->
"Error while writing unsigned shelley tx: " <> renderApiError apiError
ShelleyTxSubmitError txSubmitRes ->
"Error while submitting Shelley tx: " <> textShow txSubmitRes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should write a renderTxSubmitError function here to provide more context with the errors vs just showing them.

@dcoutts
Copy link
Contributor

dcoutts commented Jun 10, 2020

bors merge

iohk-bors bot added a commit that referenced this pull request Jun 10, 2020
1223: CAD-1135: Max Mempool size. r=dcoutts a=denisshevchenko

Now maximum value of mempool (both txs size + txs number) aren't fixed, but it's based on real maximum values received from tracers.

1226: Return the error cases in runTxSubmit r=dcoutts a=intricate

Closes #1118 

1227: Yet more additions to the typed API r=dcoutts a=dcoutts

Representations and serialisation for TxId, TxBody and Tx.

Does not yet include round trip tests.

1229: Remove class HasTxMaxSize r=dcoutts a=dcoutts

getMaxTxSize is no longer used as it has been replaced by maxTxSize
from the LedgerSupportsMempool class.

Co-authored-by: Denis Shevchenko <denis.shevchenko@iohk.io>
Co-authored-by: Luke Nadur <19835357+intricate@users.noreply.github.com>
Co-authored-by: Duncan Coutts <duncan@well-typed.com>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 10, 2020

This PR was included in a batch that was canceled, it will be automatically retried

@dcoutts
Copy link
Contributor

dcoutts commented Jun 10, 2020

bors merge

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 10, 2020

Already running a review

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 10, 2020

@iohk-bors iohk-bors bot merged commit 515be17 into master Jun 10, 2020
@iohk-bors iohk-bors bot deleted the intricate/1118-cli-exit-codes branch June 10, 2020 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] - cardano-cli does not exit with correct errorcode
3 participants