Skip to content

Commit

Permalink
allow transactions with 0 witnesses to run
Browse files Browse the repository at this point in the history
  • Loading branch information
mkv-vcm committed Sep 27, 2021
1 parent b5cee64 commit ad4e90d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/signTx.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ static inline void advanceStage()
// wait for mint APDU
break;
}

// intentional fallthrough

case SIGN_STAGE_BODY_MINT:
Expand All @@ -199,7 +200,11 @@ static inline void advanceStage()
ctx->stage = SIGN_STAGE_WITNESSES;
initTxWitnessCtx();

break;
if (ctx->numWitnesses > 0) {
break;
}

// intentional fallthrough

case SIGN_STAGE_WITNESSES:
ctx->stage = SIGN_STAGE_NONE;
Expand Down

0 comments on commit ad4e90d

Please sign in to comment.