11.2 - Dash Release

Bridgewater

Well-known Member
Foundation Member
Dec 14, 2014
183
164
203
One thing is for sure, ever since I issued a start-many post update, payments seem to be way more "orderly" than ever before. masternode1 paid, masternode2 paid, masternode3 paid... But I think this may be by design. Feels more like a queue now than pure luck.
 
  • Like
Reactions: raganius

UdjinM6

Official Dash Dev
Dash Core Team
Moderator
May 20, 2014
3,639
3,537
1,183

Dunedoo

Well-known Member
Foundation Member
Feb 25, 2015
568
600
263
Sydney Australia
Dash Address
XyoSz4xviVGfks1pLhaXw2Baqmhfw5k7MG
My window wallet continually freezes while updating everyday. Hangs when trying to close and doesn't like competing against my Doge, BTC wallets updating even though I made DASH the highest priority for updating from start. Once the BTC and Doge have updated, it appears to work fine after closing program and restarting once the other wallets have updated.
 

AjM

Well-known Member
Foundation Member
Jun 23, 2014
1,341
575
283
Finland
My window wallet continually freezes while updating everyday. Hangs when trying to close and doesn't like competing against my Doge, BTC wallets updating even though I made DASH the highest priority for updating from start. Once the BTC and Doge have updated, it appears to work fine after closing program and restarting once the other wallets have updated.
Maybe your CPU and network resources are low because of Doge and Btc, if you use all of them simultaneous.
 

romario

New Member
Apr 2, 2015
31
5
8
I compiled Darkcoin on Debian 8.0 with libdb5.1. and it was working just fine. Now I compiled DASH on the same system (with the --with-incompatible-bdb option) and I'm getting "Error initializing wallet database environment /path" error when trying to run ./dashd

Is there any way to resolve this issue without downgrading to libdb4.8. since I would probably face wallet.dat incompatibility after that. As far as I know BDB is not backwards-compatible.

debug.log

Code:
2015-04-07 10:00:23 Dash version v0.11.2.17-09a8987-beta (2015-04-03 20:26:55 -0700)
2015-04-07 10:00:23 Using OpenSSL version OpenSSL 1.0.1j 15 Oct 2014
2015-04-07 10:00:23 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2015-04-07 10:00:23 Default data directory /root/.dash
2015-04-07 10:00:23 Using data directory /root/.dash
2015-04-07 10:00:23 Using at most 125 connections (1024 file descriptors available)
2015-04-07 10:00:23 Using 4 threads for script verification
2015-04-07 10:00:23 Using wallet wallet.dat
2015-04-07 10:00:23 init message: Verifying wallet...
2015-04-07 10:00:23 CDBEnv::Open : LogDir=/root/.dash/database ErrorFile=/root/.dash/db.log
2015-04-07 10:00:23 ERROR: CDBEnv::Open : Error 22 opening database environment: Invalid argument

2015-04-07 10:00:23 Moved old /root/.dash/database to /root/.dash/database.1428400823.bak. Retrying.
2015-04-07 10:00:23 CDBEnv::Open : LogDir=/root/.dash/database ErrorFile=/root/.dash/db.log
2015-04-07 10:00:23 ERROR: CDBEnv::Open : Error 22 opening database environment: Invalid argument

2015-04-07 10:00:23 : Error initializing wallet database environment /root/.dash!
2015-04-07 10:00:23 Shutdown : In progress...
2015-04-07 10:00:23 StopNode()
2015-04-07 10:00:23 Verifying mncache.dat format...
2015-04-07 10:00:23 Loaded info from mncache.dat  1ms
2015-04-07 10:00:23   Masternodes: 0, peers who asked us for Masternode list: 0, peers we asked for Masternode list: 0, entries in Masternode list we asked for: 0, nDsqCount: 0
2015-04-07 10:00:23 Writting info to mncache.dat...
2015-04-07 10:00:23 Written info to mncache.dat  3ms
2015-04-07 10:00:23   Masternodes: 0, peers who asked us for Masternode list: 0, peers we asked for Masternode list: 0, entries in Masternode list we asked for: 0, nDsqCount: 0
2015-04-07 10:00:23 Masternode dump finished  5ms
2015-04-07 10:00:23 Shutdown : done
db.log

Code:
Page 0: metadata page corrupted
Page 0: could not check metadata page
wallet.dat: DB_VERIFY_BAD: Database verification failed
illegal flag combination specified to DB_ENV->open
illegal flag combination specified to DB_ENV->open
What I'm not getting is why it shows "Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010)" in the debug.log and not the Berkeley DB 5.1.29: (October 25, 2011) which is actually being used on my system

Or is it somehow possible to safely downgrade an encrypted wallet.dat to the libdb4.8.?

Ideas are appreciated
 
Last edited by a moderator:

noobtrader

Active Member
Mar 27, 2015
188
97
103
can you try dump privkey on the wallet and import it into the wallet with downgraded libdb, if this possible ?
if all fail you can just send all coin to polo and send back to your new wallet.


I compiled Darkcoin on Debian 8.0 with libdb5.1. and it was working just fine. Now I compiled DASH on the same system (with the --with-incompatible-bdb option) and I'm getting "Error initializing wallet database environment /path" error when trying to run ./dashd

Is there any way to resolve this issue without downgrading to libdb4.8. since I would probably face wallet.dat incompatibility after that. As far as I know BDB is not backwards-compatible.

debug.log

Code:
2015-04-07 10:00:23 Dash version v0.11.2.17-09a8987-beta (2015-04-03 20:26:55 -0700)
2015-04-07 10:00:23 Using OpenSSL version OpenSSL 1.0.1j 15 Oct 2014
2015-04-07 10:00:23 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2015-04-07 10:00:23 Default data directory /root/.dash
2015-04-07 10:00:23 Using data directory /root/.dash
2015-04-07 10:00:23 Using at most 125 connections (1024 file descriptors available)
2015-04-07 10:00:23 Using 4 threads for script verification
2015-04-07 10:00:23 Using wallet wallet.dat
2015-04-07 10:00:23 init message: Verifying wallet...
2015-04-07 10:00:23 CDBEnv::Open : LogDir=/root/.dash/database ErrorFile=/root/.dash/db.log
2015-04-07 10:00:23 ERROR: CDBEnv::Open : Error 22 opening database environment: Invalid argument

2015-04-07 10:00:23 Moved old /root/.dash/database to /root/.dash/database.1428400823.bak. Retrying.
2015-04-07 10:00:23 CDBEnv::Open : LogDir=/root/.dash/database ErrorFile=/root/.dash/db.log
2015-04-07 10:00:23 ERROR: CDBEnv::Open : Error 22 opening database environment: Invalid argument

2015-04-07 10:00:23 : Error initializing wallet database environment /root/.dash!
2015-04-07 10:00:23 Shutdown : In progress...
2015-04-07 10:00:23 StopNode()
2015-04-07 10:00:23 Verifying mncache.dat format...
2015-04-07 10:00:23 Loaded info from mncache.dat  1ms
2015-04-07 10:00:23   Masternodes: 0, peers who asked us for Masternode list: 0, peers we asked for Masternode list: 0, entries in Masternode list we asked for: 0, nDsqCount: 0
2015-04-07 10:00:23 Writting info to mncache.dat...
2015-04-07 10:00:23 Written info to mncache.dat  3ms
2015-04-07 10:00:23   Masternodes: 0, peers who asked us for Masternode list: 0, peers we asked for Masternode list: 0, entries in Masternode list we asked for: 0, nDsqCount: 0
2015-04-07 10:00:23 Masternode dump finished  5ms
2015-04-07 10:00:23 Shutdown : done
db.log

Code:
Page 0: metadata page corrupted
Page 0: could not check metadata page
wallet.dat: DB_VERIFY_BAD: Database verification failed
illegal flag combination specified to DB_ENV->open
illegal flag combination specified to DB_ENV->open
Or is it somehow possible to safely downgrade an encrypted wallet.dat to the libdb4.8.?

Ideas are appreciated
 

romario

New Member
Apr 2, 2015
31
5
8
can you try dump privkey on the wallet and import it into the wallet with downgraded libdb, if this possible ?
if all fail you can just send all coin to polo and send back to your new wallet.
yes, but since I have 10k+ addresses in my wallet, extracting and then importing privs to a new wallet is a hell of a job. I'd better try fixin' current installation

when I'm trying to use a pre-compiled binary, it shows error " Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in /root/.dash; if your balance or transactions are incorrect you should restore from a backup."

which is no surprise, since precompilled binary is built with libdb 4.8.

Code:
2015-04-07 12:48:53 Dash version v0.11.2.16-91d5f04-beta (2015-03-30 09:06:26 -0700)
2015-04-07 12:48:53 Using OpenSSL version OpenSSL 1.0.1k 8 Jan 2015
2015-04-07 12:48:53 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2015-04-07 12:48:53 Default data directory /root/.dash
2015-04-07 12:48:53 Using data directory /root/.dash
2015-04-07 12:48:53 Using at most 125 connections (1024 file descriptors available)
2015-04-07 12:48:53 Using 4 threads for script verification
2015-04-07 12:48:53 Using wallet wallet.dat
2015-04-07 12:48:53 init message: Verifying wallet...
2015-04-07 12:48:53 CDBEnv::Open : LogDir=/root/.dash/database ErrorFile=/root/.dash/db.log
2015-04-07 12:48:53 Renamed wallet.dat to wallet.1428410933.bak
2015-04-07 12:50:23 Salvage(aggressive) found 44351 records
2015-04-07 12:50:38 : Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in /root/.dash; if your balance or transactions are incorrect you should restore from a backup.
2015-04-07 12:50:38 Bound to [::]:9999
2015-04-07 12:50:38 Bound to 0.0.0.0:9999
2015-04-07 12:50:38 init message: Loading block index...
2015-04-07 12:50:38 Opening LevelDB in /root/.dash/blocks/index
2015-04-07 12:50:38 Opened LevelDB successfully
2015-04-07 12:50:38 Opening LevelDB in /root/.dash/chainstate
2015-04-07 12:50:38 Opened LevelDB successfully
2015-04-07 12:50:53 LoadBlockIndexDB(): last block file = 5
2015-04-07 12:50:53 LoadBlockIndexDB(): last block file info: CBlockFileInfo(blocks=4036, size=26747827, heights=244396...248424, time=2015-03-31...2015-04-07)
2015-04-07 12:50:53 LoadBlockIndexDB(): transaction index disabled
2015-04-07 12:50:53 LoadBlockIndexDB(): hashBestChain=00000000000de9d5924cd6c95d262bf5b7aacd845a32d48becba87d969d3d626 height=248424 date=2015-04-07 12:21:00 progress=0.999739
2015-04-07 12:50:53 init message: Verifying blocks...
2015-04-07 12:50:53 Verifying last 288 blocks at level 3
 
Last edited by a moderator:

crowning

Well-known Member
May 29, 2014
1,414
1,997
183
Alpha Centauri Bc
I compiled Darkcoin on Debian 8.0 with libdb5.1. and it was working just fine. Now I compiled DASH on the same system (with the --with-incompatible-bdb option) and I'm getting "Error initializing wallet database environment /path" error when trying to run ./dashd
Start the old Darkcoin db5.1 wallet and send the funds to a new address of an official wallet from dashpay.io.
 

UdjinM6

Official Dash Dev
Dash Core Team
Moderator
May 20, 2014
3,639
3,537
1,183
Really ?!
Should I be on start many ?
(I know I am way behind)
The way you enter the queue doesn't matter. When you do start-many your nodes just closer to each other so there is more probability that they will be payed one by one but there is no advantage over other ways of starting nodes.
 
  • Like
Reactions: tungfa

noobtrader

Active Member
Mar 27, 2015
188
97
103
i think that you can automate dumppriv key using bash script or something.
1. listaddress grouping into addr.txt
2. trim addr.txt
3. dumpprivkey from addr.txt into privatelist.txt
4. trim files.txt
5. importprivkey into dashcoin from privatelist.txt


The old one does not connect to the network anymore. Shows 0 connections to nodes.
 

Sub-Ether

Well-known Member
Mar 31, 2014
1,516
1,254
183
Warning: Just sent from darkcoin v0.11.1.25 to dash wallet and it did not arrive, must have gone on the wrong chain.
 

AjM

Well-known Member
Foundation Member
Jun 23, 2014
1,341
575
283
Finland
Warning: Just sent from darkcoin v0.11.1.25 to dash wallet and it did not arrive, must have gone on the wrong chain.
romario said:
The old one does not connect to the network anymore. Shows 0 connections to nodes.
I think it not work because there is no nodes for Darkcoin.
Copy old wallet to Dash folder and do it from there with Dash client.

Edit: typo
 
  • Like
Reactions: MangledBlue

Sub-Ether

Well-known Member
Mar 31, 2014
1,516
1,254
183
I think it not work because there is no nodes for Darkcoin.
Copy old wallet to Dash folder and do it from there with Dash client.

Edit: typo
There are nodes, it worked until 2nd April around the fork time. Going to be a few people gonna do this who haven't upgraded! ..
 

AjM

Well-known Member
Foundation Member
Jun 23, 2014
1,341
575
283
Finland
There are nodes, it worked until 2nd April around the fork time. Going to be a few people gonna do this who haven't upgraded! ..
It was not fork, but stuck because reference node.
Did you try this: Copy old wallet to Dash folder and do it from there with Dash client.
 

Sub-Ether

Well-known Member
Mar 31, 2014
1,516
1,254
183
It was not fork, but stuck because reference node.
Did you try this: Copy old wallet to Dash folder and do it from there with Dash client.
No, copying the wallet is not the point-I am thinking what will happen to others, I am just pointing out if anyone tries sending from darkcoin thats whats going to happen, I suppose there is no way to avoid that as upgrade is mandatory with the protocol change.
 

AjM

Well-known Member
Foundation Member
Jun 23, 2014
1,341
575
283
Finland
No, copying the wallet is not the point-I am thinking what will happen to others, I am just pointing out if anyone tries sending from darkcoin thats whats going to happen, I suppose there is no way to avoid that as upgrade is mandatory with the protocol change.
Ahaa, then devs must say something for this.
 

Sub-Ether

Well-known Member
Mar 31, 2014
1,516
1,254
183
Ahaa, then devs must say something for this.
Comes back on -reindex as expected.

Edit: Thats odd I tried it 3 times and only 1 time did the coin reach the Dash wallet correctly so its luck of the draw I guess.
 
Last edited by a moderator:
  • Like
Reactions: AjM

UdjinM6

Official Dash Dev
Dash Core Team
Moderator
May 20, 2014
3,639
3,537
1,183
I compiled Darkcoin on Debian 8.0 with libdb5.1. and it was working just fine. Now I compiled DASH on the same system (with the --with-incompatible-bdb option) and I'm getting "Error initializing wallet database environment /path" error when trying to run ./dashd

Is there any way to resolve this issue without downgrading to libdb4.8. since I would probably face wallet.dat incompatibility after that. As far as I know BDB is not backwards-compatible.

debug.log

Code:
2015-04-07 10:00:23 Dash version v0.11.2.17-09a8987-beta (2015-04-03 20:26:55 -0700)
2015-04-07 10:00:23 Using OpenSSL version OpenSSL 1.0.1j 15 Oct 2014
2015-04-07 10:00:23 Using BerkeleyDB version Berkeley DB 4.8.30: (April  9, 2010)
2015-04-07 10:00:23 Default data directory /root/.dash
2015-04-07 10:00:23 Using data directory /root/.dash
2015-04-07 10:00:23 Using at most 125 connections (1024 file descriptors available)
2015-04-07 10:00:23 Using 4 threads for script verification
2015-04-07 10:00:23 Using wallet wallet.dat
2015-04-07 10:00:23 init message: Verifying wallet...
2015-04-07 10:00:23 CDBEnv::Open : LogDir=/root/.dash/database ErrorFile=/root/.dash/db.log
2015-04-07 10:00:23 ERROR: CDBEnv::Open : Error 22 opening database environment: Invalid argument

2015-04-07 10:00:23 Moved old /root/.dash/database to /root/.dash/database.1428400823.bak. Retrying.
2015-04-07 10:00:23 CDBEnv::Open : LogDir=/root/.dash/database ErrorFile=/root/.dash/db.log
2015-04-07 10:00:23 ERROR: CDBEnv::Open : Error 22 opening database environment: Invalid argument

