Pages:
Author

Topic: [XPM] Primecoin High Performance Linux Compilation Guide (Read 43563 times)

newbie
Activity: 16
Merit: 0
How long does the transaction to move from "immature" mode to "send" ?

Code:
primecoind getmininginfo
{
    "blocks" : 423,
    "chainspermin" : 210,
    "chainsperday" : 2461.18083308,
    "currentblocksize" : 1000,
    "currentblocktx" : 0,
    "difficulty" : 7.03459001,
    "errors" : "",
    "generate" : true,
    "genproclimit" : -1,
    "primespersec" : 28795,
    "pooledtx" : 0,
    "sieveextensions" : 9,
    "sievepercentage" : 10,
    "sievesize" : 1000000,
    "testnet" : false
}
Code:
{
    "version" : "v0.1.2.0xpm-hp11-unk-beta",
    "protocolversion" : 70001,
    "walletversion" : 60000,
    "balance" : 0.00000000,
    "blocks" : 423,
    "moneysupply" : 8573.75000000,
    "timeoffset" : 0,
    "connections" : 1,
    "proxy" : "",
    "testnet" : false,
    "keypoololdest" : 1393852700,
    "keypoolsize" : 101,
    "paytxfee" : 0.00000000,
    "errors" : ""
}
legendary
Activity: 1022
Merit: 1000
That's normal. The miner chooses an unused address from the wallet.
Great, thanks!
sr. member
Activity: 301
Merit: 250
That's normal. The miner chooses an unused address from the wallet.
legendary
Activity: 1022
Merit: 1000
I followed the instruction how to solo mine using this high performance client, but after finding a block the address is different from my primecoin addresses.

 primecoind listreceivedbyaddress 1 true
[
    {
        "address" : "AXWGZBhBK3vbYMEKs7YcXmW1z2XNatZM9s",
        "account" : "AbEddedSP754fNzKQErezFWVPxzkVcZbBw",
        "amount" : 0.00000000,
        "confirmations" : 0
    },
    {
        "address" : "AbEddedSP754fNzKQErezFWVPxzkVcZbBw",
        "account" : "",
        "amount" : 0.00000000,
        "confirmations" : 0
    }
]


 primecoind listtransactions
[
    {
        "account" : "",
        "address" : "AHDwCjwr4zq5P8axJUhmma2Si2vfnTJugp",
        "category" : "immature",
        "amount" : 9.20000000,
        "confirmations" : 828,
        "generated" : true,
        "blockhash" : "ea5203c0c981399abee0fd4e0265fb9bdaeaee552f34420f1d08c3b7fdc7fd0f",
        "blockindex" : 0,
        "blocktime" : 1391475398,
        "txid" : "acdba94a35dcbbf2f28115e500b78356f36939019863c8b1b54c173aa6c4cb18",
        "time" : 1391475398,
        "timereceived" : 1391475398
    }
]
hero member
Activity: 605
Merit: 634
AnhBen: Try this article. It's about combining outputs of miners to a common wallet.

DieJohnny: They have no OS? Do they have drives? Seems like it would be easier installing on regular drives if they are unused. Mining these is CPU intensive, don't think it's so I/O intensive, so it would probably work OK on USB. Once you get one configged on USB you could easily clone it with dd if=/dev/completedusbdrive of=/dev/otherusbdrive   You'd have to change /etc/hostname of each one so they're not all named the same.

Do you have free electricity? If so, you've got nothing to lose.
member
Activity: 114
Merit: 10
So if I want to use the primecoind just as a node, and interact with php for payment ...

the .primecoin/primecoin.conf file should just include :

server=1
daemon=1
rpcuser=primecoinrpc
rpcpassword=SOME_SECURE_PASSWORD

right?

member
Activity: 70
Merit: 10
How can I send my XPM automatically to an address?
I'm using Spot Instances on AWS and you will never know when it's terminated but if someone can have a little script to send it out to an address. I'm offering a couple of XPM for a few lines of code.
legendary
Activity: 1639
Merit: 1006
I am not a developer but am willing to tackle this thread if someone can give me some feedback.

I have 40 circa 2008 poweredge servers (xeon 2.2 ghz processors) sitting around doing nothing.

They have no OS, so I am contemplating buying 40 usb thumb drives and booting linux and mining PrimeCoin with them.

Any thoughts?
newbie
Activity: 57
Merit: 0
Does anyone have any idea what could be the problem?
It has over 40 minutes so

trying connection 69.164.204.19:9911 lastseen=91.9hrs
connection timeout
trying connection 69.164.204.19:9911 lastseen=91.9hrs
connection timeout
trying connection 76.74.177.224:9911 lastseen=105.1hrs
connect() failed after select(): Connection refused
trying connection 69.164.204.19:9911 lastseen=91.9hrs
connection timeout
trying connection 69.164.204.19:9911 lastseen=91.9hrs
connection timeout
trying connection 69.164.204.19:9911 lastseen=91.9hrs
connection timeout
Flushed 4 addresses to peers.dat  26ms
trying connection 69.164.204.19:9911 lastseen=91.9hrs
connection timeout
trying connection 76.74.177.224:9911 lastseen=105.1hrs
connect() failed after select(): Connection refused
trying connection 76.74.177.224:9911 lastseen=105.1hrs
connect() failed after select(): Connection refused
newbie
Activity: 12
Merit: 0
Hi,

On the digital ocean server I have used these steps to install in CentOS 6.4;
Code:
mkdir /install
cd /install
yum install gcc-c++ m4 openssl-devel db4-devel boost-devel screen

cd /install
rm -rf gmp-5.1.2.tar.bz2 gmp-5.1.2
rm -rf gmp-5.1.3.tar.bz2 gmp-5.1.3
wget http://mirrors.kernel.org/gnu/gmp/gmp-5.1.3.tar.bz2
tar xjvf gmp-5.1.3.tar.bz2
cd gmp-5.1.3
./configure --enable-cxx
make
make install

cd /install
rm -rf openssl-1.0.1e.tar.gz openssl-1.0.1e
wget ftp://ftp.pca.dfn.de/pub/tools/net/openssl/source/openssl-1.0.1e.tar.gz
tar xzvf openssl-1.0.1e.tar.gz
cd openssl-1.0.1e
./config shared --prefix=/usr/local --libdir=lib
make
make install

cd /install
rm -rf miniupnpc-1.6.20120509.tar.gz
wget http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.6.20120509.tar.gz
tar xzvf miniupnpc-1.6.20120509.tar.gz
cd miniupnpc-1.6.20120509
make
sudo INSTALLPREFIX=/usr/local make install

cd /install
rm -rf primecoin-0.1.2-hp11.tar.bz2 primecoin-0.1.2-hp11
wget http://sourceforge.net/projects/primecoin-hp/files/0.1.2-hp11/primecoin-0.1.2-hp11.tar.bz2/download -O primecoin-0.1.2-hp11.tar.bz2
tar xjvf primecoin-0.1.2-hp11.tar.bz2
cd primecoin-0.1.2-hp11/src
cp makefile.unix makefile.my
sed -i -e 's/$(OPENSSL_INCLUDE_PATH))/$(OPENSSL_INCLUDE_PATH) \/usr\/local\/include)/' makefile.my
sed -i -e 's/$(OPENSSL_LIB_PATH))/$(OPENSSL_LIB_PATH) \/usr\/local\/lib)/' makefile.my
sed -i -e 's/$(LDHARDENING) $(LDFLAGS)/$(LDHARDENING) -Wl,-rpath,\/usr\/local\/lib $(LDFLAGS)/' makefile.my
make -f makefile.my USE_UPNP=- BOOST_LIB_SUFFIX=-mt
strip primecoind
rm -rf /usr/local/bin/primecoind
cp primecoind /usr/local/bin/

After these staps I start screen and run primecoind:
Code:
primecoind -deamon - printtoconsole
When running in screen, detach the screen console with crtl+a+d. and you can logout of the server. When reconnecting with ssh to the server you can reconnect to screen to see how you are doing with
Code:
screen -a -r

Regards,
Deltaman
newbie
Activity: 7
Merit: 0
Thanks, i'll try that.

AB.
sr. member
Activity: 301
Merit: 250
Ok, it looks like Redhat is indeed shipping a crippled version of OpenSSL in Fedora 19. So you need to compile your own version. Step 2b in my guide shows how to do that.

Some references:
http://bitcoin.stackexchange.com/questions/7940/how-do-i-build-bitcoin-in-fedora-18
https://bugzilla.redhat.com/show_bug.cgi?id=319901
newbie
Activity: 7
Merit: 0
Quote
Well, it could be a compiler issue in Fedora 19. Did you use any special compiler flags when compiling? Also, it could be an issue in your version of OpenSSL. In the past Redhat has removed support for EC crypto from their version of OpenSSL. Did you compile your own version of OpenSSL, or did you use Fedora's version?

Thank you for your reply! Here is some additionnal information:

1) Before compiling, I made no change to makefile.unix. Thus the flags were:
Code:
-O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -DUSE_UPNP=0 -DUSE_IPV6=1 -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2
2) I am using the OpenSSL from Fedora:
Code:
openssl-devel-1.0.1e-30.fc19.x86_64
openssl-1.0.1e-30.fc19.x86_64
openssl-libs-1.0.1e-30.fc19.x86_64
3) During compilation there are no errors but some warnings, namely:
Code:
g++ -I. -I./include -fno-builtin-memcmp -pthread -DOS_LINUX -DLEVELDB_PLATFORM_POSIX -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/jrostand/primecoin/src -I/home/jrostand/primecoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/jrostand/primecoin/src/leveldb/include -I/home/jrostand/primecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -c db/memtable.cc -o db/memtable.o
db/memtable.cc: In member function ‘void leveldb::MemTable::Add(leveldb::SequenceNumber, leveldb::ValueType, const leveldb::Slice&, const leveldb::Slice&)’:
db/memtable.cc:104:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   assert((p + val_size) - buf == encoded_len);
g++ -I. -I./include -fno-builtin-memcmp -pthread -DOS_LINUX -DLEVELDB_PLATFORM_POSIX -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/jrostand/primecoin/src -I/home/jrostand/primecoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/jrostand/primecoin/src/leveldb/include -I/home/jrostand/primecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -c table/table.cc -o table/table.o
table/table.cc: In member function ‘leveldb::Status leveldb::Table::InternalGet(const leveldb::ReadOptions&, const leveldb::Slice&, void*, void (*)(void*, const leveldb::Slice&, const leveldb::Slice&))’:
table/table.cc:231:13: warning: variable ‘handle’ set but not used [-Wunused-but-set-variable]
       Slice handle = iiter->value();
g++ -I. -I./include -fno-builtin-memcmp -pthread -DOS_LINUX -DLEVELDB_PLATFORM_POSIX -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/jrostand/primecoin/src -I/home/jrostand/primecoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/jrostand/primecoin/src/leveldb/include -I/home/jrostand/primecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -c util/bloom.cc -o util/bloom.o
util/bloom.cc: In member function ‘virtual void leveldb::{anonymous}::BloomFilterPolicy::CreateFilter(const leveldb::Slice*, int, std::string*) const’:
util/bloom.cc:50:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (size_t i = 0; i < n; i++) {
g++ -I. -I./include -fno-builtin-memcmp -pthread -DOS_LINUX -DLEVELDB_PLATFORM_POSIX -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/jrostand/primecoin/src -I/home/jrostand/primecoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/jrostand/primecoin/src/leveldb/include -I/home/jrostand/primecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -c util/cache.cc -o util/cache.o
util/cache.cc: In member function ‘void leveldb::{anonymous}::HandleTable::Resize()’:
util/cache.cc:119:15: warning: variable ‘key’ set but not used [-Wunused-but-set-variable]
         Slice key = h->key();
g++ -I. -I./include -fno-builtin-memcmp -pthread -DOS_LINUX -DLEVELDB_PLATFORM_POSIX -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/jrostand/primecoin/src -I/home/jrostand/primecoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/jrostand/primecoin/src/leveldb/include -I/home/jrostand/primecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -c util/logging.cc -o util/logging.o
util/logging.cc: In function ‘bool leveldb::ConsumeDecimalNumber(leveldb::Slice*, uint64_t*)’:
util/logging.cc:67:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
           (v == kMaxUint64/10 && delta > kMaxUint64%10)) {
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/jrostand/primecoin/src -I/home/jrostand/primecoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/jrostand/primecoin/src/leveldb/include -I/home/jrostand/primecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/init.d -o obj/init.o init.cpp
In file included from bitcoinrpc.h:18:0,
                 from init.cpp:10:
json/json_spirit_writer_template.h: In function ‘String_type json_spirit::non_printable_to_string(unsigned int)’:
json/json_spirit_writer_template.h:31:50: warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
         typedef typename String_type::value_type Char_type;
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/jrostand/primecoin/src -I/home/jrostand/primecoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/jrostand/primecoin/src/leveldb/include -I/home/jrostand/primecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/bitcoinrpc.d -o obj/bitcoinrpc.o bitcoinrpc.cpp
In file included from bitcoinrpc.h:18:0,
                 from bitcoinrpc.cpp:12:
json/json_spirit_writer_template.h: In function ‘String_type json_spirit::non_printable_to_string(unsigned int)’:
json/json_spirit_writer_template.h:31:50: warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
         typedef typename String_type::value_type Char_type;
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/jrostand/primecoin/src -I/home/jrostand/primecoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/jrostand/primecoin/src/leveldb/include -I/home/jrostand/primecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/rpcdump.d -o obj/rpcdump.o rpcdump.cpp
In file included from bitcoinrpc.h:18:0,
                 from rpcdump.cpp:7:
json/json_spirit_writer_template.h: In function ‘String_type json_spirit::non_printable_to_string(unsigned int)’:
json/json_spirit_writer_template.h:31:50: warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
         typedef typename String_type::value_type Char_type;
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/jrostand/primecoin/src -I/home/jrostand/primecoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/jrostand/primecoin/src/leveldb/include -I/home/jrostand/primecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/rpcnet.d -o obj/rpcnet.o rpcnet.cpp
In file included from bitcoinrpc.h:18:0,
                 from rpcnet.cpp:8:
json/json_spirit_writer_template.h: In function ‘String_type json_spirit::non_printable_to_string(unsigned int)’:
json/json_spirit_writer_template.h:31:50: warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
         typedef typename String_type::value_type Char_type;
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/jrostand/primecoin/src -I/home/jrostand/primecoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/jrostand/primecoin/src/leveldb/include -I/home/jrostand/primecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/rpcmining.d -o obj/rpcmining.o rpcmining.cpp
In file included from bitcoinrpc.h:18:0,
                 from rpcmining.cpp:10:
json/json_spirit_writer_template.h: In function ‘String_type json_spirit::non_printable_to_string(unsigned int)’:
json/json_spirit_writer_template.h:31:50: warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
         typedef typename String_type::value_type Char_type;
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/jrostand/primecoin/src -I/home/jrostand/primecoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/jrostand/primecoin/src/leveldb/include -I/home/jrostand/primecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/rpcwallet.d -o obj/rpcwallet.o rpcwallet.cpp
In file included from bitcoinrpc.h:18:0,
                 from rpcwallet.cpp:11:
json/json_spirit_writer_template.h: In function ‘String_type json_spirit::non_printable_to_string(unsigned int)’:
json/json_spirit_writer_template.h:31:50: warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
         typedef typename String_type::value_type Char_type;
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/jrostand/primecoin/src -I/home/jrostand/primecoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/jrostand/primecoin/src/leveldb/include -I/home/jrostand/primecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/rpcblockchain.d -o obj/rpcblockchain.o rpcblockchain.cpp
In file included from bitcoinrpc.h:18:0,
                 from rpcblockchain.cpp:8:
json/json_spirit_writer_template.h: In function ‘String_type json_spirit::non_printable_to_string(unsigned int)’:
json/json_spirit_writer_template.h:31:50: warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
         typedef typename String_type::value_type Char_type;
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/jrostand/primecoin/src -I/home/jrostand/primecoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/jrostand/primecoin/src/leveldb/include -I/home/jrostand/primecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/rpcrawtransaction.d -o obj/rpcrawtransaction.o rpcrawtransaction.cpp
In file included from bitcoinrpc.h:18:0,
                 from rpcrawtransaction.cpp:9:
json/json_spirit_writer_template.h: In function ‘String_type json_spirit::non_printable_to_string(unsigned int)’:
json/json_spirit_writer_template.h:31:50: warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
         typedef typename String_type::value_type Char_type;
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/jrostand/primecoin/src -I/home/jrostand/primecoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/jrostand/primecoin/src/leveldb/include -I/home/jrostand/primecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/noui.d -o obj/noui.o noui.cpp
In file included from bitcoinrpc.h:18:0,
                 from noui.cpp:8:
json/json_spirit_writer_template.h: In function ‘String_type json_spirit::non_printable_to_string(unsigned int)’:
json/json_spirit_writer_template.h:31:50: warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
         typedef typename String_type::value_type Char_type;
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/jrostand/primecoin/src -I/home/jrostand/primecoin/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/jrostand/primecoin/src/leveldb/include -I/home/jrostand/primecoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/checkpointsync.d -o obj/checkpointsync.o checkpointsync.cpp
In file included from bitcoinrpc.h:18:0,
                 from checkpointsync.cpp:70:
json/json_spirit_writer_template.h: In function ‘String_type json_spirit::non_printable_to_string(unsigned int)’:
json/json_spirit_writer_template.h:31:50: warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
         typedef typename String_type::value_type Char_type;
4) Other packages installed
boost-devel-1.53.0-14.fc19.x86_64
miniupnpc-devel-1.6-9.fc19.x86_64
libdb4-devel-4.8.30-10.fc19.x86_64
libdb-devel-5.3.21-11.fc19.x86_64
libdb-cxx-devel-5.3.21-11.fc19.x86_64
gcc-4.8.2-1.fc19.x86_64
libgcc-4.8.2-1.fc19.x86_64
5) "make -f makefile.unix test" returns a long list of errors (only beginning and end shown here):
Code:
/bin/sh ../share/genbuild.sh obj/build.h
./test_primecoin
Running 93 test cases...
test/key_tests.cpp(59): error in "key_test1": check bsecret1.SetString (strSecret1) failed
test/key_tests.cpp(60): error in "key_test1": check bsecret2.SetString (strSecret2) failed
test/key_tests.cpp(61): error in "key_test1": check bsecret1C.SetString(strSecret1C) failed
test/key_tests.cpp(62): error in "key_test1": check bsecret2C.SetString(strSecret2C) failed
unknown location(0): fatal error in "key_test1": std::runtime_error: CKey::CKey() : EC_KEY_new_by_curve_name failed
test/key_tests.cpp(76): last checkpoint
unknown location(0): fatal error in "CreateNewBlock_validity": std::runtime_error: CKey::CKey() : EC_KEY_new_by_curve_name failed
test/miner_tests.cpp(58): last checkpoint
test/transaction_tests.cpp(81): error in "tx_valid": [[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1",0,"1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]],"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba26000000000490047304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2b01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000",true]
test/transaction_tests.cpp(81): error in "tx_valid": [[["60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1",0,"1 0x41 0x04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0x41 0x0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG"]],"0100000001b14bdcbc3e01bdaad36cc08e81e69c82e1060bc14e518db2b49aa43ad90ba260000000004A0048304402203f16c6f40162ab686621ef3000b04e75418a0c0cb2d8aebeac894ae360ac1e780220ddc15ecdfc3507ac48e1681a33eb60996631bf6bf5bc0a0682c4db743ce7ca2bab01ffffffff0140420f00000000001976a914660d4ef3a743e3e696ad990364e555c271ad504b88ac00000000",true]
test/transaction_tests.cpp(81): error in "tx_valid": [[["406b2b06bcd34d3c8733e6b79f7a394c8a431fbf4ff5ac705c93f4076bb77602",0,"DUP HASH160 0x14 0xdc44b1164188067c3a32d4780f5996fa14a4f2d9 EQUALVERIFY CHECKSIG"]],"01000000010276b76b07f4935c70acf54fbf1f438a4c397a9fb7e633873c4dd3bc062b6b40000000008c493046022100d23459d03ed7e9511a47d13292d3430a04627de6235b6e51a40f9cd386f2abe3022100e7d25b080f0bb8d8d5f878bba7d54ad2fda650ea8d158a33ee3cbd11768191fd004104b0e2c879e4daf7b9ab68350228c159766676a14f5815084ba166432aab46198d4cca98fa3e9981d0a90b2effc514b76279476550ba3663fdcaff94c38420e9d5000000000100093d00000000001976a9149a7b0f3b80c6baaeedce0a0842553800f832ba1f88ac00000000",true]
test/transaction_tests.cpp(70): error in "tx_valid": [[["0000000000000000000000000000000000000000000000000000000000000100",0,"DUP HASH160 0x14 0x5b6462475454710f3c22f5fdf0b40704c92f25c3 EQUALVERIFY CHECKSIGVERIFY 1"]],"01000000010001000000000000000000000000000000000000000000000000000000000000000000006a473044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a012103ba8c8b86dea131c22ab967e6dd99bdae8eff7a1f75a2c35f1f944109e3fe5e22ffffffff010000000000000000015100000000",true]
test/transaction_tests.cpp(71): error in "tx_valid": check state.IsValid() failed
test/transaction_tests.cpp(81): error in "tx_valid": [[["0000000000000000000000000000000000000000000000000000000000000100",0,"DUP HASH160 0x14 0x5b6462475454710f3c22f5fdf0b40704c92f25c3 EQUALVERIFY CHECKSIGVERIFY 1"]],"01000000010001000000000000000000000000000000000000000000000000000000000000000000006a473044022067288ea50aa799543a536ff9306f8e1cba05b9c6b10951175b924f96732555ed022026d7b5265f38d21541519e4a1e55044d5b9e17e15cdbaf29ae3792e99e883e7a012103ba8c8b86dea131c22ab967e6dd99bdae8eff7a1f75a2c35f1f944109e3fe5e22ffffffff010000000000000000015100000000",true]

[ ... ]

test/base58_tests.cpp(192): error in "base58_keys_valid_gen": result mismatch: ["5KL6zEaMtPRXZKo1bbMq7JDjjo1bJuQcsgL33je3oY8uSJCR5b4","c7666842503db6dc6ea061f092cfb9c388448629a6fe868d068c42a488b478ae",{"isCompressed":false,"isPrivkey":true,"isTestnet":false}]
test/base58_tests.cpp(192): error in "base58_keys_valid_gen": result mismatch: ["KwV9KAfwbwt51veZWNscRTeZs9CKpojyu1MsPnaKTF5kz69H1UN2","07f0803fc5399e773555ab1e8939907e9badacc17ca129e67a2f5f2ff84351dd",{"isCompressed":true,"isPrivkey":true,"isTestnet":false}]
test/base58_tests.cpp(217): error in "base58_keys_valid_gen": mismatch: ["13p1ijLwsnrcuyqcTvJXkq2ASdXqcnEBLE","1ed467017f043e91ed4c44b4e8dd674db211c4e6",{"addrType":"pubkey","isPrivkey":false,"isTestnet":false}]
test/base58_tests.cpp(217): error in "base58_keys_valid_gen": mismatch: ["3ALJH9Y951VCGcVZYAdpA3KchoP9McEj1G","5ece0cadddc415b1980f001785947120acdb36fc",{"addrType":"script","isPrivkey":false,"isTestnet":false}]
unknown location(0): fatal error in "multisig_verify": std::runtime_error: CKey::CKey() : EC_KEY_new_by_curve_name failed
test/base58_tests.cpp(253): last checkpoint
unknown location(0): fatal error in "multisig_IsStandard": std::runtime_error: CKey::CKey() : EC_KEY_new_by_curve_name failed
test/base58_tests.cpp(253): last checkpoint
unknown location(0): fatal error in "multisig_Solver1": std::runtime_error: CKey::CKey() : EC_KEY_new_by_curve_name failed
test/base58_tests.cpp(253): last checkpoint
unknown location(0): fatal error in "multisig_Sign": std::runtime_error: CKey::CKey() : EC_KEY_new_by_curve_name failed
test/base58_tests.cpp(253): last checkpoint
unknown location(0): fatal error in "script_CHECKMULTISIG12": std::runtime_error: CKey::CKey() : EC_KEY_new_by_curve_name failed
test/script_tests.cpp(196): last checkpoint
unknown location(0): fatal error in "script_CHECKMULTISIG23": std::runtime_error: CKey::CKey() : EC_KEY_new_by_curve_name failed
test/script_tests.cpp(196): last checkpoint
unknown location(0): fatal error in "script_combineSigs": std::runtime_error: CKey::CKey() : EC_KEY_new_by_curve_name failed
test/script_tests.cpp(196): last checkpoint
test/bloom_tests.cpp(74): error in "bloom_create_insert_key": check vchSecret.SetString(strSecret) failed
unknown location(0): fatal error in "bloom_create_insert_key": std::runtime_error: CKey::CKey() : EC_KEY_new_by_curve_name failed
test/bloom_tests.cpp(74): last checkpoint
unknown location(0): fatal error in "merkle_block_1": memory access violation at address: 0x00000000: no mapping at fault address
test/bloom_tests.cpp(166): last checkpoint

*** 144 failures detected in test suite "Bitcoin Test Suite"
make: *** [test] Error 201

If you need more details, please let me know and thank you again.

AB.
sr. member
Activity: 301
Merit: 250
When i use primecoin-hp11 binary (downloaded from sourceforge) everything runs fine. Let's call this one A.

When i use the binary i get after compiling from source (either sourceforge, github or bitbucket) -- let's call this one B --, i get these kind of messages in debug.log:
Code:
received block 1512dbec68b62a277efddb631a3de13fc6293f6906a2386bdedf7e7157c5218b
ERROR: CScriptCheck() : 0ef6ec05ffdc0a1fcc54efbe10ab2ba90359f0038c75278382e3358b8014602e VerifySignature failed
InvalidChainFound: invalid block=1512dbec68b62a277efddb631a3de13fc6293f6906a2386bdedf7e7157c5218b  height=297777  log2_work=43.922259  date=2013-12-06 19:46:32
InvalidChainFound:  current best=389d7b3c8f4b5ea6ff76504e837942f0e2d58a40d7bac74da4a6faba491ee8b9  height=297776  log2_work=43.92224  date=2013-12-06 19:44:57
InvalidChainFound: invalid block=1512dbec68b62a277efddb631a3de13fc6293f6906a2386bdedf7e7157c5218b  height=297777  log2_work=43.922259  date=2013-12-06 19:46:32
InvalidChainFound:  current best=389d7b3c8f4b5ea6ff76504e837942f0e2d58a40d7bac74da4a6faba491ee8b9  height=297776  log2_work=43.92224  date=2013-12-06 19:44:57
ERROR: SetBestBlock() : ConnectBlock 1512dbec68b62a277efddb631a3de13fc6293f6906a2386bdedf7e7157c5218b failed
ERROR: AcceptBlock() : AddToBlockIndex failed
ERROR: ProcessBlock() : AcceptBlock FAILED
In fact, no new "ProcessBlock: ACCEPTED" ever happens. Even if I return to A, the same error is now showing (it looks like the chain was corrupted by B). I am, unable to reindex the chain with B (InvalidChainFound appears around height 85431).

Any idea what's wrong?

I am on a Fedora 19 box.

Well, it could be a compiler issue in Fedora 19. Did you use any special compiler flags when compiling? Also, it could be an issue in your version of OpenSSL. In the past Redhat has removed support for EC crypto from their version of OpenSSL. Did you compile your own version of OpenSSL, or did you use Fedora's version?
sr. member
Activity: 378
Merit: 255
I am trying to get this installed on an online AWS server. like digital Ocean. I have compiled everything and i am trying to run everything. but when i check the mining, i get little to nothing.

2013-12-03 21:30:27 primemeter     86321 prime/h   1368657 test/h    0 5-chains/h 0.012314 chain/d
2013-12-03 21:31:28 primemeter    110984 prime/h   1721939 test/h   59 5-chains/h 0.016618 chain/d
2013-12-03 21:32:29 primemeter    114366 prime/h   1822189 test/h    0 5-chains/h 0.016676 chain/d
2013-12-03 21:33:29 primemeter    105579 prime/h   1629647 test/h    0 5-chains/h 0.013099 chain/d
2013-12-03 21:34:29 primemeter    105275 prime/h   1566544 test/h    0 5-chains/h 0.014631 chain/d

it seems like its very low for the server.

also i have changed my rpcuser to my beeeeer address and password. was that where i mine for a pool? or could i put my wallet address in  the config somewhere?

If you want to pool mine, you need to use a pool miner, not the full client. There are a number of threads on this, check out this one! https://bitcointalksearch.org/topic/xpm-pool-mining-primecoin-using-digitalocean-vps-252944
newbie
Activity: 7
Merit: 0
When i use primecoin-hp11 binary (downloaded from sourceforge) everything runs fine. Let's call this one A.

When i use the binary i get after compiling from source (either sourceforge, github or bitbucket) -- let's call this one B --, i get these kind of messages in debug.log:
Code:
received block 1512dbec68b62a277efddb631a3de13fc6293f6906a2386bdedf7e7157c5218b
ERROR: CScriptCheck() : 0ef6ec05ffdc0a1fcc54efbe10ab2ba90359f0038c75278382e3358b8014602e VerifySignature failed
InvalidChainFound: invalid block=1512dbec68b62a277efddb631a3de13fc6293f6906a2386bdedf7e7157c5218b  height=297777  log2_work=43.922259  date=2013-12-06 19:46:32
InvalidChainFound:  current best=389d7b3c8f4b5ea6ff76504e837942f0e2d58a40d7bac74da4a6faba491ee8b9  height=297776  log2_work=43.92224  date=2013-12-06 19:44:57
InvalidChainFound: invalid block=1512dbec68b62a277efddb631a3de13fc6293f6906a2386bdedf7e7157c5218b  height=297777  log2_work=43.922259  date=2013-12-06 19:46:32
InvalidChainFound:  current best=389d7b3c8f4b5ea6ff76504e837942f0e2d58a40d7bac74da4a6faba491ee8b9  height=297776  log2_work=43.92224  date=2013-12-06 19:44:57
ERROR: SetBestBlock() : ConnectBlock 1512dbec68b62a277efddb631a3de13fc6293f6906a2386bdedf7e7157c5218b failed
ERROR: AcceptBlock() : AddToBlockIndex failed
ERROR: ProcessBlock() : AcceptBlock FAILED
In fact, no new "ProcessBlock: ACCEPTED" ever happens. Even if I return to A, the same error is now showing (it looks like the chain was corrupted by B). I am, unable to reindex the chain with B (InvalidChainFound appears around height 85431).

Any idea what's wrong?

I am on a Fedora 19 box.

AB
newbie
Activity: 19
Merit: 0
I am trying to get this installed on an online AWS server. like digital Ocean. I have compiled everything and i am trying to run everything. but when i check the mining, i get little to nothing.

2013-12-03 21:30:27 primemeter     86321 prime/h   1368657 test/h    0 5-chains/h 0.012314 chain/d
2013-12-03 21:31:28 primemeter    110984 prime/h   1721939 test/h   59 5-chains/h 0.016618 chain/d
2013-12-03 21:32:29 primemeter    114366 prime/h   1822189 test/h    0 5-chains/h 0.016676 chain/d
2013-12-03 21:33:29 primemeter    105579 prime/h   1629647 test/h    0 5-chains/h 0.013099 chain/d
2013-12-03 21:34:29 primemeter    105275 prime/h   1566544 test/h    0 5-chains/h 0.014631 chain/d

it seems like its very low for the server.

also i have changed my rpcuser to my beeeeer address and password. was that where i mine for a pool? or could i put my wallet address in  the config somewhere?
sr. member
Activity: 359
Merit: 250
I completely followed the instructions and run on two different computers with Ubuntu 12.04 and 13.04

On either one i get the following error after a random amount of time the daemon began:
Code:
primecoind: checkqueue.h:171: CCheckQueueControl::CCheckQueueControl(CCheckQueue*) [with T = CScriptCheck]: Assertion `pqueue->nTotal == pqueue->nIdle' failed.
newbie
Activity: 31
Merit: 0
Thanks, the instruction worked flawless on fresh Debian install on the Hetzner EX40 server.


P.S.
Is it possible to use Prime Coin mining in the pool? How?
j28
newbie
Activity: 4
Merit: 0
THANKS A LOT  Smiley
Pages:
Jump to: