Skip to content

rusk-wallet: Overflow when checking for synced wallet #3593

@xevisalle

Description

@xevisalle

Describe the bug
Everytime the wallet tries to check if it's synced using the is_synced function, it panics due to an overflow. We should avoid this by performing the subtraction that happens is such a function only when the number of notes is higher than 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fix:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions