-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[nano] remove blind large tx option #297
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,9 +63,14 @@ typedef enum { | |
} main_step_t; | ||
|
||
typedef enum { | ||
#ifdef HAVE_BAGL | ||
ST_BLINDSIGN_OFF = 0, | ||
ST_BLINDSIGN_ON | ||
#else | ||
ST_BLINDSIGN_LARGE_TX = 0, | ||
ST_BLINDSIGN_ON = 1, | ||
ST_BLINDSIGN_OFF = 2 | ||
#endif | ||
} blindsign_state_t; | ||
|
||
#ifdef TARGET_NANOS | ||
|
@@ -76,11 +81,13 @@ typedef enum { | |
#define NB_MAX_SCREEN_ALLOWED 8 | ||
#endif | ||
|
||
#ifdef HAVE_NBGL | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you sure you dont need the reason, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The two flow are different, so no need to differentiate the case later:
|
||
typedef enum { | ||
REASON_NONE = 0, | ||
REASON_PARSING_ERROR = 1, | ||
REASON_TOO_MANY_SCREENS = 2 | ||
} blindsign_reason_t; | ||
#endif | ||
|
||
/** | ||
* @brief Global structure holding state of operations and buffer of the data | ||
|
@@ -114,9 +121,9 @@ typedef struct { | |
/// "ON" , "OFF" | ||
#endif | ||
|
||
blindsign_reason_t | ||
blindsign_reason; /// Blindsigning flow Summary or parsing error. | ||
#ifdef HAVE_NBGL | ||
blindsign_reason_t | ||
blindsign_reason; /// Blindsigning flow Summary or parsing error. | ||
char error_code[ERROR_CODE_SIZE]; /// Error code for parsing error. | ||
#endif | ||
main_step_t step; /// Current operational state of app. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use bool. there are only two settings so enum does not make sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I will change it when I will apply my commits in your PR