Bitcoin Forum
June 14, 2024, 04:31:12 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: eMark MINTING on ENCRYPTED Wallet - how can I enable this?  (Read 1196 times)
chanc3r (OP)
Sr. Member
****
Offline Offline

Activity: 952
Merit: 253



View Profile
December 19, 2013, 08:42:16 PM
 #1

Hi I've encrypted my eMark wallet now its stopped minting as I expected because it doesn't have the wallet pass phrase.

I'm trying now to start the wallet and give it the passphrase so minting can continue.

I've look at the source on github and it seems that "walletpassphrase" is supported, well the code to parse it is in there!

I can't figure out how the get it recognised on the command line, my understanding is it should be;

eMark-qt -server walletpassphrase <password>

but it seems to make no difference.  Huh

I've set up emark.conf as required, -server allows eMark to accept command line arguments according to the source and walletpassphrase seems to be listed as a command..

Please can someone tell me if minting of an encrypted wallet is supported currently and how to get the wallet password accepted?

Thanks,
Ian

chanc3r (OP)
Sr. Member
****
Offline Offline

Activity: 952
Merit: 253



View Profile
December 23, 2013, 10:55:26 PM
 #2

I think I solved this myself.

Needed to send the command walletpassphrase <passphrase> <timeout> to the encrypted wallet using JSON

eMark does not provide a daemon to do this so I used Peeroin ppcoind to send the command like this;

<ppcoin install directory>\daemon\ppcoind -conf <emark data directory>\emark.conf wallet passphrase  <walletpassword> <timeout>

which on my PC turns into;

c:\Program Files\PPCoin\daemon\ppcoind -conf %appdata%\emark\emark.conf walletpassphrase <walletpassword> <timeout>

specify your own wallet password and timeout here of course  Wink

then if you are not sure you can get the wallet status

c:\Programe Files\PPCoin\daemon\ppcoind -conf -conf=%appdata%\emark\emark.conf getinfo

it should show something like

{
    "version" : "v1.0.0.0-oro",
    "protocolversion" : 60006,
    "walletversion" : 60000,
    "balance" : 2001.37628500,      <--- shows your balance here  Shocked
    "newmint" : 0.00000000,
    "stake" : 0.00000000,
    "blocks" : 52591,
    "moneysupply" : 2629550.00000000,
    "connections" : 7,
    "proxy" : "",
    "ip" : "xxx.xxx.xxx.xxx",            <--- I blanked this in case it was my ip
    "difficulty" : 1387123.16066229,
    "testnet" : false,
    "keypoololdest" : 1387411402,
    "keypoolsize" : 101,
    "paytxfee" : 0.00000000,
    "unlocked_until" : 1388837697,  <--- depends on your timeout value
    "errors" : ""                               <--- if its not worked this contains the error test "Minting halted due to locked wallet"
}

Finally if its worked the wallet screen for an encrypted eMark wallet looks like this


Narja
Newbie
*
Offline Offline

Activity: 37
Merit: 0


View Profile
February 08, 2014, 08:09:42 PM
 #3

I solved this by opening the wallet for mining only via the console.

Go to Help >> debug >> console

syntax: walletpassphrase <passphrase> <timeout (s)> [mintonly]

So: walletpassphrase MySecretPass 200000 true

leaves my wallet open for more than three days for minting only.


(and ctrl-L to wipe the password off your console window!!)


Question: what happens is the wallet is locked and a block is found. Is that share being rejected?

I found three blocks and two of them were rejected. In both cases the wallet was locked.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!