Skip to content

Confirmed transactions show up as pending on application restart #391

@thunderbiscuit

Description

@thunderbiscuit

This is happening on bdk-jni, and I'm not sure if it has to do with the db/cache on mobile or if it's coming from the bdk side.

@RCasatta could this be related to the #370 fix?

The issue is the following. Once you've synced while a transaction was pending, the new type confirmation_time is None (null on the Kotlin side). This is great. What's more, if you sync the wallet and the transaction has been confirmed, the vallue is updated to reflect the timestamp and a block height. All good. The problem seem to happen on application restart: a call to transaction_list() will return that transaction as pending again. You can then sync the wallet and it will update the confirmation_time value, but this sync has to be done (from what I can tell) every time. It's like the database doesn't remember that the transactionDetails were updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions