Skip to content

paper key restore race condition #23

@tofutim

Description

@tofutim

Under certain conditions, in particular, in a paper key restore, the merkleblock can arrive before the transaction. In this case, the transaction will not receive blockheight and timestamp in BRWalletUpdateTransaction as called by _peerRelayedBlock. When BRWalletRegisterTransaction is later called, BRWalletUpdateTransaction is never called again.

I'm trying to figure out if there is a way to look up stored merkleblocks for the transaction, or cache the UpdateTransaction info... maybe a map of txhash to block? or a BRSet of blocks to check for txs? I need a hash table!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions