Bitcoin Forum
December 15, 2019, 03:52:22 PM *
News: Latest Bitcoin Core release: 0.19.0.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: can't modify ppcoind's wallet location  (Read 258 times)
OldSpurty
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
June 02, 2016, 08:33:36 PM
 #1

Hello, and thanks in advance to anyone that can help.

I run a growing number of altcoin daemons on a server. To help stay organized, I modified each daemon's wallet.dat file to indicate which altcoin it stores keys for. E.G. in the dash directory, I moved the wallet to wallet-dash.dat. I then added the line "wallet=wallet-dash.dat" into the dash.conf. This worked like a charm for all of the altcoins except Peercoin.

Does anyone have some insight into how to get this to work for peercoin as well? I've confirmed that ppcoin.conf is getting read (it needs to for the RPC user/password, or the daemon doesn't run). I've tried including the full file path (I.E. wallet=/home/oldspurty/.ppcoind/wallet-peercoin.dat). I've also tried removing the line from the configuration file, and adding it to the command (I.E. ppcoind -wallet=wallet-peercoin.dat). No matter what I do, it seems to always go with the default wallet.dat file. It would be very beneficial to me if I could make this work with the modified name.

Thanks again,

OldSpurty
1576425142
Hero Member
*
Offline Offline

Posts: 1576425142

View Profile Personal Message (Offline)

Ignore
1576425142
Reply with quote  #2

1576425142
Report to moderator
1576425142
Hero Member
*
Offline Offline

Posts: 1576425142

View Profile Personal Message (Offline)

Ignore
1576425142
Reply with quote  #2

1576425142
Report to moderator
Even if you use Bitcoin through Tor, the way transactions are handled by the network makes anonymity difficult to achieve. Do not expect your transactions to be anonymous unless you really know what you're doing.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1576425142
Hero Member
*
Offline Offline

Posts: 1576425142

View Profile Personal Message (Offline)

Ignore
1576425142
Reply with quote  #2

1576425142
Report to moderator
1576425142
Hero Member
*
Offline Offline

Posts: 1576425142

View Profile Personal Message (Offline)

Ignore
1576425142
Reply with quote  #2

1576425142
Report to moderator
1576425142
Hero Member
*
Offline Offline

Posts: 1576425142

View Profile Personal Message (Offline)

Ignore
1576425142
Reply with quote  #2

1576425142
Report to moderator
billotronic
Legendary
*
Offline Offline

Activity: 1610
Merit: 1000


Crackpot Idealist


View Profile
June 03, 2016, 01:26:26 AM
 #2

Hello, and thanks in advance to anyone that can help.

I run a growing number of altcoin daemons on a server. To help stay organized, I modified each daemon's wallet.dat file to indicate which altcoin it stores keys for. E.G. in the dash directory, I moved the wallet to wallet-dash.dat. I then added the line "wallet=wallet-dash.dat" into the dash.conf. This worked like a charm for all of the altcoins except Peercoin.

Does anyone have some insight into how to get this to work for peercoin as well? I've confirmed that ppcoin.conf is getting read (it needs to for the RPC user/password, or the daemon doesn't run). I've tried including the full file path (I.E. wallet=/home/oldspurty/.ppcoind/wallet-peercoin.dat). I've also tried removing the line from the configuration file, and adding it to the command (I.E. ppcoind -wallet=wallet-peercoin.dat). No matter what I do, it seems to always go with the default wallet.dat file. It would be very beneficial to me if I could make this work with the modified name.

Thanks again,

OldSpurty

have you tried looking in the log to see what it says when it tried to load the wallet?

This post sums up why all this bullshit is a scam
Read It. Hate It. Change the facts that it represents.
https://bitcointalk.org/index.php?topic=1606638.msg16139644#msg16139644
OldSpurty
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
June 03, 2016, 03:11:19 AM
 #3

stopped ppcoind, cleared the log, restarted ppcoind. Here's the beginning of the fresh log:

Code:
PPCoin version v0.5.3ppc-beta (2016-03-21 21:41:17 +0000)
Default data directory /home/oldspurty/.ppcoin
Loading addresses...
dbenv.open LogDir=/mnt/3tbraid10/coind-datadirs/peercoin/database ErrorFile=/mnt/3tbraid10/coind-datadirs/peercoin/db.log
Loaded 8215 addresses
 addresses             43694ms
Loading block index...
PPCoin Network: genesis=0x0000000032fe677166d5 nBitsLimit=0x1d00ffff nBitsInitial=0x1c00ffff nStakeMinAge=2592000 nCoinbaseMaturity=500 nModifierInterval=21600
LoadBlockIndex(): hashBestChain=5426ad913d2b2757a58b  height=240187  trust=8426570781040631
LoadBlockIndex(): synchronized checkpoint 973ab72b4bcc25442e7175ffef41399708a8b572c0951cf70baa127049cd80eb
Verifying last 2500 blocks at level 1
 Upgrade Info: no txdb upgrade v0.3->v0.4 detected.
 Upgrade Info: v0.5+ no txdb upgrade detected.
 block index            8975ms
Loading wallet...
nFileVersion = 60300
 wallet                  278ms
Done loading


Comparing that to the log for bitcoind (which does correctly use the alternate wallet filename), I see pretty much the same thing:

Code:
2016-06-02 03:19:04 Bitcoin version v0.12.1.0-g9779e1e (Mon, 11 Apr 2016 13:01:43 +0200)
2016-06-02 03:19:04 InitParameterInteraction: parameter interaction: -whitelistforcerelay=1 -> setting -whitelistrelay=1
2016-06-02 03:19:04 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2016-06-02 03:19:04 Default data directory /home/oldspurty/.bitcoin
2016-06-02 03:19:04 Using data directory /mnt/3tbraid10/coind-datadirs/bitcoin
2016-06-02 03:19:04 Using config file /mnt/3tbraid10/coind-datadirs/bitcoin/bitcoin.conf
2016-06-02 03:19:05 Using at most 125 connections (1024 file descriptors available)
2016-06-02 03:19:05 Using 4 threads for script verification
2016-06-02 03:19:05 scheduler thread start
2016-06-02 03:19:05 HTTP: creating work queue of depth 16
2016-06-02 03:19:05 Config options rpcuser and rpcpassword will soon be deprecated. Locally-run instances may remove rpcuser to use cookie-based auth, or may be replaced with rpcauth. Please see share/rpcuser for rpcauth auth generation.
2016-06-02 03:19:05 HTTP: starting 4 worker threads
2016-06-02 03:19:05 Using wallet wallet-bitcoin.dat
2016-06-02 03:19:05 init message: Verifying wallet...
2016-06-02 03:19:06 CDBEnv::Open: LogDir=/mnt/3tbraid10/coind-datadirs/bitcoin/database ErrorFile=/mnt/3tbraid10/coind-datadirs/bitcoin/db.log
2016-06-02 03:19:06 Bound to [::]:8333
2016-06-02 03:19:06 Bound to 0.0.0.0:8333
2016-06-02 03:19:06 Cache configuration:
2016-06-02 03:19:06 * Using 2.0MiB for block index database
2016-06-02 03:19:06 * Using 32.5MiB for chain state database
2016-06-02 03:19:06 * Using 65.5MiB for in-memory UTXO set
2016-06-02 03:19:06 init message: Loading block index...
2016-06-02 03:19:07 Opening LevelDB in /mnt/3tbraid10/coind-datadirs/bitcoin/blocks/index
2016-06-02 03:19:13 Opened LevelDB successfully
2016-06-02 03:19:13 Using obfuscation key for /mnt/3tbraid10/coind-datadirs/bitcoin/blocks/index: 0000000000000000
2016-06-02 03:19:13 Opening LevelDB in /mnt/3tbraid10/coind-datadirs/bitcoin/chainstate
2016-06-02 03:25:15 Opened LevelDB successfully
2016-06-02 03:25:15 Using obfuscation key for /mnt/3tbraid10/coind-datadirs/bitcoin/chainstate: addf9831f72065ee
2016-06-02 03:25:21 LoadBlockIndexDB: last block file = 533
2016-06-02 03:25:21 LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=99, size=79327190, heights=414318...414416, time=2016-06-01...2016-06-02)
2016-06-02 03:25:21 Checking all blk files are present...
2016-06-02 03:25:22 LoadBlockIndexDB: transaction index disabled
2016-06-02 03:25:22 LoadBlockIndexDB: hashBestChain=0000000000000000027edc037f2401120110f58c1fe73cc706f5f89670cac6c5 height=414416 date=2016-06-02 02:45:51 progress=0.999984
2016-06-02 03:25:22 init message: Verifying blocks...
2016-06-02 03:25:22 Verifying last 288 blocks at level 3
2016-06-02 03:25:58 No coin database inconsistencies in last 7 blocks (12240 transactions)
2016-06-02 03:25:58  block index          411463ms
2016-06-02 03:25:58 init message: Loading wallet...
2016-06-02 03:25:58 nFileVersion = 120000
2016-06-02 03:25:58 Keys: 0 plaintext, 205 encrypted, 205 w/ metadata, 205 total
2016-06-02 03:25:59  wallet                 1304ms
2016-06-02 03:26:00 init message: Activating best chain...
2016-06-02 03:26:00 mapBlockIndex.size() = 414432


Maybe I'm missing something obvious there, haven't dug through the logs for the daemon's much before so it's somewhat unfamiliar territory for me
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!