Skip to content

Conversation

bznein
Copy link
Collaborator

@bznein bznein commented Sep 16, 2025

Right now, this is only enabled for the servewallet, as it is intended to be used in automated testing that uses it.

Before asking for reviews, here is a check list of the most common things you might need to consider:

  • updating the Changelog
  • writing unit tests
  • checking if your changes affect other coins or tokens in unintended ways
  • testing on multiple environments (Qt, Android, ...)
  • having an AI review your changes

@bznein bznein requested a review from benma September 16, 2025 15:03
@bznein bznein force-pushed the bbapp_simulator branch 2 times, most recently from e20717b to 7e99207 Compare September 16, 2025 15:19
@bznein bznein force-pushed the bbapp_simulator branch 7 times, most recently from 832dfe8 to 63a23ae Compare September 17, 2025 08:45
@bznein
Copy link
Collaborator Author

bznein commented Sep 17, 2025

@benma this is ready for another review. The only part I haven't addresses (but I left a comment) is the "IsRunning" method, which I agree is not ideal, but I can't find a different way.

@bznein bznein requested a review from benma September 17, 2025 09:14
@bznein bznein force-pushed the bbapp_simulator branch 3 times, most recently from b69361b to 8b750b7 Compare September 17, 2025 15:49
@bznein bznein requested a review from benma September 17, 2025 15:53
product == bitbox02common.ProductBitBox02PlusMulti {
if product != nil && (*product == bitbox02common.ProductBitBox02PlusBTCOnly ||
*product == bitbox02common.ProductBitBox02PlusMulti) {
productName = BitBox02NovaProductName
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also has to happen if the product name is inferred in instead of passed directly

WithField("productName", productName)

if product != nil {
log = log.WithField("product", *product)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same, would be nice to log it also if it was inferred vs passed


// Product implements usb.DeviceInfo.
func (d deviceInfo) Product() string {
return bitbox02common.FirmwareDeviceProductStringBitBox02Multi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would not need that anymore

Copy link
Contributor

@benma benma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK, this will be super useful, thanks!

Copy link
Contributor

@benma benma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually forgot there were some comments left to address 😇

@bznein bznein force-pushed the bbapp_simulator branch 6 times, most recently from 3e31227 to 569a378 Compare September 18, 2025 13:00
@bznein bznein requested a review from benma September 18, 2025 13:11
@bznein
Copy link
Collaborator Author

bznein commented Sep 18, 2025

@benma ready again :)

Copy link
Contributor

@benma benma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK


// Serial implements usb.DeviceInfo.
func (d deviceInfo) Serial() string {
return fmt.Sprintf("v%s", d.version.String())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fyi, .String() is technically not needed, as it is called when using %s

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This allows devs to use the app without a real device and without
relying on the software keystore.
@bznein bznein merged commit c476bae into BitBoxSwiss:master Sep 22, 2025
10 checks passed
@bznein bznein deleted the bbapp_simulator branch September 22, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants