Post
Topic
Re: (ANN) Netcoin has gone POS! With PIR & OWI
by
tepelstreeltje
on 16/10/2016, 10:14:08 UTC
Sorry for the delay but i released v2.5.1. This update will disconnect the older nodes and there will be a change to the PoS diff retageting after block 1345000. Please remove the addnodes in the conf file if there are any and delete the peers.dat. If you have issues connecting try these addnodes:
addnode=84.105.200.241
addnode=89.154.0.37
addnode=50.107.86.75
addnode=68.224.238.173
addnode=83.240.176.25
addnode=73.214.14.51
If you shutdown the old wallet before block 1344639 you should be good and just sync up but after you need to remove the chain and redownload or use a backup/snapshot.

I recently compiled the latest releases (tried tar.gz of v2.5 and directly cloning from git repo) on my Odroid U2 using Linaro Ubuntu (Berkeley DB 5.3.15, December 19, 2011). The first time I start the Netcoin daemon, everything is fine. But when I restart the Netcoin daemon using "./netcoind stop" (checking that it was stopped successfully using Linux CMD "ps") followed by "./netcoind", the Netcoin daemon is always crashing with the following exception:

Code:
************************
EXCEPTION: St13runtime_error
init_blockindex(): error opening database environment IO error: lock /home/odroid/.netcoin/txleveldb/LOCK: already held by process
netcoin in msghand

terminate called after throwing an instance of 'std::runtime_error'
  what():  init_blockindex(): error opening database environment IO error: lock /home/odroid/.netcoin/txleveldb/LOCK: already held by process

When I delete the entire content of the netcoin directory in "/home/odroid/.netcoin" and start the Netcoin daemon, everything works fine and the chain is synchronizing. Whenever I need to restart the Netcoin daemon, I'm getting the error described above, I need to delete the entire directory content in "/home/odroid/.netcoin" and I need to download the entire blockchain again.
Other coins are working like a charm on my Odroid but not Netcoin, so I think it's a problem with Netcoin Undecided Huh Tongue

Did the older Netcoin versions had this issue aswell or did it start after a certain update? Also see you are using Berkeley DB 5.3 Netcoin uses BDB 4.8

V2.5 is the first Version I tried on my Odroid. I compiled V2.5.1 today using BDB 4.8:

Quote
odroid@odroid-server:/usr/local/bin$ grep DB_VERSION_STRING /usr/local/BerkeleyDB.4.8/include/db.h
#define DB_VERSION_STRING       "Berkeley DB 4.8.30: (April  9, 2010)"

Unfortunately, I'm still getting the error Cry

Not sure why you having this issue and why it holds a process to be honest. I have a daemon running on Ubuntu 16.04 VM but works without error and i can't seem to reproduce it.

Anyone else having this issue with the daemon?

V2.5 is the first Version I tried on my Odroid. I compiled V2.5.1 today using BDB 4.8:

Quote
odroid@odroid-server:/usr/local/bin$ grep DB_VERSION_STRING /usr/local/BerkeleyDB.4.8/include/db.h
#define DB_VERSION_STRING       "Berkeley DB 4.8.30: (April  9, 2010)"

Unfortunately, I'm still getting the error Cry

sorry folks maybe i'm goin full retard but how is that my win wallet is LDB (since v2.4), and your linux one is BDB ?
is it supposed to be soo different ?

odroid is a single board pc like a rasp pi isn't it? are these arm? i suspect that they haven't got the latest linux build as it should only be level db now not berkeley

LevelDB and BerkeleyDB are 2 different things. LDB is used to store part of the chaindata and BDB is used as a dependency required by the code. Most newer coinbase coins have the option to build the daemon with disabled wallet then BDB isn't used but Netcoin doesn't have that feature yet so it needs both to compile.