@davecgh thanks in advance my friend! I have some problem to pos and pow togheter. This is my procedure (win7): first window : dcrd --testnet -u xxx -P xxx --miningaddr=xxx --notls second window : dcrwallet -u xxx -P xxx--dcrdusername=xxx --dcrdpassword=xxx --noclienttls --noservertls then i open ccminer,all is good the miner work fine and , if i open a new command window i can send money an get balance. my problem start here. If i enter this command or any command starting with dcrwallet : dcrwallet -u xxx -P xxx --enablestakemining --balancetomaintain=20 --ticketmaxprice=50 i got the error : Spoiler: error 02:34:20 2016-01-30 [INF] WLLT: Opened wallet 02:34:20 2016-01-30 [WRN] DCRW: RPCS: Can't listen on 127.0.0.1:19110: listen tc p4 127.0.0.1:19110: bind: Di norma è consentito un solo utilizzo di ogni indiriz zo di socket (protocollo/indirizzo di rete/porta). 02:34:20 2016-01-30 [WRN] DCRW: RPCS: Can't listen on [::1]:19110: listen tcp6 [ ::1]:19110: bind: Di norma è consentito un solo utilizzo di ogni indirizzo di so cket (protocollo/indirizzo di rete/porta). 02:34:20 2016-01-30 [ERR] DCRW: Unable to create HTTP server: no valid listen ad dress So to avoid this i have to close the window i have opened with this command: dcrwallet -u xxx -P xxx--dcrdusername=xxx --dcrdpassword=xxx --noclienttls --noservertls (in the mean time ccminer still working) Ok now i have closed the window and i try to do this command again: dcrwallet -u xxx -P xxx --enablestakemining --balancetomaintain=20 --ticketmaxprice=50 the first error the consolle give me is a file missed called dcrd.cert in appdata>local>dcrwallet so i made the file with a txt and rename the ext in .cert. Now i try to do the procedure again i write in consolle: dcrwallet -u xxx -P xxx --enablestakemining --balancetomaintain=20 --ticketmaxprice=50 Spoiler: error C:\Users\G\Desktop\decred\windows-amd64>dcrwallet -u xxx -P xxx --enablestakemin ing --balancetomaintain=20 --ticketmaxprice=50 02:39:56 2016-01-30 [INF] WLLT: Opened wallet 02:39:56 2016-01-30 [INF] DCRW: RPCS: RPC server listening on [::1]:19110 02:39:56 2016-01-30 [INF] DCRW: RPCS: RPC server listening on 127.0.0.1:19110 02:41:11 2016-01-30 [WRN] DCRW: Connection to Decred RPC chain server unsuccessf ul -- available RPC methods will be limited 02:41:11 2016-01-30 [ERR] WLLT: Unable to request transaction updates for winnin g tickets. Error: the client was never connected 02:41:11 2016-01-30 [ERR] WLLT: Unable to request transaction updates for spent and missed tickets. Error: the client was never connected 02:41:11 2016-01-30 [ERR] WLLT: Unable to request transaction updates for stake difficulty. Error: the client was never connected 02:41:11 2016-01-30 [INF] WLLT: Stake mining is enabled. Votebits: 1, minimum wa llet balance 20 02:42:26 2016-01-30 [WRN] DCRW: Connection to Decred RPC chain server unsuccessf ul -- available RPC methods will be limited 02:42:26 2016-01-30 [ERR] WLLT: Unable to request transaction updates for winnin g tickets. Error: the client was never connected 02:42:26 2016-01-30 [ERR] WLLT: Unable to request transaction updates for spent and missed tickets. Error: the client was never connected 02:42:26 2016-01-30 [ERR] WLLT: Unable to request transaction updates for stake difficulty. Error: the client was never connected 02:42:26 2016-01-30 [INF] WLLT: Stake mining is enabled. Votebits: 1, minimum wa llet balance 20 Can you help me? I'm going to bed now is latenight!
@Blizzy: Start with your working PoW setup and just add the additional 3 stake related parameters when you launch wallet. So: dcrwallet -u xxx -P xxx--dcrdusername=xxx --dcrdpassword=xxx --noclienttls --noservertls --enablestakemining --balancetomaintain=20 --ticketmaxprice=50
As far as I know all amounts in and out of the RPC interface are in whole coins (DCR) as opposed to atomic units (atoms).
My current balance is reported as 3.45595482. Also, staking seems to work, gettickets reports 8 hashes currently and I know I've seen some changes.
run dcrctl (standard login, --wallet) with the command Code: gettickets true to get a list of(all, including immature) staking tickets you've presently got in the pool. Barring that, if your total has gone up without you mining or receiving other transactions, then you've gotten some stake rewards.(My previous total was around 1.5 credits and 4 tickets a couple of hours ago) I have a tutorial I'm going to try to write tomorrow about running your chainhost on one computer and logging in with a remote wallet. I'll include setting up staking in the wallet setup. I currently have 3 console windows open on my Pi(chainhost, wallet, dcrctl console), and I can open a wallet on my Windows computer that logs into the chainhost on the Pi and relay commands through it if I want to.
The good news is you used the right command. The bad news is you don't have any tickets yet. Did you start the wallet in staking mode? If so, how recently? It can take a couple of hours to get some tickets. It's super easy once you get things figured out. I just need to get the scripts put together and polished.
ok , i just got it working last hour or so. but i was wondering about the tick price... is thier a way to check the market ( other PoS valus on the net work) how can we know how to set a price? sudo ./dcrwallet -u XXX -P XXX --enablestakemining --balancetomaintain=1.0 --ticketmaxprice=1
$ dcrctl getbestblockhash | dcrctl getblock - 1 | grep sbits "sbits": 4.38092481, So your current max ticket price means you won't buy any tickets. You can change it with the setticketmaxprice RPC. i.e dcrctl --wallet setticketmaxprice 5
Thanks. Im at dcrctl term > getbestblockhash | dcrctl getblock - 1 | grep sbits it just sits there no error, but no > and no info if i run comand @ $ ./dcrctl getbestblockhash | dcrctl getblock - 1 | grep sbits command not found.. and im in tree
@jimmy16 You'd need to all of the flags you normally do. I have all of my settings in a config file so I don't have to type over and over. If you're inside the dcrctl term, you just have to do it manually. getbestblockhash <copy the result> getblock <hash you just copied> 1 <look for the sbits field>
22:10:51 2016-01-29 [INF] WLLT: Successfully sent SStx purchase transaction 7e45d01255a8fbe3ef351e04b1bf8643b0fc575cd40eb02f69229fe27fc90f9c Think im in,
Yep. I see it here as well: Code: $ dcrctl getrawtransaction 7e45d01255a8fbe3ef351e04b1bf8643b0fc575cd40eb02f69229fe27fc90f9c 1 { ... "type": "stakesubmission", ... }