Skip to content

Commit

Permalink
fix tracing msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
janmazak committed Oct 24, 2020
1 parent 2a277a5 commit 192e9a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/signTx.c
Expand Up @@ -125,6 +125,8 @@ static inline void advanceStage()
// sub-machine is finished, or when other type of certificate is processed
static inline void advanceCertificatesStateIfAppropriate()
{
TRACE("%u", ctx->stage);

if (ctx->stage == SIGN_STAGE_CERTIFICATES) {
ASSERT(ctx->currentCertificate < ctx->numCertificates);

Expand Down
1 change: 1 addition & 0 deletions src/signTxPoolRegistration.c
Expand Up @@ -361,6 +361,7 @@ static void signTxPoolRegistration_handleOwnerAPDU(uint8_t* wireDataBuffer, size
case SIGN_TX_POOL_OWNER_TYPE_PATH:
view_skipBytes(&view, bip44_parseFromWire(&subctx->owner.path, VIEW_REMAINING_TO_TUPLE_BUF_SIZE(&view)));
// further validation of the path in security policy below
TRACE("Owner given by path:");
BIP44_PRINTF(&subctx->owner.path);
VALIDATE(view_remainingSize(&view) == 0, ERR_INVALID_DATA);

Expand Down
2 changes: 1 addition & 1 deletion src/txHashBuilder.c
Expand Up @@ -394,7 +394,7 @@ void txHashBuilder_addPoolRegistrationCertificate_addOwner(

void txHashBuilder_addPoolRegistrationCertificate_enterRelays(tx_hash_builder_t* builder)
{
TRACE("txHashBuilder_addPoolRegistrationCertificate_addOwner: %d", builder->state);
TRACE("txHashBuilder_addPoolRegistrationCertificate_enterRelays: %d", builder->state);

// enter empty owners if none were received
if (builder->state == TX_HASH_BUILDER_IN_CERTIFICATES_POOL)
Expand Down

0 comments on commit 192e9a8

Please sign in to comment.