Coder Social home page Coder Social logo

coolerrsa / crave Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 29.0 3.62 MB

Crave / PoS coin with Darskend/Masternodes/InstantX

Home Page: http://www.craveproject.com/

License: MIT License

Python 1.49% QMake 0.37% Shell 0.18% NSIS 0.10% C++ 84.59% C 11.58% Makefile 0.29% HTML 0.89% CSS 0.02% Objective-C 0.02% Objective-C++ 0.10% M4 0.32% Java 0.04%
crave pos bitcoin

crave's Introduction

Crave development tree

Crave is a PoS-based cryptocurrency.

CRAVE is dependent upon libsecp256k1 by sipa, the sources for which can be found here: https://github.com/bitcoin/secp256k1

Total POW: 10,000 Blocks POW Reward: 100 CRAVE per Block POS Reward: 1 CRAVE (HiPOS) Block Spacing: 60 Seconds Diff Retarget: 24 Blocks Maturity: 188 Blocks Stake Minimum Age: 8 Hours

40 MegaByte Maximum Block Size (40X Bitcoin Core)

Port: 30104 RPC Port: 30105

Magic Bytes: 0x1f 0x22 0x05 0x31

CRAVE includes an Address Index feature, based on the address index API (searchrawtransactions RPC command) implemented in Bitcoin Core but modified implementation to work with the CRAVE codebase (PoS coins maintain a txindex by default for instance).

Initialize the Address Index By Running with -reindexaddr Command Line Argument. It may take 10-15 minutes to build the initial index.

crave's People

Contributors

bumbacoin avatar coolerrsa avatar tkon3 avatar walkjivefly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crave's Issues

Masternode instability

After upgrading to v2.0.4.2 I noticed that my masternodes began to stop acting as masternodes after 15-30 minutes of uptime.

The daemon never crashes or becomes unresponsive, but the nodes suddenly drop from the Crave network list. The command

./craved masternode list full | grep "12.34.56.78\|90.12.34.56"

no longer returns any results, and the local control wallet also says they are not found in the list. I have to restart the local wallet, unlock it, and start the masternodes again.

After I downgraded to v2.0.4.1, the issue no longer occurs.

Each masternode was built from source on an Ubuntu 16.04 VPS with 1GB memory.

The crave.conf on the VPS is:

rpcuser=blahblah
rpcpassword=blahblah
rpcallowip=127.0.0.1
alertnotify=echo %s | mail -s "Crave Masternode Alert" root
listen=1
daemon=1
server=1
staking=0
longtimestamps=1

port=9999
masternode=1
masternodeaddr=myipaddress:9999
masternodeprivkey=blahblah

Daemon instance 0 rejected a supposedly valid block

Hi, I am using Nomp to set up mining pool and after set up successfully, I start it and try to mine but i receive error that Daemon instance 0 rejected a supposedly valid block.
I Checked debug.log:
ERROR: CheckBlock() : first tx is not coinbase
ERROR: ProcessBlock() : CheckBlock FAILED.
My coin use scrypt algo. Please help me!

needed libboost version for compiling

This issue is about the compatibility of newly compiled versions on linux 64bit machines against different libboost versions.

Let me explain:
I wanted to run crave 2.1.0.3 as a masternode on a ubuntu 16.04 but compiling failed because of too low memory (a VPS, 2GB, no swap possible because of btfrs). So "bad luck", I sticked to the binary version 2.1.0 which runs smoothly so far after some little issues.

But later I thought to compile crave 2.1.0.3 on another machine and just copy it and maybe conribute it to the community, because nobody cares at the craveproject website so much for the linux versions. I compiled on ubutnu 14.04, but there the compiler comes out of the box with libboost version 1.54, but compiling worked fine and crave and also the masternode mode run smoothly.

So I copied craved in the corresponding directories on ubuntu 16.04 and tried to run it. Then the dark knight called "Sir Sucks-a-lot" came by and shouted at me:

./craved: error while loading shared libraries: libboost_system.so.1.54.0: cannot open shared object file: No such file or directory

