Skip to content

[RPC] Make listunspent return watchOnly account transactions#759

Merged
zeptin merged 4 commits intostratisproject:release/1.2.0.0from
zeptin:watchonlylistunspent-20211105
Nov 16, 2021
Merged

[RPC] Make listunspent return watchOnly account transactions#759
zeptin merged 4 commits intostratisproject:release/1.2.0.0from
zeptin:watchonlylistunspent-20211105

Conversation

@zeptin
Copy link
Collaborator

@zeptin zeptin commented Nov 5, 2021

Watch-only transactions are stored in an account without an extPubKey (as all the transactions generally have pubkeys that are not derived from any keypath within the wallet). This requires some workarounds at the wallet database level.

@zeptin zeptin added the 1.2.0.0 label Nov 6, 2021
@quantumagi quantumagi self-requested a review November 6, 2021 12:05
@quantumagi
Copy link
Contributor

Will have a look on Monday.

@quantumagi
Copy link
Contributor

Looks good. Just a few comments.

@zeptin zeptin requested a review from fassadlr November 16, 2021 05:11
@zeptin zeptin merged commit 50a9915 into stratisproject:release/1.2.0.0 Nov 16, 2021
@zeptin zeptin deleted the watchonlylistunspent-20211105 branch November 16, 2021 15:57
rowandh pushed a commit that referenced this pull request Dec 2, 2021
* Make listunspent return watchOnly account transactions

* Cleanup

* Fixes per review

* Fix RPC exception when adding duplicate watch-only addresses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants