decred / dcrstakepool

Stakepool for Decred.
Other
72 stars 75 forks source link

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

Open dema501 opened 4 years ago

dema501 commented 4 years ago
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
JoeGruffins commented 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"))'

dema501 commented 4 years ago

@JoeGruffins yes, after updating

Screen Shot 2020-02-19 at 7 39 43 AM Screen Shot 2020-02-19 at 7 41 43 AM
JoeGruffins commented 4 years ago

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

dema501 commented 4 years ago

@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
JoeGruffins commented 4 years ago

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.

dema501 commented 4 years ago

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
JoeGruffins commented 4 years ago

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.

dema501 commented 4 years ago

@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 commented 4 years ago

@JoeGruffins config changes + rescan helps Thanks a lot!

jholdstock commented 4 years ago

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

xaur commented 4 years ago

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