Skip to content

Commit

Permalink
fix: fix conway tx crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenQian committed Dec 9, 2024
1 parent 979b290 commit 351793b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
11 changes: 2 additions & 9 deletions rust/rust_c/src/cardano/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ use crate::alloc::string::ToString;
use crate::structs::DisplayCardanoTx;
use alloc::vec::Vec;
use alloc::{format, slice};
use alloc::{
string::{String, ToString},
vec,
};

use alloc::vec::Vec;
use core::str::FromStr;

use alloc::{string::String, vec};
use app_cardano::address::derive_xpub_from_xpub;
Expand All @@ -21,16 +14,16 @@ use app_cardano::governance;
use app_cardano::structs::{CardanoCertKey, CardanoUtxo, ParseContext};
use app_cardano::transaction::calc_icarus_master_key;
use bitcoin::bip32::DerivationPath;
use core::str::FromStr;
use cty::c_char;
use cip8_cbor_data_ledger::CardanoCip8SigStructureLedgerType;
use common_rust_c::errors::{RustCError, R};
use common_rust_c::extract_ptr_with_type;
use common_rust_c::structs::{SimpleResponse, TransactionCheckResult, TransactionParseResult};
use common_rust_c::types::{Ptr, PtrBytes, PtrString, PtrT, PtrUR};
use common_rust_c::ur::{UREncodeResult, FRAGMENT_MAX_LENGTH_DEFAULT, FRAGMENT_UNLIMITED_LENGTH};
use common_rust_c::utils::{convert_c_char, recover_c_char};
use core::str::FromStr;
use cryptoxide::hashing::blake2b_224;
use cty::c_char;
use ed25519_bip32_core::XPrv;
use hex;
use structs::DisplayCardanoSignTxHash;
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/background_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void CreateBackgroundTask(void)
{
const osThreadAttr_t backgroundTask_attributes = {
.name = "BackgroundTask",
.stack_size = 1024 * 8,
.stack_size = 1024 * 4,
.priority = (osPriority_t)osPriorityBelowNormal,
};
g_backgroundTaskHandle = osThreadNew(BackgroundTask, NULL, &backgroundTask_attributes);
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/data_parser_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void CreateDataParserTask(void)
{
const osThreadAttr_t dataParserTask_attributes = {
.name = "data_parser_task",
.stack_size = 1024 * 16,
.stack_size = 1024 * 28,
.priority = (osPriority_t)osPriorityHigh,
};
g_dataParserHandle = osThreadNew(DataParserTask, NULL, &dataParserTask_attributes);
Expand Down

0 comments on commit 351793b

Please sign in to comment.