2015-04-07 10:00:23 : Error initializing wallet database environment /root/.dash!
2015-04-07 10:00:23 Shutdown : In progress...
2015-04-07 10:00:23 StopNode()
2015-04-07 10:00:23 Verifying mncache.dat format...
2015-04-07 10:00:23 Loaded info from mncache.dat  1ms
2015-04-07 10:00:23   Masternodes: 0, peers who asked us for Masternode list: 0, peers we asked for Masternode list: 0, entries in Masternode list we asked for: 0, nDsqCount: 0
2015-04-07 10:00:23 Writting info to mncache.dat...
2015-04-07 10:00:23 Written info to mncache.dat  3ms
2015-04-07 10:00:23   Masternodes: 0, peers who asked us for Masternode list: 0, peers we asked for Masternode list: 0, entries in Masternode list we asked for: 0, nDsqCount: 0
2015-04-07 10:00:23 Masternode dump finished  5ms
2015-04-07 10:00:23 Shutdown : done
db.log

Code:
Page 0: metadata page corrupted
Page 0: could not check metadata page
wallet.dat: DB_VERIFY_BAD: Database verification failed
illegal flag combination specified to DB_ENV->open
illegal flag combination specified to DB_ENV->open
What I'm not getting is why it shows "Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010)" in the debug.log and not the Berkeley DB 5.1.29: (October 25, 2011) which is actually being used on my system

Or is it somehow possible to safely downgrade an encrypted wallet.dat to the libdb4.8.?

Ideas are appreciated
Look into config.status and search for "db". What's there?
 

noobtrader

Active Member
Mar 27, 2015
188
97
103
this is how i extract private key and also maybe import in batch.

Pls inform me if make mistake, thanks

run coin-qt -server

============
dump priv key
============

./coind listaddressgroupings >> test.txt

awk '/"/' test.txt >btest.txt #only print those between symbol

cat btest.txt | sed 's/"//g' >ctest.txt #remove symbol

cat ctest.txt | sed 's/,//g' >dtest.txt #remove symbol

cat dtest.txt | sed 's/ //g' >etest.txt #remove space

awk '/./' etest.txt >> ftest.txt #remove empty


awk < ftest.txt '{ print "./coind dumpprivkey " $1" " $2" " $3" " $4 }' | "/bin/sh" >>privkey.txt

============
import privkey.txt
============

awk < privkey.txt '{ print "./coind importprivkey " $1" " $2" " $3" " $4 }' | "/bin/sh" >privkey1.txt
 
B

buster

Guest
Is there a post that explains how to set up your masternode to donate to the foundation? I am looking for the last hour and can't find anything. Sorry, I know there is a post somewhere I literally can not find it. I was thinking about making a guide for others, maybe even turn it into a video. Any help pointing me in the right direction would be rad. I know it's gotta be easy. I also know that it might not be working at the moment, but i still want to know. thanks.
 
  • Like
Reactions: tungfa and AjM

romario

New Member
Apr 2, 2015
31
5
8
Look into config.status and search for "db". What's there?
UdjinM6, many thanks for your help. Really appreciate it.

I somehow managed to get it working with the pre-compiled binary and -salvagewallet and -rescan options. Which is a bit weird since I have libdb5.1. installed and the binary most likely compiled with libdb4.8. I also was able to unlock a salvaged wallet.dat, so now everything is up and running.

Cheers
 

Solarminer

Well-known Member
Apr 4, 2015
762
922
163
Is there a post that explains how to set up your masternode to donate to the foundation? I am looking for the last hour and can't find anything. Sorry, I know there is a post somewhere I literally can not find it. I was thinking about making a guide for others, maybe even turn it into a video. Any help pointing me in the right direction would be rad. I know it's gotta be easy. I also know that it might not be working at the moment, but i still want to know. thanks.
I had the same question and found this post on doing donations with a multi masternode config.
https://github.com/darkcoin/darkcoin/blob/master/doc/masternode_conf.md
And this is the link to setup multiple masternodes from one wallet.
https://dashtalk.org/threads/reuben...rnodes-from-one-wallet-guide-start-many.4034/
 
  • Like
Reactions: buster