Skip to content

Commit 55fa983

Browse files
committed
fix build
1 parent 1cbcc30 commit 55fa983

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/jormungandr/jcli/src/jcli_lib/transaction/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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),

src/jormungandr/jormungandr/src/blockchain/candidate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 { .. } => {

src/jormungandr/jormungandr/src/rest/v0/logic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")]

src/jormungandr/jormungandr/src/rest/v1/logic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")]

0 commit comments

Comments
 (0)