Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
fix: Incorrect txn hash in find_transaction_object response
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrvivian committed Mar 6, 2019
1 parent 0ce6158 commit 122a4ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accelerator/common_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ int ta_get_transaction_object(const iota_client_service_t* const service,
retcode_t ret = RC_OK;
flex_trit_t tx_trits[FLEX_TRIT_SIZE_8019];
flex_trit_t hash_trits[NUM_TRITS_HASH];
flex_trits_from_trytes(hash_trits, NUM_TRITS_HASH, (const tryte_t*)req,
NUM_TRYTES_HASH, NUM_TRYTES_HASH);
char cache_value[FLEX_TRIT_SIZE_8019] = {0};

// get raw transaction data of transaction hashes
Expand All @@ -335,8 +337,6 @@ int ta_get_transaction_object(const iota_client_service_t* const service,
tx_trits, NUM_TRITS_SERIALIZED_TRANSACTION, (const tryte_t*)cache_value,
NUM_TRYTES_SERIALIZED_TRANSACTION, NUM_TRYTES_SERIALIZED_TRANSACTION);
} else {
flex_trits_from_trytes(hash_trits, NUM_TRITS_HASH, (const tryte_t*)req,
NUM_TRYTES_HASH, NUM_TRYTES_HASH);
ret = hash243_queue_push(&get_trytes_req->hashes, hash_trits);
if (ret) {
goto done;
Expand Down

0 comments on commit 122a4ab

Please sign in to comment.