Open dema501 opened 4 years ago
Is this after updating?
Can you try dcrctl --wallet stakepooluserinfo DC...WG
on a voting wallet?
And then:
dcrctl --wallet listscripts | jq '.[] | map(select(.address=="DC...WG"))'
@JoeGruffins yes, after updating
Can you double check your dcrwallet.conf. Make sure that stakepoolcoldextkey=xpub:10000 is set correctly and that promptpass is on.
And for good measure, do a wallet rescan from block 400000ish
@JoeGruffins after adding stakepoolcoldextkey=xpub:10000 to dcrwallet.conf
I've got this
DCRW: Failed to open wallet: loader.OpenExistingWallet:: wallet.Open: the provided serialized extended key length is invalid
Did you replace "xpub" with your fee-receiving extended public key? This pattern wasn't already somewhere in your dcrwallet.conf?
The key itself must match the one in your dcrstakepool.conf and stakepoold.conf, plus the :10000
at the end. It's called coldwalletextpub
in those. So same key in three places.
Did you replace "xpub" with your fee-receiving extended public key? This pattern wasn't already somewhere in your dcrwallet.conf?
I don't have anywhere in config
root@host:~ # grep stakepoolcoldextkey /usr/jails/VOTINGWALLET/usr/local/etc/*.conf
/usr/jails/VOTINGWALLET/usr/local/etc/dcrwallet.conf:;stakepoolcoldextkey=xpub:10000
Ok, put it in. This is an example from testnet:
stakepoolcoldextkey=tpubVp2kdbZrW8ftwax4frjXp12mUMDmhopdhfuG2JAW8a8Z22a t4uqGiwFenEzY8uVhJ3nGsfVFTFtKbnkEPuxYsp3rZYb:10000
Again, this must be the same key that is coldwalletextpub
in stakepoold and dcrstakepool confs.
@JoeGruffins Could you please check does it looks right?
grep cold /usr/jails/VOTINGWALLET/usr/local/etc/*.conf
/usr/jails/VOTINGWALLET/usr/local/etc/dcrwallet.conf:stakepoolcoldextkey=dpubZ***TCYPTqB:10000
/usr/jails/VOTINGWALLET/usr/local/etc/stakepoold.conf:coldwalletextpub=dpubZ***TCYPTqB
it's kind of inconsistent settings stakepoolcoldextkey with :1000 coldwalletextpub without :1000
@JoeGruffins config changes + rescan helps Thanks a lot!
Going to reopen this because we can hopefully prevent this issue from reoccurring once decred/dcrwallet#1673 is merged.
We can potentially have either stakepoold or dcrwallet perform a stakepooluserinfo
call on startup and log a fatal error if dcrwallet is misconfigured
@dema501 FYI you don't really hide your private bits (addresses, ticket ids, etc) by masking them only in the middle because the visible left and right parts are still pretty unique. I would cover the whole thing.
tail -f /var/log/dcrstakepool.log
tail -f /var/log/stakepoold.log