File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
jcli/src/jcli_lib/transaction Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ pub enum Error {
205205 TxWithOwnerStakeDelegationHasOutputs ,
206206
207207 #[ error( transparent) ]
208- Block0Error ( #[ from] block:: Error ) ,
208+ Block0Error ( #[ from] Box < block:: Error > ) ,
209209
210210 #[ error( transparent) ]
211211 AccountIdError ( #[ from] utils:: account_id:: Error ) ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ pub enum Error {
2424 #[ error( "the incoming header stream is empty" ) ]
2525 EmptyHeaderStream ,
2626 #[ error( "header chain verification failed" ) ]
27- Blockchain ( #[ from] chain:: Error ) ,
27+ Blockchain ( #[ from] Box < chain:: Error > ) ,
2828 #[ error( "the parent block {0} of the first received block header is not found in storage" ) ]
2929 MissingParentBlock ( HeaderHash ) ,
3030 #[ error( "the parent hash field {0} of a received block header does not match the hash of the preceding header" ) ]
@@ -78,7 +78,7 @@ mod chain_landing {
7878 stream,
7979 } = state;
8080
81- let pre_checked = blockchain. pre_check_header ( header, false ) . await ?;
81+ let pre_checked = blockchain. pre_check_header ( header, false ) . await . map_err ( |e| Error :: Blockchain ( Box :: new ( e ) ) ) ?;
8282
8383 match pre_checked {
8484 PreCheckedHeader :: AlreadyPresent { .. } => {
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ pub enum Error {
5959 #[ error( transparent) ]
6060 Deserialize ( ReadError ) ,
6161 #[ error( transparent) ]
62- TxMsgSendError ( #[ from] TrySendError < TransactionMsg > ) ,
62+ TxMsgSendError ( #[ from] Box < TrySendError < TransactionMsg > > ) ,
6363 #[ error( transparent) ]
6464 MsgSendError ( #[ from] SendError ) ,
6565 #[ error( "Block value calculation error" ) ]
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ pub enum Error {
3535 #[ error( transparent) ]
3636 Intercom ( #[ from] intercom:: Error ) ,
3737 #[ error( transparent) ]
38- TxMsgSend ( #[ from] TrySendError < TransactionMsg > ) ,
38+ TxMsgSend ( #[ from] Box < TrySendError < TransactionMsg > > ) ,
3939 #[ error( transparent) ]
4040 MsgSend ( #[ from] SendError ) ,
4141 #[ error( "Block value calculation error" ) ]
You can’t perform that action at this time.
0 commit comments