m-pays / magi Goto Github PK
View Code? Open in Web Editor NEWOfficial Source of Coin MAGI (XMG)
Home Page: https://www.m-core.org
License: MIT License
Official Source of Coin MAGI (XMG)
Home Page: https://www.m-core.org
License: MIT License
Magi version v1.4.4.0 (2017-09-13 23:53:41 -0400)
Using OpenSSL version OpenSSL 1.0.2g 1 Mar 2016
Startup time: 09/14/17 04:46:05
Default data directory /home/server/.magi
Used data directory /home/server/.magi
dbenv.open LogDir=/home/server/.magi/database ErrorFile=/home/server/.magi/db.log
Loading block index...
Opening LevelDB in /home/server/.magi/blocks/index
Transaction index version is 72001
Opened LevelDB successfully
LoadBlockIndex(): hashBestChain=f53f72b30ae088d84605 height=1478607 trust=66478861740266 date=09/14/17 04:43:06
ERROR: CTxDB::LoadBlockIndex() : hashSyncCheckpoint not loaded
Magi: Error loading block database
Flush(false)
DBFlush(false) ended 0ms
StopNode()
Flushed 0 addresses to peers.dat 36ms
Flush(true)
DBFlush(true) ended 0ms
Magi exited
On a reasonably vanilla Debian 8 install, following the instruction here, resulted in a few errors.
Package libdb4.8++-dev is not available, but is referred to by another package.
Without this package, the build fails with:
src/db.h:14:20: fatal error: db_cxx.h: No such file or directory
Fixed by installing libdb++-dev
My build also failed with:
src/uint256.h:14:19: fatal error: gmpxx.h: No such file or directory
Fixed by installing libgmp-dev
Also failed with:
src/net.cpp:19:32: fatal error: miniupnpc/miniwget.h: No such file or directory
Fixed by installing libminiupnpc-dev
Wihout libminiupnpc installed the pre-compiled magi-qt binary found in this archive also fails to execute.
Running ubuntu 17.10
Wallet:
version : "v1.4.5.1",
protocolversion : 71064,
walletversion : 60000,
Whenever i enable PoS mining either through the gui or the command like the wallet crashes.
This started after passing the HF block 1606950.
The log has the following error :
EXCEPTION: 12bignum_error
CBigNum::operator/ : BN_div failed
Magi in ThreadStakeMiner()
2 Files:
wrong sentence: think should be 120?
strHTML += "
" + tr("Generated coins must mature 50 blocks .....
m-wallet-1.4.6.2-linux, 32-bit; release
$ file m-wallet-1.4.6.2-linux/bin/32/magid
m-wallet-1.4.6.2-linux/bin/32/magid: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=29b3896489e771bbf8be7c3f793ec664fde96ea6, stripped
I tried tried to download blockcain from block 0 but there is a problem in 2016, this client rejects block 735357 that is part of blockchain; information from debug.log:
received block d6b32c1b36267903c199
trying connection 54.38.79.76:8233 lastseen=129.4hrs
SetBestChain: new best=d6b32c1b36267903c199ad8ce433896f5565c2bdd8e404844e6abdf5e599e915 height=735356 money supply=4770724 trust=295
30431346415 date=03/16/16 20:32:25
Stake checkpoint: 500d28d
ProcessBlock: ACCEPTED
received block 000000000add6798d2dd
ERROR: ConnectBlock() : coinbase reward exceeded (actual=1698750342 vs calculated=1698750341, height=735356)
InvalidChainFound: invalid block=000000000add6798d2dd height=735357 trust=29530431362515 date=03/16/16 20:31:25
InvalidChainFound: current best=d6b32c1b36267903c199 height=735356 trust=29530431346415 date=03/16/16 20:32:25
ERROR: SetBestChain() : SetBestChainInner failed
ERROR: AcceptBlock() : AddToBlockIndex failed
ERROR: ProcessBlock() : AcceptBlock FAILED
Misbehaving: 34.82.177.39:8233 (0 -> 50)
Situation in block explorer:
block 735356 d6b32c1b36267903c199ad8ce433896f5565c2bdd8e404844e6abdf5e599e915
block 735357 000000000add6798d2dd9c62b16d7a74a9a1b272ba09de409ce06dc9bc8fcc2f
Error get my external IP connection to 91.19822.70:80 failed
I bought a OrangePI and installed Debian on it.
I tried to install the Magi wallet but it fails giving this result:
-bash: ./m-wallet: cannot execute binary file: Exec format error
Any one knows what is happening?
1
Hey there
I was quite confused (no; actually shocked) to see that many resources (e.g. the blockchain dump at http://coinmagi.org/bin/block-chain) are only available via http (linked from this githubs repositorys README).
Who needs help setting up letsencrypt to "secure" these resources?!
Tester
Hi all,
during build magi in raspberry 3 with raspbian stretch using follow make command:
similar other crypto i have the probleme with bignum and ssl-del 1.1.0f
pi@raspberrypi:~/magi/src $ make -f makefile.unix xCPUARCH=armv7l
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/home/pi/magi/src -I/home/pi/magi/src/hash -I/home/pi/magi/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/pi/magi/src/leveldb/include -I/home/pi/magi/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/checkpoints.d -o obj/checkpoints.o checkpoints.cpp
In file included from addrman.h:9:0,
from net.h:20,
from checkpoints.h:8,
from checkpoints.cpp:8:
util.h:258:22: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
return strprintf("%"PRI64d, n);
^
In file included from checkpoints.h:8:0,
from checkpoints.cpp:8:
net.h:326:20: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("askfor %s %"PRI64d" (%s)\n", inv.ToString().c_str(), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str());
^
In file included from txdb.h:8:0,
from checkpoints.cpp:10:
main.h:739:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
str += strprintf("(hash=%s, nTime=%d, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%d)\n",
^
main.h:739:72: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
str += strprintf("(hash=%s, nTime=%d, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%d)\n",
^
main.h:1177:16: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%"PRIszu", vchBlockSig=%s)\n",
^
main.h:1432:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%-6d nHeight=%d, nMint=%s, nMoneySupply=%s, nFlags=(%s)(%d)(%s), nStakeModifier=%016"PRI64x", nStakeModifierChecksum=%08x, hashProofOfStake=%s, prevoutStake=(%s), nStakeTime=%d merkle=%s, hashBlock=%s)",
^
In file included from main.h:8:0,
from txdb.h:8,
from checkpoints.cpp:10:
bignum.h:51:24: error: invalid use of incomplete type ‘BIGNUM {aka struct bignum_st}’
class CBigNum : public BIGNUM
^~~~~~
In file included from /usr/include/openssl/rand.h:14:0,
from net.h:11,
from checkpoints.h:8,
from checkpoints.cpp:8:
/usr/include/openssl/ossl_typ.h:80:16: note: forward declaration of ‘BIGNUM {aka struct bignum_st}’
typedef struct bignum_st BIGNUM;
^~~~~~~~~
In file included from main.h:8:0,
from txdb.h:8,
from checkpoints.cpp:10:
bignum.h: In constructor ‘CBigNum::CBigNum()’:
bignum.h:56:21: error: ‘BN_init’ was not declared in this scope
BN_init(this);
^
bignum.h: In copy constructor ‘CBigNum::CBigNum(const CBigNum&)’:
bignum.h:61:21: error: ‘BN_init’ was not declared in this scope
BN_init(this);
^
bignum.h:62:30: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)’
if (!BN_copy(this, &b))
^
bignum.h:64:31: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_clear_free(BIGNUM*)’
BN_clear_free(this);
^
bignum.h: In member function ‘CBigNum& CBigNum::operator=(const CBigNum&)’:
bignum.h:71:30: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)’
if (!BN_copy(this, &b))
^
bignum.h: In destructor ‘CBigNum::~CBigNum()’:
bignum.h:78:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_clear_free(BIGNUM*)’
BN_clear_free(this);
^
bignum.h: In constructor ‘CBigNum::CBigNum(signed char)’:
bignum.h:82:47: error: ‘BN_init’ was not declared in this scope
CBigNum(signed char n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
^
bignum.h: In constructor ‘CBigNum::CBigNum(short int)’:
bignum.h:83:47: error: ‘BN_init’ was not declared in this scope
CBigNum(short n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
^
bignum.h: In constructor ‘CBigNum::CBigNum(int)’:
bignum.h:84:47: error: ‘BN_init’ was not declared in this scope
CBigNum(int n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
^
bignum.h: In constructor ‘CBigNum::CBigNum(long int)’:
bignum.h:85:47: error: ‘BN_init’ was not declared in this scope
CBigNum(long n) { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
^
bignum.h: In constructor ‘CBigNum::CBigNum(int64)’:
bignum.h:86:47: error: ‘BN_init’ was not declared in this scope
CBigNum(int64 n) { BN_init(this); setint64(n); }
^
bignum.h: In constructor ‘CBigNum::CBigNum(unsigned char)’:
bignum.h:87:47: error: ‘BN_init’ was not declared in this scope
CBigNum(unsigned char n) { BN_init(this); setulong(n); }
^
bignum.h: In constructor ‘CBigNum::CBigNum(short unsigned int)’:
bignum.h:88:47: error: ‘BN_init’ was not declared in this scope
CBigNum(unsigned short n) { BN_init(this); setulong(n); }
^
bignum.h: In constructor ‘CBigNum::CBigNum(unsigned int)’:
bignum.h:89:47: error: ‘BN_init’ was not declared in this scope
CBigNum(unsigned int n) { BN_init(this); setulong(n); }
^
bignum.h: In constructor ‘CBigNum::CBigNum(long unsigned int)’:
bignum.h:90:47: error: ‘BN_init’ was not declared in this scope
CBigNum(unsigned long n) { BN_init(this); setulong(n); }
^
bignum.h: In constructor ‘CBigNum::CBigNum(uint64)’:
bignum.h:91:47: error: ‘BN_init’ was not declared in this scope
CBigNum(uint64 n) { BN_init(this); setuint64(n); }
^
bignum.h: In constructor ‘CBigNum::CBigNum(uint256)’:
bignum.h:92:47: error: ‘BN_init’ was not declared in this scope
explicit CBigNum(uint256 n) { BN_init(this); setuint256(n); }
^
bignum.h: In constructor ‘CBigNum::CBigNum(const std::vector&)’:
bignum.h:96:21: error: ‘BN_init’ was not declared in this scope
BN_init(this);
^
bignum.h: In member function ‘void CBigNum::setulong(long unsigned int)’:
bignum.h:102:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_set_word(BIGNUM*, unsigned int)’
if (!BN_set_word(this, n))
^
bignum.h: In member function ‘long unsigned int CBigNum::getulong() const’:
bignum.h:108:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘unsigned int BN_get_word(const BIGNUM*)’
return BN_get_word(this);
^
bignum.h: In member function ‘unsigned int CBigNum::getuint() const’:
bignum.h:113:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘unsigned int BN_get_word(const BIGNUM*)’
return BN_get_word(this);
^
bignum.h: In member function ‘int CBigNum::getint() const’:
bignum.h:118:43: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘unsigned int BN_get_word(const BIGNUM*)’
unsigned long n = BN_get_word(this);
^
bignum.h:119:33: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’
if (!BN_is_negative(this))
^
In file included from main.h:8:0,
from txdb.h:8,
from checkpoints.cpp:10:
bignum.h: In member function ‘void CBigNum::setint64(int64)’:
bignum.h:165:37: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’
BN_mpi2bn(pch, p - pch, this);
^
bignum.h: In member function ‘uint64 CBigNum::getuint64()’:
bignum.h:170:50: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’
unsigned int nSize = BN_bn2mpi(this, NULL);
^
bignum.h:174:32: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’
BN_bn2mpi(this, &vch[0]);
^
bignum.h: In member function ‘void CBigNum::setuint64(uint64)’:
bignum.h:207:37: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’
BN_mpi2bn(pch, p - pch, this);
^
bignum.h: In member function ‘void CBigNum::setuint256(uint256)’:
bignum.h:235:37: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’
BN_mpi2bn(pch, p - pch, this);
^
bignum.h: In member function ‘uint256 CBigNum::getuint256()’:
bignum.h:240:50: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’
unsigned int nSize = BN_bn2mpi(this, NULL);
^
bignum.h:244:32: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’
BN_bn2mpi(this, &vch[0]);
^
bignum.h: In member function ‘void CBigNum::setvch(const std::vector&)’:
bignum.h:266:46: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’
BN_mpi2bn(&vch2[0], vch2.size(), this);
^
bignum.h: In member function ‘std::vector CBigNum::getvch() const’:
bignum.h:271:50: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’
unsigned int nSize = BN_bn2mpi(this, NULL);
^
bignum.h:275:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’
BN_bn2mpi(this, &vch[0]);
^
bignum.h: In member function ‘CBigNum& CBigNum::SetCompact(unsigned int)’:
bignum.h:289:44: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘3’ to ‘BIGNUM* BN_mpi2bn(const unsigned char*, int, BIGNUM*)’
BN_mpi2bn(&vch[0], vch.size(), this);
^
bignum.h: In member function ‘unsigned int CBigNum::GetCompact() const’:
bignum.h:295:50: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’
unsigned int nSize = BN_bn2mpi(this, NULL);
^
bignum.h:298:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_bn2mpi(const BIGNUM*, unsigned char*)’
BN_bn2mpi(this, &vch[0]);
^
bignum.h: In member function ‘std::__cxx11::string CBigNum::ToString(int) const’:
bignum.h:343:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘void BN_set_negative(BIGNUM*, int)’
BN_set_negative(&bn, false);
^
bignum.h:346:29: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
if (BN_cmp(&bn, &bn0) == 0)
^
bignum.h:348:32: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
while (BN_cmp(&bn, &bn0) > 0)
^
bignum.h:350:54: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_div(&dv, &rem, &bn, &bnBase, pctx))
^
bignum.h:356:32: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’
if (BN_is_negative(this))
^
bignum.h: In member function ‘bool CBigNum::operator!() const’:
bignum.h:389:31: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_zero(const BIGNUM*)’
return BN_is_zero(this);
^
bignum.h: In member function ‘CBigNum& CBigNum::operator+=(const CBigNum&)’:
bignum.h:394:35: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’
if (!BN_add(this, this, &b))
^
bignum.h: In member function ‘CBigNum& CBigNum::operator*=(const CBigNum&)’:
bignum.h:408:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mul(this, this, &b, pctx))
^
bignum.h: In member function ‘CBigNum& CBigNum::operator<<=(unsigned int)’:
bignum.h:427:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’
if (!BN_lshift(this, this, shift))
^
bignum.h: In member function ‘CBigNum& CBigNum::operator>>=(unsigned int)’:
bignum.h:438:28: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
if (BN_cmp(&a, this) > 0)
^
bignum.h:444:41: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_rshift(BIGNUM*, const BIGNUM*, int)’
if (!BN_rshift(this, this, shift))
^
bignum.h: In member function ‘CBigNum& CBigNum::operator++()’:
bignum.h:453:47: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’
if (!BN_add(this, this, BN_value_one()))
^
bignum.h: In member function ‘CBigNum& CBigNum::operator--()’:
bignum.h:470:45: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)’
if (!BN_sub(&r, this, BN_value_one()))
^
bignum.h: In function ‘const CBigNum operator+(const CBigNum&, const CBigNum&)’:
bignum.h:495:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)’
if (!BN_add(&r, &a, &b))
^
bignum.h: In function ‘const CBigNum operator-(const CBigNum&, const CBigNum&)’:
bignum.h:503:27: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)’
if (!BN_sub(&r, &a, &b))
^
bignum.h: In function ‘const CBigNum operator-(const CBigNum&)’:
bignum.h:511:43: error: cannot convert ‘CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_is_negative(const BIGNUM*)’
BN_set_negative(&r, !BN_is_negative(&r));
^
bignum.h: In function ‘const CBigNum operator*(const CBigNum&, const CBigNum&)’:
bignum.h:519:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mul(&r, &a, &b, pctx))
^
bignum.h: In function ‘const CBigNum operator/(const CBigNum&, const CBigNum&)’:
bignum.h:528:39: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_div(&r, NULL, &a, &b, pctx))
^
In file included from bignum.h:10:0,
from main.h:8,
from txdb.h:8,
from checkpoints.cpp:10:
bignum.h: In function ‘const CBigNum operator%(const CBigNum&, const CBigNum&)’:
bignum.h:537:10: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘2’ to ‘int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)’
if (!BN_mod(&r, &a, &b, pctx))
^
In file included from main.h:8:0,
from txdb.h:8,
from checkpoints.cpp:10:
bignum.h: In function ‘const CBigNum operator<<(const CBigNum&, unsigned int)’:
bignum.h:545:33: error: cannot convert ‘CBigNum*’ to ‘BIGNUM* {aka bignum_st*}’ for argument ‘1’ to ‘int BN_lshift(BIGNUM*, const BIGNUM*, int)’
if (!BN_lshift(&r, &a, shift))
^
bignum.h: In function ‘bool operator==(const CBigNum&, const CBigNum&)’:
bignum.h:557:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
inline bool operator==(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) == 0); }
^
bignum.h: In function ‘bool operator!=(const CBigNum&, const CBigNum&)’:
bignum.h:558:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
inline bool operator!=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) != 0); }
^
bignum.h: In function ‘bool operator<=(const CBigNum&, const CBigNum&)’:
bignum.h:559:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
inline bool operator<=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) <= 0); }
^
bignum.h: In function ‘bool operator>=(const CBigNum&, const CBigNum&)’:
bignum.h:560:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
inline bool operator>=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) >= 0); }
^
bignum.h: In function ‘bool operator<(const CBigNum&, const CBigNum&)’:
bignum.h:561:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
inline bool operator<(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) < 0); }
^
bignum.h: In function ‘bool operator>(const CBigNum&, const CBigNum&)’:
bignum.h:562:83: error: cannot convert ‘const CBigNum*’ to ‘const BIGNUM* {aka const bignum_st*}’ for argument ‘1’ to ‘int BN_cmp(const BIGNUM*, const BIGNUM*)’
inline bool operator>(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) > 0); }
CLI (command line client) is not in the release files. Only GUI wallet and server node...
$ find m-wallet-1.4.6.2-linux -type f
m-wallet-1.4.6.2-linux/doc/release-notes.md
m-wallet-1.4.6.2-linux/COPYING.txt
m-wallet-1.4.6.2-linux/README.md
m-wallet-1.4.6.2-linux/conf/magi.conf
m-wallet-1.4.6.2-linux/bin/64/magid
m-wallet-1.4.6.2-linux/bin/64/m-wallet
m-wallet-1.4.6.2-linux/bin/32/magid
m-wallet-1.4.6.2-linux/bin/32/m-wallet
I would like to see in the list these too:
m-wallet-1.4.6.2-linux/bin/64/magi-cli
m-wallet-1.4.6.2-linux/bin/32/magi-cli
In the new release m-wallet-1.4.6.1-win.zip, the 32bits m-wallet.exe is on the old version
When I put this command: cd magi / src && make -f makefile.unix xCPUARCH = {71}
I have this error:
g ++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I / home / pi / magi / src -I / home / pi / magi / src / hash - I / home / pi / magi / src / obj -DUSE_UPNP = 0 -DUSE_IPV6 = 1 -I / home / pi / magi / src / leveldb / include -I / home / pi / magi / src / leveldb / helpers -DHAVE_BUILD_INFO - fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE = 2 -msse2 -MMD -MF obj / alert.d -o obj / alert.o alert.cpp
g ++: error: unrecognized command line option '-msse2'
makefile.unix: 186: instructions for target 'obj / alert.o' failed
make: *** [obj / alert.o] Error 1
Why is this ?
Add to the build requirements:
sudo apt-get install libgmp3-dev
i was staking my coins then i notice my magi wallet was not updating to the block chain i was 9hurs behind.. i closed the wallet and reopen it and still the same stuck trying to sink the block chain so they for i was thinking i need to restart my pc. After a reboot loading in my wallet my coins have vanished but still showing on the block chain that i not sent nothing can i have help to fix my problem please
The Qt and headless makefiles have been forked to support armv7 building at my github page: https://github.com/feldenthorne/magi.
Only a few lines of code were added to allow Qmake and Make to decide whether to use SSE2 instructions or THUMB instructions.
Changes to the QT GUI qmake file:
Changes to the headless build Makefile:
I would've submitted a pull request, but the binaries have to be built with libdb5.1 instead of libdb4.8 due to limitations with officially supported packages in the official Linaro repositories. Since that goes against the official usage of 4.8, I wasn't sure if it'd be in good taste to suggest a merge right off the bat.
Let me know if you'd like me to submit a pull request, otherwise I'll be happy to keep the fork (reasonably) updated and to release binaries as necessary.
I have tried to compile the new version of magid on my Arch machine. It throws some errors because of I have installed boost 1.66. It is similar to this issue of Zetacoin:
magirpc.cpp:668:102: Fehler: falsche Anzahl der Templateargumente (2, sollte 1 sein)
t::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
^
In file included from /usr/include/boost/asio.hpp:30,
from magirpc.cpp:15:
/usr/include/boost/asio/basic_socket_acceptor.hpp:73:7: Anmerkung: für »template<class Protocol> class boost::asio::basic_socket_acceptor« bereitgestellt
class basic_socket_acceptor
^~~~~~~~~~~~~~~~~~~~~
magirpc.cpp:668:104: Fehler: Templateargument 1 ist ungültig
:shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
^
magirpc.cpp:678:95: Fehler: falsche Anzahl der Templateargumente (2, sollte 1 sein)
t::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
^
In file included from /usr/include/boost/asio.hpp:30,
from magirpc.cpp:15:
/usr/include/boost/asio/basic_socket_acceptor.hpp:73:7: Anmerkung: für »template<class Protocol> class boost::asio::basic_socket_acceptor« bereitgestellt
class basic_socket_acceptor
^~~~~~~~~~~~~~~~~~~~~
magirpc.cpp:678:97: Fehler: Templateargument 1 ist ungültig
:shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
^
magirpc.cpp: In Funktion »void RPCListen(int, boost::asio::ssl::context&, bool)«:
magirpc.cpp:683:91: Fehler: Basisoperand von »->« ist kein Zeiger
Impl<Protocol>* conn = new AcceptedConnectionImpl<Protocol>(acceptor->get_io_service(), context, fUseSSL);
^~
magirpc.cpp:685:13: Fehler: Basisoperand von »->« ist kein Zeiger
acceptor->async_accept(
^~
magirpc.cpp: Im globalen Gültigkeitsbereich:
magirpc.cpp:700:102: Fehler: falsche Anzahl der Templateargumente (2, sollte 1 sein)
t::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
^
In file included from /usr/include/boost/asio.hpp:30,
from magirpc.cpp:15:
/usr/include/boost/asio/basic_socket_acceptor.hpp:73:7: Anmerkung: für »template<class Protocol> class boost::asio::basic_socket_acceptor« bereitgestellt
class basic_socket_acceptor
^~~~~~~~~~~~~~~~~~~~~
magirpc.cpp:700:104: Fehler: Templateargument 1 ist ungültig
:shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
^
magirpc.cpp: In Funktion »void RPCAcceptHandler(int, boost::asio::ssl::context&, bool, AcceptedConnection*, const boost::system::error_code&)«:
magirpc.cpp:710:17: Fehler: Basisoperand von »->« ist kein Zeiger
&& acceptor->is_open())
^~
magirpc.cpp:711:45: Fehler: keine passende Funktion für Aufruf von »RPCListen(int&, boost::asio::ssl::context&, const bool&)«
RPCListen(acceptor, context, fUseSSL);
^
magirpc.cpp:678:13: Anmerkung: candidate: »template<class Protocol, class SocketAcceptorService> void RPCListen(int, boost::asio::ssl::context&, bool)«
static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
^~~~~~~~~
magirpc.cpp:678:13: Anmerkung: Herleitung/Ersetzung von Templateargument gescheitert:
magirpc.cpp:711:45: Anmerkung: Template-Parameter »Protocol« konnte nicht ermittelt werden
RPCListen(acceptor, context, fUseSSL);
^
magirpc.cpp: In Funktion »void ThreadRPCServer2(void*)«:
magirpc.cpp:775:58: Fehler: keine passende Funktion für Aufruf von »boost::asio::ssl::context::context(boost::asio::io_service&, boost::asio::ssl::context_base::method)«
ssl::context context(io_service, ssl::context::sslv23);
^
In file included from /usr/include/boost/asio/ssl/context.hpp:757,
from /usr/include/boost/asio/ssl.hpp:18,
from magirpc.cpp:24:
/usr/include/boost/asio/ssl/impl/context.ipp:326:1: Anmerkung: candidate: »boost::asio::ssl::context::context(boost::asio::ssl::context&&)«
context::context(context&& other)
^~~~~~~
/usr/include/boost/asio/ssl/impl/context.ipp:326:1: Anmerkung: Kandidat erwartet 1 Argument, 2 angegeben
/usr/include/boost/asio/ssl/impl/context.ipp:63:1: Anmerkung: candidate: »boost::asio::ssl::context::context(boost::asio::ssl::context_base::method)«
context::context(context::method m)
^~~~~~~
/usr/include/boost/asio/ssl/impl/context.ipp:63:1: Anmerkung: Kandidat erwartet 1 Argument, 2 angegeben
magirpc.cpp:791:41: Fehler: »class boost::asio::ssl::context« hat kein Element namens »impl«
SSL_CTX_set_cipher_list(context.impl(), strCiphers.c_str());
^~~~
magirpc.cpp:816:45: Fehler: keine passende Funktion für Aufruf von »RPCListen(boost::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::ip::tcp> >&, boost::asio::ssl::context&, const bool&)«
RPCListen(acceptor, context, fUseSSL);
^
magirpc.cpp:678:13: Anmerkung: candidate: »template<class Protocol, class SocketAcceptorService> void RPCListen(int, boost::asio::ssl::context&, bool)«
static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
^~~~~~~~~
magirpc.cpp:678:13: Anmerkung: Herleitung/Ersetzung von Templateargument gescheitert:
magirpc.cpp:816:45: Anmerkung: Template-Parameter »Protocol« konnte nicht ermittelt werden
RPCListen(acceptor, context, fUseSSL);
^
magirpc.cpp:842:49: Fehler: keine passende Funktion für Aufruf von »RPCListen(boost::shared_ptr<boost::asio::basic_socket_acceptor<boost::asio::ip::tcp> >&, boost::asio::ssl::context&, const bool&)«
RPCListen(acceptor, context, fUseSSL);
^
magirpc.cpp:678:13: Anmerkung: candidate: »template<class Protocol, class SocketAcceptorService> void RPCListen(int, boost::asio::ssl::context&, bool)«
static void RPCListen(boost::shared_ptr< basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
^~~~~~~~~
magirpc.cpp:678:13: Anmerkung: Herleitung/Ersetzung von Templateargument gescheitert:
magirpc.cpp:842:49: Anmerkung: Template-Parameter »Protocol« konnte nicht ermittelt werden
RPCListen(acceptor, context, fUseSSL);
^
magirpc.cpp: In Funktion »json_spirit::Object CallRPC(const string&, const Array&)«:
magirpc.cpp:1085:58: Fehler: keine passende Funktion für Aufruf von »boost::asio::ssl::context::context(boost::asio::io_service&, boost::asio::ssl::context_base::method)«
ssl::context context(io_service, ssl::context::sslv23);
^
In file included from /usr/include/boost/asio/ssl/context.hpp:757,
from /usr/include/boost/asio/ssl.hpp:18,
from magirpc.cpp:24:
/usr/include/boost/asio/ssl/impl/context.ipp:326:1: Anmerkung: candidate: »boost::asio::ssl::context::context(boost::asio::ssl::context&&)«
context::context(context&& other)
^~~~~~~
/usr/include/boost/asio/ssl/impl/context.ipp:326:1: Anmerkung: Kandidat erwartet 1 Argument, 2 angegeben
/usr/include/boost/asio/ssl/impl/context.ipp:63:1: Anmerkung: candidate: »boost::asio::ssl::context::context(boost::asio::ssl::context_base::method)«
context::context(context::method m)
^~~~~~~
/usr/include/boost/asio/ssl/impl/context.ipp:63:1: Anmerkung: Kandidat erwartet 1 Argument, 2 angegeben
After applying the patch from the zetacoin issue I am able to compile everything without an error.
Hi,
I'm trying to compile the gui wallet on my Arch Linux installation. Other coins like litecoin or bitcoin compile fine on the system. So I guess I am missing some dependencie. Would be nice if anyone could provide a hint.
The steps done were:
$ cd magi
$ make clean
$ qmake (here I even tried with qmake "USE_UPNP=-" and "USE_IPV6=-")
$ make
The error I get is this:
g++ -c -pipe -fstack-protector-all --param ssp-buffer-size=1 -msse2 -O2 -march=i686 -mtune=generic -O2 -pipe -fstack-protector-strong -D_REENTRANT -fdiagnostics-show-option -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector -fPIC -DQT_GUI -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DHAVE_BUILD_INFO -DLINUX -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -Isrc -Isrc/json -Isrc/qt -Isrc/leveldb/include -Isrc/leveldb/helpers -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtCore -Ibuild -isystem /usr/include/libdrm -Ibuild -I/usr/lib/qt/mkspecs/linux-g++ -o build/net.o src/net.cpp
In file included from src/bignum.h:12:0,
from src/main.h:8,
from src/db.h:8,
from src/net.cpp:7:
src/util.h:258:22: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
return strprintf("%"PRI64d, n);
^
In file included from src/main.h:10:0,
from src/db.h:8,
from src/net.cpp:7:
src/net.h:322:20: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("askfor %s %"PRI64d" (%s)\n", inv.ToString().c_str(), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str());
^
In file included from src/db.h:8:0,
from src/net.cpp:7:
src/main.h:712:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
str += strprintf("(hash=%s, nTime=%d, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%d)\n",
^
src/main.h:712:72: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
str += strprintf("(hash=%s, nTime=%d, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%d)\n",
^
src/main.h:1148:16: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%"PRIszu", vchBlockSig=%s)\n",
^
src/main.h:1405:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%-6d nHeight=%d, nMint=%s, nMoneySupply=%s, nFlags=(%s)(%d)(%s), nStakeModifier=%016"PRI64x", nStakeModifierChecksum=%08x, hashProofOfStake=%s, prevoutStake=(%s), nStakeTime=%d merkle=%s, hashBlock=%s)",
^
src/net.cpp:894:36: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("socket recv flood control disconnect (%"PRIszu" bytes)\n", vRecv.size());
^
src/net.cpp:1237:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("Flushed %d addresses to peers.dat %"PRI64d"ms\n",
^
src/net.cpp:60:1: error: reference to ‘array’ is ambiguous
array<int, THREAD_MAX> vnThreadsRunning;
^~~~~
In file included from src/net.h:9:0,
from src/main.h:10,
from src/db.h:8,
from src/net.cpp:7:
/usr/include/boost/array.hpp:60:11: note: candidates are: template<class T, unsigned int N> class boost::array
class array {
^~~~~
In file included from /usr/include/c++/6.3.1/tuple:39:0,
from /usr/include/c++/6.3.1/bits/stl_map.h:63,
from /usr/include/c++/6.3.1/map:61,
from src/util.h:17,
from src/bignum.h:12,
from src/main.h:8,
from src/db.h:8,
from src/net.cpp:7:
/usr/include/c++/6.3.1/array:90:12: note: template<class _Tp, unsigned int _Nm> struct std::array
struct array
^~~~~
make: *** [Makefile:2246: build/net.o] Error 1
Hi there.
Trying this for first time but I understand a little big about CPU architecture.
So I'm following this tutorial and I cloned this repository.
So when I need to compile on my Raspberry Pi 3 I'm using this command
make -f makefile.unix xCPUARCH=arm7l -j3
But I received this error:
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/root/magi/src -I/root/magi/src/hash -I/root/magi/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/root/magi/src/leveldb/include -I/root/magi/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -msse2 -MMD -MF obj/alert.d -o obj/alert.o alert.cpp /bin/sh ../share/genbuild.sh obj/build.h g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/root/magi/src -I/root/magi/src/hash -I/root/magi/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/root/magi/src/leveldb/include -I/root/magi/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -msse2 -MMD -MF obj/checkpoints.d -o obj/checkpoints.o checkpoints.cpp g++: error: unrecognized command line option ‘-msse2’ g++: error: unrecognized command line option ‘-msse2’ makefile.unix:187: recipe for target 'obj/checkpoints.o' failed make: *** [obj/checkpoints.o] Error 1 make: *** Waiting for unfinished jobs.... makefile.unix:187: recipe for target 'obj/alert.o' failed make: *** [obj/alert.o] Error 1
Obviously for some reason during the compilation it's trying to using the SSE Instructions which of course the ARM platform doesn't support
So I went to see the makefile.unix File and I can clearly see
If we have an ARM device, we can't use SSE2 instructions, so don't try to use them
ifeq ($(xCPUARCH),armv7l)
else ifeq ($(xCPUARCH),armv6l)
else
xCXXFLAGS+=-msse2
endif
So I shouldn't be receiving this error.
What can I change to force make not to use msse2
Regards
Device: raspberry pi 3 running raspbian jessie Linux Hostname 4.9.13-v7+ #974 SMP Wed Mar 1 20:09:48 GMT 2017 armv7l GNU/Linux
Magi Wallet: version" : "v1.4.4.1"
"protocolversion" : 71062,
"blocks" : 1284485,
"timeoffset" : -2,
"moneysupply" : 6809469.61654539,
"connections" : 6,
"proxy" : "",
"ip" : "174.131.226.161",
"ipv4" : "174.131.226.161",
"ipv6" : "0.0.0.0",
"difficulty" : {
"proof-of-work" : 3.78683864,
"proof-of-stake" : 0.01564663
},
"testnet" : false,
"keypoololdest" : 1510804262,
"keypoolsize" : 101,
"mininput" : 0.00000000,
"paytxfee" : 0.00010000,
"unlocked_until" : 1521152649,
"errors" : ""
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Debug.log
connection timeout
trying connection 5.35.28.94:8233 lastseen=5.8hrs
connection timeout
trying connection 80.62.117.75:8233 lastseen=422.5hrs
IRC got join
connection timeout
trying connection 27.253.98.88:8233 lastseen=1.5hrs
connection timeout
trying connection 31.182.199.233:8233 lastseen=2.0hrs
connection timeout
trying connection 142.167.149.2:8233 lastseen=11.1hrs
connection timeout
trying connection 201.255.23.89:8233 lastseen=2.1hrs
connection timeout
trying connection 125.164.131.59:8233 lastseen=36.5hrs
connect() failed after select(): Connection refused
trying connection 110.54.137.48:8233 lastseen=6.1hrs
connection timeout
trying connection 92.112.241.102:8233 lastseen=71.6hrs
Flushed 8533 addresses to peers.dat 161ms
connection timeout
trying connection 76.181.179.110:8233 lastseen=2.1hrs
connection timeout
trying connection 5.167.80.38:8233 lastseen=2.1hrs
connection timeout
trying connection 41.227.47.17:8233 lastseen=36.8hrs
connection timeout
trying connection 119.76.32.231:8233 lastseen=5.7hrs
connection timeout
trying connection 74.122.52.126:8233 lastseen=1.6hrs
connect() failed after select(): Connection refused
trying connection 179.218.91.214:8233 lastseen=2.1hrs
connection timeout
trying connection 92.108.112.176:8233 lastseen=2.1hrs
connection timeout
trying connection 173.239.228.119:8233 lastseen=2.1hrs
connect() failed after select(): Connection refused
trying connection 134.19.176.47:8233 lastseen=22.5hrs
connection timeout
trying connection 212.93.102.197:8233 lastseen=2.1hrs
connection timeout
trying connection 37.214.50.236:8233 lastseen=136.7hrs
connection timeout
trying connection 69.197.188.186:8233 lastseen=0.7hrs
connected 69.197.188.186:8233
send version message: version 71062, blocks=1284485, us=174.131.226.161:8233, them=69.197.188.186:8233, peer=69.197.188.186:8233
Added time data, samples 7, offset +0 (+0 minutes)
nTimeOffset = -2 (+0 minutes)
receive version message: version 71062, blocks=1562995, us=174.131.226.161:51792, them=69.197.188.186:8233, peer=69.197.188.186:8233
trying connection 181.91.23.174:8233 lastseen=277.6hrs
received block 0000000029770fc9c8ae
ProcessBlock: ORPHAN BLOCK, prev=ccae012ead704dc13754
trying connection 104.128.225.215:8233 lastseen=391987.0hrs
connect() failed after select(): Connection refused
connection timeout
trying connection 96.2.42.204:8233 lastseen=28.3hrs
connection timeout
trying connection 188.225.110.17:8233 lastseen=239.4hrs
connection timeout
trying connection 79.74.139.79:8233 lastseen=2.1hrs
connection timeout
trying connection 24.4.247.121:8233 lastseen=2.1hrs
connection timeout
received block 36474ee4ddc517f412e1
ERROR: CheckProofOfStake() : INFO: check kernel failed on coinstake 4bea0c12df1b80bc135b4d31a6cfa8471939b97da2e4ca8e19ab8cc1d0ec2488, hashProof=0000000000000000000000000000000000000000000000000000000000000000
WARNING: AcceptBlock(): check proof-of-stake failed for block 36474ee4ddc517f412e1de24b52519e8f15b4f9ec761d3c3d87d217f14586fa7
ERROR: ProcessBlock() : AcceptBlock FAILED
trying connection 110.78.164.143:8233 lastseen=2.1hrs
connect() failed after select(): Connection refused
trying connection 31.162.74.238:8233 lastseen=107.0hrs
connect() failed after select(): Connection refused
trying connection 79.35.242.242:8233 lastseen=11.2hrs
Added 623 addresses from 69.197.188.186: 39 tried, 8491 new
Added 595 addresses from 69.197.188.186: 39 tried, 8489 new
Added 303 addresses from 69.197.188.186: 39 tried, 8485 new
connection timeout
trying connection 113.195.32.191:8233 lastseen=2.1hrs
connection timeout
trying connection 184.22.184.210:8233 lastseen=1.7hrs
Flushed 8524 addresses to peers.dat 164ms
ERROR: FetchInputs() : fe2560cf93 mempool Tx prev not found 59df216ab1
stored orphan tx fe2560cf93 (mapsz 5)
connection timeout
trying connection 184.22.184.210:8233 lastseen=1.7hrs
connection timeout
trying connection 84.216.68.141:8233 lastseen=37.2hrs
connection timeout
trying connection 50.5.204.44:8233 lastseen=5.7hrs
connection timeout
trying connection 102.252.211.204:8233 lastseen=7.1hrs
connection timeout
trying connection 47.205.242.142:8233 lastseen=2.1hrs
connection timeout
trying connection 188.64.133.138:8233 lastseen=100.8hrs
connection timeout
trying connection 24.113.46.63:8233 lastseen=2.1hrs
connection timeout
trying connection 84.63.33.141:8233 lastseen=177.1hrs
connect() failed after select(): No route to host
trying connection 107.181.189.34:8233 lastseen=2.1hrs
connect() failed after select(): Connection refused
trying connection 213.34.126.210:8233 lastseen=2.1hrs
connection timeout
trying connection 178.205.20.184:8233 lastseen=93.6hrs
connection timeout
trying connection 87.217.119.40:8233 lastseen=16.9hrs
received block 88e09fe22ad8efe73d65
ProcessBlock: ORPHAN BLOCK, prev=0000000029770fc9c8ae
connection timeout
trying connection 72.239.218.81:8233 lastseen=96.7hrs
connection timeout
trying connection 178.233.208.121:8233 lastseen=39.4hrs
connection timeout
trying connection 184.22.184.210:8233 lastseen=1.7hrs
received block bc6721925e47ef9fd374
ProcessBlock: ORPHAN BLOCK, prev=88e09fe22ad8efe73d65
connection timeout
trying connection 95.165.193.218:8233 lastseen=9.9hrs
connection timeout
trying connection 172.58.172.250:8233 lastseen=69.4hrs
trying connection 104.128.225.215:8233 lastseen=391987.1hrs
connect() failed after select(): Connection refused
connection timeout
trying connection 88.84.223.223:8233 lastseen=2.1hrs
connection timeout
trying connection 73.242.94.81:8233 lastseen=7.3hrs
connection timeout
trying connection 52.44.64.160:8233 lastseen=2.1hrs
Flushed 8524 addresses to peers.dat 106ms
connection timeout
trying connection 201.149.33.178:8233 lastseen=40.4hrs
connection timeout
trying connection 165.255.66.214:8233 lastseen=5.5hrs
connect() failed after select(): No route to host
trying connection 91.244.168.16:8233 lastseen=2.1hrs
connection timeout
trying connection 129.12.9.207:8233 lastseen=1.7hrs
connection timeout
trying connection 212.93.102.197:8233 lastseen=2.1hrs
connection timeout
trying connection 89.133.24.169:8233 lastseen=15.5hrs
connect() failed after select(): No route to host
trying connection 189.124.158.132:8233 lastseen=47.6hrs
connection timeout
trying connection 37.73.245.97:8233 lastseen=70.0hrs
connection timeout
trying connection 5.186.120.173:8233 lastseen=1.2hrs
connect() failed after select(): Connection refused
trying connection 2.3.138.71:8233 lastseen=2.1hrs
connection timeout
trying connection 40.71.217.190:8233 lastseen=4.2hrs
connection timeout
trying connection 84.196.168.47:8233 lastseen=5.2hrs
connect() failed after select(): Connection refused
trying connection 75.108.104.115:8233 lastseen=2.1hrs
connection timeout
trying connection 24.53.121.7:8233 lastseen=11.8hrs
connection timeout
trying connection 87.198.208.2:8233 lastseen=16.2hrs
connection timeout
trying connection 27.253.98.88:8233 lastseen=1.5hrs
connection timeout
trying connection 94.195.134.139:8233 lastseen=4.0hrs
connection timeout
trying connection 180.183.161.248:8233 lastseen=106.7hrs
connect() failed after select(): No route to host
trying connection 84.55.104.203:8233 lastseen=2.1hrs
connect() failed after select(): No route to host
trying connection 104.214.25.153:8233 lastseen=8.7hrs
connection timeout
trying connection 25.14.245.164:8233 lastseen=10.4hrs
IRC got join
connection timeout
trying connection 109.206.157.5:8233 lastseen=156.0hrs
connect() failed after select(): Network is unreachable
trying connection 180.198.244.128:8233 lastseen=2.1hrs
Flushed 8524 addresses to peers.dat 170ms
connection timeout
trying connection 5.165.116.251:8233 lastseen=2.1hrs
connect() failed after select(): Connection refused
trying connection 101.177.138.107:8233 lastseen=5.7hrs
trying connection 104.128.225.215:8233 lastseen=391987.1hrs
connect() failed after select(): Connection refused
connection timeout
trying connection 73.32.209.164:8233 lastseen=27.3hrs
connection timeout
trying connection 73.180.223.15:8233 lastseen=2.1hrs
connection timeout
trying connection 79.111.15.151:8233 lastseen=4.2hrs
connect() failed after select(): Connection refused
trying connection 172.97.144.247:8233 lastseen=6.1hrs
connection timeout
trying connection 5.189.173.111:8233 lastseen=2.1hrs
connection timeout
trying connection 109.149.180.169:8233 lastseen=13.8hrs
connection timeout
trying connection 113.195.32.191:8233 lastseen=2.1hrs
connection timeout
trying connection 72.253.232.167:8233 lastseen=21.7hrs
connect() failed after select(): Connection refused
trying connection 201.255.23.89:8233 lastseen=2.2hrs
connection timeout
trying connection 212.92.115.57:8233 lastseen=281.6hrs
connect() failed after select(): Connection refused
trying connection 82.134.172.195:8233 lastseen=2.2hrs
connect() failed after select(): No route to host
trying connection 212.51.131.191:8233 lastseen=2.2hrs
connection timeout
trying connection 79.110.129.210:8233 lastseen=348.7hrs
connection timeout
trying connection 84.125.117.218:8233 lastseen=6.3hrs
connection timeout
trying connection 14.0.171.148:8233 lastseen=199.6hrs
connection timeout
trying connection 31.25.120.10:8233 lastseen=7.0hrs
connection timeout
trying connection 180.244.235.138:8233 lastseen=25.7hrs
connection timeout
trying connection 72.33.4.78:8233 lastseen=20.2hrs
connection timeout
trying connection 187.32.49.33:8233 lastseen=2.2hrs
connect() failed after select(): Connection refused
trying connection 193.136.39.10:8233 lastseen=2.2hrs
connection timeout
trying connection 79.213.156.72:8233 lastseen=6.1hrs
received block cebabee94a5f1b519d38
ProcessBlock: ORPHAN BLOCK, prev=bc6721925e47ef9fd374
connect() failed after select(): No route to host
trying connection 120.61.209.7:8233 lastseen=98.7hrs
ResendWalletTransactions()
Flushed 8524 addresses to peers.dat 170ms
connection timeout
trying connection 31.208.73.202:8233 lastseen=33.8hrs
connection timeout
trying connection 51.52.131.2:8233 lastseen=2.2hrs
ThreadRPCServer method=getinfo
connection timeout
trying connection 98.214.111.142:8233 lastseen=9.6hrs
connection timeout
trying connection 81.102.69.232:8233 lastseen=37.2hrs
connection timeout
trying connection 46.136.89.206:8233 lastseen=10.8hrs
trying connection 104.128.225.215:8233 lastseen=391987.1hrs
connect() failed after select(): Connection refused
ERROR: FetchInputs() : b612a171d9 mempool Tx prev not found a00ad74ab7
ignoring large orphan tx (size: 7688, hash: b612a171d9)
ERROR: FetchInputs() : eeaf7699ce mempool Tx prev not found 584bc90239
stored orphan tx eeaf7699ce (mapsz 6)
ERROR: FetchInputs() : 8ec63e7bf8 mempool Tx prev not found a51c22fee3
stored orphan tx 8ec63e7bf8 (mapsz 7)
ERROR: FetchInputs() : ef8c3bf27b mempool Tx prev not found 4dc5e67582
stored orphan tx ef8c3bf27b (mapsz 8)
ERROR: FetchInputs() : 7f4d63f3b4 mempool Tx prev not found 2077dccb9f
stored orphan tx 7f4d63f3b4 (mapsz 9)
ERROR: FetchInputs() : 4e87966f32 mempool Tx prev not found b91e9b5d37
stored orphan tx 4e87966f32 (mapsz 10)
ERROR: FetchInputs() : f5208e53cd mempool Tx prev not found 5bcebbe901
stored orphan tx f5208e53cd (mapsz 11)
ERROR: FetchInputs() : 56b51876be mempool Tx prev not found cffe32d077
stored orphan tx 56b51876be (mapsz 12)
ERROR: FetchInputs() : 89e73b3548 mempool Tx prev not found 420dbacaf1
stored orphan tx 89e73b3548 (mapsz 13)
ERROR: FetchInputs() : 2905c4308a mempool Tx prev not found c9ebd36038
stored orphan tx 2905c4308a (mapsz 14)
ERROR: FetchInputs() : d2a837ebdc mempool Tx prev not found 1209a5d3db
stored orphan tx d2a837ebdc (mapsz 15)
connection timeout
trying connection 91.190.233.38:8233 lastseen=2.2hrs
connect() failed after select(): Connection refused
trying connection 98.214.111.142:8233 lastseen=9.6hrs
connection timeout
trying connection 41.50.96.101:8233 lastseen=2.2hrs
connect() failed after select(): Connection refused
trying connection 212.51.131.191:8233 lastseen=2.2hrs
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
make: *** [makefile.unix:186: obj/checkpoints.o] Error 1
when trying to build with make in src
please tarball source and add wallet release in github (and maybe the binaries for people into that kinda thing)
`
void setuint64(uint64 n)
{
unsigned char pch[sizeof(n) + 6];
unsigned char* p = pch + 4;
bool fLeadingZeroes = true;
for (int i = 0; i < 8; i++)
{
unsigned char c = (n >> 56) & 0xff;
n <<= 8;
if (fLeadingZeroes)
{
if (c == 0)
continue;
if (c & 0x80)
*p++ = 0;
fLeadingZeroes = false;
}
*p++ = c;
}
unsigned int nSize = p - (pch + 4);
pch[0] = (nSize >> 24) & 0xff;
pch[1] = (nSize >> 16) & 0xff;
pch[2] = (nSize >> 8) & 0xff;
pch[3] = (nSize) & 0xff;
BN_mpi2bn(pch, p - pch, this);
}
`
Changed to the below
pch[0] = 0; pch[1] = 0; pch[2] = 0;
Hello
with make -f makefile.unix xCPUARCH=armv7l
With :
sudo apt-cache policy libssl-dev
libssl-dev:
Installé : 1.0.1t-1+deb8u8
This is my error :
root@raspberrypi:/home/pi/magi/src# make -f makefile.unix xCPUARCH=armv7l
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/home/pi/magi/src -I/home/pi/magi/src/hash -I/home/pi/magi/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/pi/magi/src/leveldb/include -I/home/pi/magi/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 bignum.h:12,
from main.h:8,
from wallet.h:13,
from init.h:8,
from init.cpp:5:
util.h:258:22: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
return strprintf("%"PRI64d, n);
^
In file included from main.h:10,
from wallet.h:13,
from init.h:8,
from init.cpp:5:
net.h:325:20: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("askfor %s %"PRI64d" (%s)\n", inv.ToString().c_str(), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str());
^
In file included from wallet.h:13,
from init.h:8,
from init.cpp:5:
main.h:770:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
str += strprintf("(hash=%s, nTime=%d, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%d)\n",
^
main.h:770:72: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
str += strprintf("(hash=%s, nTime=%d, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%d)\n",
^
main.h:1205:16: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%"PRIszu", vchBlockSig=%s)\n",
^
main.h:1468:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%-6d nHeight=%d, nMint=%s, nMoneySupply=%s, nFlags=(%s)(%d)(%s), nStakeModifier=%016"PRI64x", nStakeModifierChecksum=%08x, hashProofOfStake=%s, prevoutStake=(%s), nStakeTime=%d merkle=%s, hashBlock=%s)",
^
init.cpp:709:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf(" block index %15"PRI64d"ms\n", GetTimeMillis() - nStart);
^
init.cpp:801:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf(" wallet %15"PRI64d"ms\n", GetTimeMillis() - nStart);
^
init.cpp:821:16: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf(" rescan %15"PRI64d"ms\n", GetTimeMillis() - nStart);
^
init.cpp:862:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("Loaded %i addresses from peers.dat %"PRI64d"ms\n",
^
init.cpp:873:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("mapBlockIndex.size() = %"PRIszu"\n", mapBlockIndex.size());
^
init.cpp:875:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("setKeyPool.size() = %"PRIszu"\n", pwalletMain->setKeyPool.size());
^
init.cpp:876:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("mapWallet.size() = %"PRIszu"\n", pwalletMain->mapWallet.size());
^
init.cpp:877:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("mapAddressBook.size() = %"PRIszu"\n", pwalletMain->mapAddressBook.size());
^
^Cmake: *** [makefile.unix:186: obj/init.o] Interrompre
root@raspberrypi:/home/pi/magi/src# make -f makefile.unix xCPUARCH=armv7l
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/home/pi/magi/src -I/home/pi/magi/src/hash -I/home/pi/magi/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/pi/magi/src/leveldb/include -I/home/pi/magi/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 bignum.h:12,
from main.h:8,
from wallet.h:13,
from init.h:8,
from init.cpp:5:
util.h:258:22: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
return strprintf("%"PRI64d, n);
^
In file included from main.h:10,
from wallet.h:13,
from init.h:8,
from init.cpp:5:
net.h:325:20: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("askfor %s %"PRI64d" (%s)\n", inv.ToString().c_str(), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str());
^
In file included from wallet.h:13,
from init.h:8,
from init.cpp:5:
main.h:770:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
str += strprintf("(hash=%s, nTime=%d, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%d)\n",
^
main.h:770:72: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
str += strprintf("(hash=%s, nTime=%d, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%d)\n",
^
main.h:1205:16: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%"PRIszu", vchBlockSig=%s)\n",
^
main.h:1468:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%-6d nHeight=%d, nMint=%s, nMoneySupply=%s, nFlags=(%s)(%d)(%s), nStakeModifier=%016"PRI64x", nStakeModifierChecksum=%08x, hashProofOfStake=%s, prevoutStake=(%s), nStakeTime=%d merkle=%s, hashBlock=%s)",
^
init.cpp:709:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf(" block index %15"PRI64d"ms\n", GetTimeMillis() - nStart);
^
init.cpp:801:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf(" wallet %15"PRI64d"ms\n", GetTimeMillis() - nStart);
^
init.cpp:821:16: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf(" rescan %15"PRI64d"ms\n", GetTimeMillis() - nStart);
^
init.cpp:862:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("Loaded %i addresses from peers.dat %"PRI64d"ms\n",
^
init.cpp:873:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("mapBlockIndex.size() = %"PRIszu"\n", mapBlockIndex.size());
^
init.cpp:875:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("setKeyPool.size() = %"PRIszu"\n", pwalletMain->setKeyPool.size());
^
init.cpp:876:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("mapWallet.size() = %"PRIszu"\n", pwalletMain->mapWallet.size());
^
init.cpp:877:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("mapAddressBook.size() = %"PRIszu"\n", pwalletMain->mapAddressBook.size());
^
^X^Cmake: *** [makefile.unix:186: obj/init.o] Interrompre
root@raspberrypi:/home/pi/magi/src# make -f makefile.unix xCPUARCH=armv7l
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/home/pi/magi/src -I/home/pi/magi/src/hash -I/home/pi/magi/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/home/pi/magi/src/leveldb/include -I/home/pi/magi/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 bignum.h:12,
from main.h:8,
from wallet.h:13,
from init.h:8,
from init.cpp:5:
util.h:258:22: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
return strprintf("%"PRI64d, n);
^
In file included from main.h:10,
from wallet.h:13,
from init.h:8,
from init.cpp:5:
net.h:325:20: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("askfor %s %"PRI64d" (%s)\n", inv.ToString().c_str(), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str());
^
In file included from wallet.h:13,
from init.h:8,
from init.cpp:5:
main.h:770:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
str += strprintf("(hash=%s, nTime=%d, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%d)\n",
^
main.h:770:72: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
str += strprintf("(hash=%s, nTime=%d, ver=%d, vin.size=%"PRIszu", vout.size=%"PRIszu", nLockTime=%d)\n",
^
main.h:1205:16: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("CBlock(hash=%s, ver=%d, hashPrevBlock=%s, hashMerkleRoot=%s, nTime=%u, nBits=%08x, nNonce=%u, vtx=%"PRIszu", vchBlockSig=%s)\n",
^
main.h:1468:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%-6d nHeight=%d, nMint=%s, nMoneySupply=%s, nFlags=(%s)(%d)(%s), nStakeModifier=%016"PRI64x", nStakeModifierChecksum=%08x, hashProofOfStake=%s, prevoutStake=(%s), nStakeTime=%d merkle=%s, hashBlock=%s)",
^
init.cpp:709:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf(" block index %15"PRI64d"ms\n", GetTimeMillis() - nStart);
^
init.cpp:801:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf(" wallet %15"PRI64d"ms\n", GetTimeMillis() - nStart);
^
init.cpp:821:16: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf(" rescan %15"PRI64d"ms\n", GetTimeMillis() - nStart);
^
init.cpp:862:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("Loaded %i addresses from peers.dat %"PRI64d"ms\n",
^
init.cpp:873:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("mapBlockIndex.size() = %"PRIszu"\n", mapBlockIndex.size());
^
init.cpp:875:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("setKeyPool.size() = %"PRIszu"\n", pwalletMain->setKeyPool.size());
^
init.cpp:876:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("mapWallet.size() = %"PRIszu"\n", pwalletMain->mapWallet.size());
^
init.cpp:877:12: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
printf("mapAddressBook.size() = %"PRIszu"\n", pwalletMain->mapAddressBook.size());
^
In file included from magirpc.h:16,
from init.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;
^~~~~~~~~
^Cmake: *** [makefile.unix:186: obj/init.o] Interrompre
I have a openssel earlier than 1.1, and my ARM is ok, i dont understand
Can you help please ?
Thanks
2018/03/13:
m-wallet-1.4.5.3 flagged as "Trojan:Win32/Bitrep.B" by Windows Defender on Windows 10.
Windows Defender information (which is REALLY no information at all)
https://www.microsoft.com/en-us/wdsi/threats/threat-search?query=trojan:win32/bitrep.b&2147723143&page=1&showall=false&sortby=relevance&sortdir=desc&size=10
Allowing it in Windows defender did not resolve. I had to clear the Windows Defender history before it allowed the wallet to run.
I trust this is a false flag? Can someone confirm this is a false flag by Windows Defender?
Tried to download m-wallet-v1.4.4.1 on 2 PCs having two different antivirus programs installed (Avast and Bitdefender). Both of them report malware infections in the m-wallet.exe with Win64:Malware-gen and Win32:Malware-gen respectively.
The m-wallet-v1.4.3.1 build is suspicions with a different malware infection
My wallet was working fine uptill now.....but from today it started giving this error: ./db/dbformat.h:99: leveldb::Slice leveldb::ExtractUserKey(const leveldb::Slice&): Assertion `internal_key.size() >= 8' failed
Hey guys, a little feedback:
You need to make locking and unlocking the wallet easier. Its a bit convoluted. I am not sure when I have locked, and unlocked my wallet really. So something like this: once you open the Magi coin wallet app (On a mac for example) you should put in your passphrase, and then after a certain amount of time, it locks again.
You click on a button to unlock it, and then re-enter passphrase, and BAM! you have access to your wallet again. Having a nice GUI button with a lock (and when you click on it, it unlocks once passphrase is entered correctly) to control the locking of the wallet would be a nice feature for users. I am a developer too, but I also know that keeping things intuitive is always the best way to go. Too much convolution, and you will not get any mass adoption whatsoever.
Thanks for your time.
Hi,
Can someone please provide simple instructions for downloading the wallet and the blocks then implementing the blocks into the %appdata% folder on a windows machine.
The download link used for the windows installer wallet doesn't work so i have to use the portable version.
I'm wanting the blocks to be downloaded separately too as it take too long for them to download from the wallet.
Thanks.
When I first download the wallet it got flagged for possibly having a virus (Trogan:win32/tiggre!plock) and I had to disable my firewalls to download it, I then got the wallet loaded a few times and the blockcoin started to download. After a few hours my computer unexpectantly shut down and now when I try to load the wallet I says that there is an error loading the block chain.
Hi, I find that when i have an internet connection glitch and the line is backup again, the wallet doesnt seems to be able to re-connect - example i would pop in to check my emails or wake up in the morning and then find the wallet is in an un-synched or not synched status.
Is it possible that another cli can be used as an alternative or an improvement be made to the wallet connectivity intelligence ?
Is there a log i can send you maybe or how can i help you ?
I've seen some setup instructions where Staking needs additional configuration. Is it automatic now? Would be great to have some guidance on this in README.md, as well as some logging or other verification output that says that it is enabled correctly.
This article has a magi.conf
configuration that seems fairly recent. Can we just cut and past the value for the configuration into ~/.magi/magi.conf
?
nano ~/.magi/magi.conf
And put in there the following:
# You must set rpcuser and rpcpassword to secure the JSON-RPC api
rpcuser=magirpc
rpcpassword=7dhf8SRjR8R5P9icfqjjbqAZqysYXeQSuX539JhXseLz
# Listen for RPC connections on this TCP port:
rpcport=8232
# server=1 to accept JSON-RPC commands
server=1
# listen=1 to accept connections from outside
listen=1
# RPC connection from localhost allowed
rpcallowip=127.0.0.1
# Add nodes to connect to specific peers
addnode=104.128.225.215
addnode=45.35.251.73
# posii=1 to enable PoS staking; default = 0
posii=1
# Transaction under stake with a value greater than the threshold is being splitted
stakesplitthreshold=500
# Transactions with values less than the threshold will combine into one
stakecombinethreshold=500
Receive and Address book address are returned together in rpc calls (listreceivedbyaddress, getaddressesbyaccount, etc..) with no type flag to distinguish. I think the simplest fix would to just add the type flag when returning an address stating if its Sending or Receiving.
I thought I would try mining some Magi on my Pi just to see how it works. But upon trying to build the wallet i am getting the below error. I have made sure that all dependencies are installed and up to date. Any advice would be appreciated:
make -f makefile.unix xCPUARCH=armv7l
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/root/miner/magi-1.4.6.2/src -I/root/miner/magi-1.4.6.2/src/hash -I/root/miner/magi-1.4.6.2/src/obj -DUSE_UPNP=0 -DUSE_IPV6=1 -I/root/miner/magi-1.4.6.2/src/leveldb/include -I/root/miner/magi-1.4.6.2/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -MMD -MF obj/alert.d -o obj/alert.o alert.cpp
alert.cpp:5:10: fatal error: boost/foreach.hpp: No such file or directory
#include <boost/foreach.hpp>
^~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [makefile.unix:186: obj/alert.o] Error 1
Hello.
I'm trying to install the compile the new wallet under linux but I get this awful error.
Linux version: Linux raspi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
Command: make -f makefile.unix xCPUARCH=armv7l -j3
main.cpp:4726:89: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘unsigned int’ [-Wformat=] printf("@CreateNewBlock -> txCoinStake.nTime=%"PRI64d"\n", txCoinStake.nTime); ^ main.cpp:4739:90: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘unsigned int’ [-Wformat=] printf("@CreateNewBlock-PoS found -> txCoinStake.nTime=%"PRI64d"\n", txCoinStake.nTime); ^ main.cpp: In function ‘void MagiMiner(CWallet*, bool)’: main.cpp:5150:9: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations] auto_ptr<CBlock> pblock(CreateNewBlock(pwallet, fProofOfStake)); ^~~~~~~~ In file included from /usr/include/c++/6/memory:81:0, from /usr/include/boost/config/no_tr1/memory.hpp:21, from /usr/include/boost/smart_ptr/shared_ptr.hpp:23, from /usr/include/boost/shared_ptr.hpp:17, from /usr/include/boost/date_time/time_clock.hpp:17, from /usr/include/boost/thread/thread_time.hpp:9, from /usr/include/boost/thread/lock_types.hpp:18, from /usr/include/boost/thread/pthread/thread_data.hpp:12, from /usr/include/boost/thread/thread_only.hpp:17, from /usr/include/boost/thread/thread.hpp:12, from /usr/include/boost/thread.hpp:13, from util.h:22, from alert.h:13, from main.cpp:6: /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ In file included from hash_magi.h:5:0, from main.h:13, from db.h:8, from main.cpp:8: magimath.h: In function ‘double exp_n2(double, double)’: magimath.h:46:1: warning: control reaches end of non-void function [-Wreturn-type]
Please help
Changing default port (p2p) not working. Port changed but nobody can't connect to it (0 inbound connections).
I cloned the git repository (commit number e571ec5, which is the latest release, too v1.4.4.1), and built the wallet (m-wallet). The compilation is successful, and I run the software for PoS. However, the software crashes out of the blue without absolutely any message.
These are the last lines in ~/.magi/debug.log
Stake checkpoint: c97662f3
ProcessBlock: ACCEPTED
getblocks -1 to 00000000000000000000 limit 500
Flushing wallet.dat
Flushed wallet.dat 345ms
Flushed 7353 addresses to peers.dat 1095ms
getblocks -1 to 00000000000000000000 limit 500
getblocks -1 to 00000000000000000000 limit 500
getblocks -1 to 00000000000000000000 limit 500
getblocks -1 to 00000000000000000000 limit 500
getblocks -1 to 00000000000000000000 limit 500
getblocks -1 to 00000000000000000000 limit 500
getblocks -1 to 00000000000000000000 limit 500
IRC got join
Flushed 7353 addresses to peers.dat 5889ms
IRC got join
Seriously, I can't find a single evidence that it really "crashed"... it just "disappears"!!!
Could we have a little pane in the Overview to tell us what block# is currently being worked and a link to block explorer? A built-in block explorer might be neat, too, since everyone is running a full-node; but a link to a web explorer would be sufficient.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.