sendfrom
"imported" account rejected #18
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
mining
question
rpc
ux
wallet
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbcwallet#18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root cause: Currently, all imported keys/addresses are assumed watch-only, and were skipped from adding into transaction inputs.
d1700f2658/waddrmgr/manager.go (L418-L424)
d1700f2658/wallet/createtx.go (L220-L235)
An easy solution is to check the existence of the private key for each address. But it makes the code flow unnecessarily convoluted.
I'm leaning toward reserving a
"imported-watchonly"
account (2^32-2) dedicated for imported public keys and addresses. Leave the"imported"
account for those imported usingimportprivkey
The current master includes a hotfix, which sacrifices watch-only address support in favor of imported addresses.
Earlier we have PR #23 to address the issue by implementing a watch-only account to house all watch-only addresses. However, using fixed dedicated accounts to house import keys can be awkward, and have many places to handle those accounts as corner cases.
We decided to implement proper multi-account support first. Later, we can allow users to decide which account(s) will be used for imported keys.