dcrstakepool icon indicating copy to clipboard operation
dcrstakepool copied to clipboard

I have several live tickets, they are not showing on the Tickets page

Open dema501 opened this issue 6 years ago • 11 comments

Screen Shot 2020-02-18 at 5 43 40 PM

dcrstakepool -V
dcrstakepool version 1.5.0 (Go version go1.13.5 freebsd/amd64)

tail -f /var/log/dcrstakepool.log

Screen Shot 2020-02-18 at 10 23 28 PM
stakepoold -V
stakepoold version 1.5.0 (Go version go1.13.1 freebsd/amd64)

tail -f /var/log/stakepoold.log

Screen Shot 2020-02-18 at 10 23 18 PM

dema501 avatar Feb 19 '20 04:02 dema501

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 avatar Feb 19 '20 05:02 JoeGruffins

@JoeGruffins yes, after updating

Screen Shot 2020-02-19 at 7 39 43 AM Screen Shot 2020-02-19 at 7 41 43 AM

dema501 avatar Feb 19 '20 13:02 dema501

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 avatar Feb 19 '20 14:02 JoeGruffins

@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

dema501 avatar Feb 19 '20 16:02 dema501

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.

JoeGruffins avatar Feb 19 '20 21:02 JoeGruffins

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

dema501 avatar Feb 20 '20 00:02 dema501

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 avatar Feb 20 '20 02:02 JoeGruffins

@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

dema501 avatar Feb 20 '20 16:02 dema501

@JoeGruffins config changes + rescan helps Thanks a lot!

dema501 avatar Feb 20 '20 16:02 dema501

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

jholdstock avatar Feb 27 '20 10:02 jholdstock

@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.

xaur avatar Mar 05 '20 11:03 xaur