Obviously craved loads some shared libraries which must exist on the system in a specific version, but on ubuntu 16.04 I can not (and don want) downgrade. Also maybe other libs also needs to be downgraded later - not a sustainable way. But on 14.04 I also don't want to upgrade and recompile. The highest version I can reach is anyway 1.55, but ubuntu 16.04 comes around with 1.58 for libboost and if I want to contribute a complete Version for Linux 64bit as a binary later it needs to be statically compiled and not dynamically loading different libraries of specific versions.

Is it possible to change that and to let people on 64bit linux machines upgrade to 2.1.0.3?

If there is a simple solution afterwards I will contribute the 64bit and 32bit versions and keep them up-to-date.

Compiler error on Debian 9 x64

Just tried make -f makefile.unix on Debian 9 x64 (vultr vps), latest GIT version and obtained:

In file included from chainparams.h:9:0,
from alert.cpp:7:
bignum.h:57:24: error: invalid use of incomplete type 'BIGNUM {aka struct bignum _st}'
class CBigNum : public BIGNUM
^~~~~~
The system is updated and all the needed libs have been installed. Thank you

Multy Masternode

Hi,

I read your guide, but step 12 from Prepare Masternode
12 - Now you can exit from each running masternode wallets

And as I think, "exit" = "turn off" = "close" those apps. Or leave them alone and open main/conntroller app wallet?

Thanks.
20dec

error with mac compile

attempting an OSX qt build with boost 1.57 i get this error.

In file included from ../src/net.cpp:5:
In file included from ../src/db.h:9:
In file included from ../src/serialize.h:22:
In file included from ../src/allocators.h:10:
In file included from /opt/local/include/boost/thread/once.hpp:20:
In file included from /opt/local/include/boost/thread/pthread/once_atomic.hpp:19:
In file included from /opt/local/include/boost/bind.hpp:22:
/opt/local/include/boost/bind/bind.hpp:253:36: error: cannot initialize a parameter of type 'void ' with an lvalue of type 'long'
unwrapper::unwrap(f, 0)(a[base_type::a1_]);
^~~~~~~~~~~~~~~~~
/opt/local/include/boost/bind/bind_template.hpp:20:27: note: in instantiation of function template specialization 'boost::_bi::list1<boost::_bi::value >::operator()<void (
)(void ), boost::bi::list0>' requested here
BOOST_BIND_RETURN l
(type<result_type>(), f_, a, 0);
^
/opt/local/include/boost/thread/detail/thread.hpp:116:17: note: in instantiation of member function 'boost::_bi::bind_t<void, void (
)(void ), boost::_bi::list1<boost::_bi::value > >::operator()' requested here
f();
^
/opt/local/include/boost/thread/pthread/thread_heap_alloc.hpp:47:24: note: in instantiation of member function 'boost::detail::thread_data<boost::_bi::bind_t<void, void (
)(void ), boost::_bi::list1<boost::_bi::value > > >::run' requested here
return new T(a1);
^
/opt/local/include/boost/thread/pthread/thread_heap_alloc.hpp:73:20: note: in instantiation of function template specialization 'boost::detail::heap_new_impl<boost::detail::thread_data<boost::_bi::bind_t<void, void (
)(void ), boost::_bi::list1<boost::_bi::value > > >, boost::_bi::bind_t<void, void ()(void ), boost::_bi::list1<boost::_bi::value > > &>' requested here
return heap_new_impl<T,A1&>(a1);
^
/opt/local/include/boost/thread/detail/thread.hpp:230:52: note: in instantiation of function template specialization 'boost::detail::heap_new<boost::detail::thread_data<boost::_bi::bind_t<void, void (
)(void ), boost::_bi::list1<boost::_bi::value > > >, boost::_bi::bind_t<void, void ()(void ), boost::_bi::list1<boost::_bi::value > > >' requested here
return detail::thread_data_ptr(detail::heap_new<detail::thread_data >(f));
^
/opt/local/include/boost/thread/detail/thread.hpp:390:25: note: in instantiation of function template specialization 'boost:🧵:make_thread_info<boost::_bi::bind_t<void, void (
)(void ), boost::_bi::list1<boost::_bi::value > > >' requested here
thread_info(make_thread_info(boost::bind(boost::type(),f,a1)))
^
../src/net.cpp:1840:5: note: in instantiation of function template specialization 'boost:🧵:thread<void (
)(void *), long>' requested here
boost::thread(&ThreadIRCSeed, NULL);
^
1 warning and 1 error generated.
make: *** [build/net.o] Error 1

Wallet stuck

Hi, my status was missing again, so I restart my server and followed all steps again. However, when I edit crave.conf file, my wallet is stuck. Heres says: "Catchin up..Processed 1001 blocks of transaction history. Last received block eas generated 39 week (s) ago. Transactions after this will not yet be visible. It has been this situation since yestarday afternoon. Someone could help me, please?

About config with masternode issue

Hello, I am a new. I have some questions about masternode?
How to config masternodes? Example I want to config .666 Coins reward and masternode activatiob around BLock 3000. Thank you.

Compile error makefile.unix:219: recipe for target 'craved' failed

One error when compile on the latest Rasbian Stretch :

pi@rpi1:~/crave/src $ sudo make -f makefile.unix /bin/sh ../share/genbuild.sh obj/build.h g++ -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wunused-function -Wunused-variable -fpermissive -Wconversion-null -g -DBOOST_SPIRIT_THREADSAFE -I/home/pi/crave/src -I/home/pi/crave/src/obj -DUSE_UPNP=0 -DENABLE_WALLET -I/home/pi/crave/src/secp256k1/include -I/home/pi/crave/src/leveldb/include -I/home/pi/crave/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2 -o craved obj/alert.o obj/allocators.o obj/version.o obj/support/cleanse.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/base58.o obj/crypter.o obj/key.o obj/pubkey.o obj/ecwrapper.o obj/init.o obj/bitcoind.o obj/keystore.o obj/core.o obj/main.o obj/net.o obj/protocol.o obj/rpcclient.o obj/rpcprotocol.o obj/rpcserver.o obj/rpcmisc.o obj/rpcnet.o obj/rpcblockchain.o obj/rpcrawtransaction.o obj/rpcsmessage.o obj/script.o obj/scrypt.o obj/sync.o obj/txmempool.o obj/util.o obj/hash.o obj/noui.o obj/kernel.o obj/pbkdf2.o obj/chainparams.o obj/stealth.o obj/activemasternode.o obj/darksend.o obj/darksend-relay.o obj/instantx.o obj/masternodeconfig.o obj/masternodeman.o obj/masternode.o obj/masternode-payments.o obj/rpcdarksend.o obj/spork.o obj/crypto/hmac_sha256.o obj/crypto/hmac_sha512.o obj/crypto/ripemd160.o obj/crypto/sha1.o obj/crypto/sha256.o obj/crypto/sha512.o obj/smessage.o obj/db.o obj/miner.o obj/rpcdump.o obj/rpcmining.o obj/rpcwallet.o obj/wallet.o obj/walletdb.o obj/txdb-leveldb.o secp256k1/src/libsecp256k1_la-secp256k1.o -Wl,-z,relro -Wl,-z,now -Wl,-Bdynamic -Wl,-Bdynamic -l boost_system -l boost_filesystem -l boost_program_options -l boost_thread -l db_cxx -l ssl -l gmp -l crypto -l miniupnpc -Wl,-Bdynamic -l z -l dl -l pthread /home/pi/crave/src/leveldb/libleveldb.a /home/pi/crave/src/leveldb/libmemenv.a /usr/bin/ld: cannot find -lgmp collect2: error: ld returned 1 exit status makefile.unix:219: recipe for target 'craved' failed make: *** [craved] Error 1

Help :).

Restore wallet

Hi need some help. How do I restore the wallet. I did backup the complete folder.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.