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 {
205
205
TxWithOwnerStakeDelegationHasOutputs ,
206
206
207
207
#[ error( transparent) ]
208
- Block0Error ( #[ from] block:: Error ) ,
208
+ Block0Error ( #[ from] Box < block:: Error > ) ,
209
209
210
210
#[ error( transparent) ]
211
211
AccountIdError ( #[ from] utils:: account_id:: Error ) ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ pub enum Error {
24
24
#[ error( "the incoming header stream is empty" ) ]
25
25
EmptyHeaderStream ,
26
26
#[ error( "header chain verification failed" ) ]
27
- Blockchain ( #[ from] chain:: Error ) ,
27
+ Blockchain ( #[ from] Box < chain:: Error > ) ,
28
28
#[ error( "the parent block {0} of the first received block header is not found in storage" ) ]
29
29
MissingParentBlock ( HeaderHash ) ,
30
30
#[ 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 {
78
78
stream,
79
79
} = state;
80
80
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 ) ) ) ?;
82
82
83
83
match pre_checked {
84
84
PreCheckedHeader :: AlreadyPresent { .. } => {
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ pub enum Error {
59
59
#[ error( transparent) ]
60
60
Deserialize ( ReadError ) ,
61
61
#[ error( transparent) ]
62
- TxMsgSendError ( #[ from] TrySendError < TransactionMsg > ) ,
62
+ TxMsgSendError ( #[ from] Box < TrySendError < TransactionMsg > > ) ,
63
63
#[ error( transparent) ]
64
64
MsgSendError ( #[ from] SendError ) ,
65
65
#[ error( "Block value calculation error" ) ]
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ pub enum Error {
35
35
#[ error( transparent) ]
36
36
Intercom ( #[ from] intercom:: Error ) ,
37
37
#[ error( transparent) ]
38
- TxMsgSend ( #[ from] TrySendError < TransactionMsg > ) ,
38
+ TxMsgSend ( #[ from] Box < TrySendError < TransactionMsg > > ) ,
39
39
#[ error( transparent) ]
40
40
MsgSend ( #[ from] SendError ) ,
41
41
#[ error( "Block value calculation error" ) ]
You can’t perform that action at this time.
0 commit comments