onsightit / solarcoin Goto Github PK
View Code? Open in Web Editor NEWSolarCoin with PoST
License: MIT License
SolarCoin with PoST
License: MIT License
The error
In file included from /usr/include/boost/iterator/iterator_categories.hpp:22:0,
from /usr/include/boost/iterator/iterator_facade.hpp:14,
from /usr/include/boost/range/iterator_range_core.hpp:27,
from /usr/include/boost/range/iterator_range.hpp:13,
from /usr/include/boost/assign/list_of.hpp:20,
from rpcrawtransaction.cpp:6:
/usr/include/boost/variant/get.hpp: In instantiation of ‘typename boost::add_reference<T>::type boost::strict_get(boost::variant<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>&) [with U = const CScriptID&; T0 = CNoDestination; T1 = CKeyID; T2 = CScriptID; T3 = boost::detail::variant::void_; T4 = boost::detail::variant::void_; T5 = boost::detail::variant::void_; T6 = boost::detail::variant::void_; T7 = boost::detail::variant::void_; T8 = boost::detail::variant::void_; T9 = boost::detail::variant::void_; T10 = boost::detail::variant::void_; T11 = boost::detail::variant::void_; T12 = boost::detail::variant::void_; T13 = boost::detail::variant::void_; T14 = boost::detail::variant::void_; T15 = boost::detail::variant::void_; T16 = boost::detail::variant::void_; T17 = boost::detail::variant::void_; T18 = boost::detail::variant::void_; T19 = boost::detail::variant::void_; typename boost::add_reference<T>::type = const CScriptID&]’:
/usr/include/boost/variant/get.hpp:284:25: required from ‘typename boost::add_reference<T>::type boost::get(boost::variant<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>&) [with U = const CScriptID&; T0 = CNoDestination; T1 = CKeyID; T2 = CScriptID; T3 = boost::detail::variant::void_; T4 = boost::detail::variant::void_; T5 = boost::detail::variant::void_; T6 = boost::detail::variant::void_; T7 = boost::detail::variant::void_; T8 = boost::detail::variant::void_; T9 = boost::detail::variant::void_; T10 = boost::detail::variant::void_; T11 = boost::detail::variant::void_; T12 = boost::detail::variant::void_; T13 = boost::detail::variant::void_; T14 = boost::detail::variant::void_; T15 = boost::detail::variant::void_; T16 = boost::detail::variant::void_; T17 = boost::detail::variant::void_; T18 = boost::detail::variant::void_; T19 = boost::detail::variant::void_; typename boost::add_reference<T>::type = const CScriptID&]’
rpcrawtransaction.cpp:217:77: required from here
/usr/include/boost/variant/get.hpp:178:5: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false>’
BOOST_STATIC_ASSERT_MSG(
^
makefile.unix:172: recipe for target 'obj/rpcrawtransaction.o' failed
make: *** [obj/rpcrawtransaction.o] Error 1
The Fix
Solved when applying nochowderforyou/clams#211.
I have boost 1.58 installed
Hardware:
NanoPi Neo 512 MB
Ubuntu Xenial 16.04 headless
When using the Export Data feature for the Transaction History, the resulting.csv file does not include the public Transaction Comment. As the Solarcoin Foundation uses this comment to notify solar owners of the details of SLR issued, its an important accounting feature for owners, especially those with multiple solar plants who may wish to segregate issued SLR by plant.
This is needed on Linux so SIGINT/SIGTERM will shut down solarcoind cleanly so databases and wallets don't get corrupted.
To re-add go to the end of ThreadMessageHandler2 and add this right below MilliSleep(100):
if (fRequestShutdown)
StartShutdown();
The .run file from the solarcoin.org webpage does not install correctly on Ubuntu, please add a PPA repository
I tried to run solarcoind on a Raspberry Pi Zero which only has 512 MB of RAM. While this would be enough to run bitcoind, solarcoind seems to have a much higher demand for resources. My plan is to develop a cheap Pi Zero-based embedded system for solar panel owners that should pay off as fast as possible by the generated staking interest, hopefully allowing the network to snowball.
First research provided evidence that it might have to do with the block index. I suppose that RAM demand for the index increases when the chain length, possibly disqualifying even more powerful devices like the Pi 3 (1GB RAM) in the near future.
I found out that bitcoind supports blockchain pruning since v0.11, and pruning while preserving wallet functionality since v0.12. Is it possible to include similar performance-related methods in the solarcoind client?
The error
g++ -O2 -pthread -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -I/root/solarcoin/solarcoin/src -I/root/solarcoin/solarcoin/src/obj -DUSE_UPNP=1 -DUSE_IPV6=1 -I/root/solarcoin/solarcoin/src/leveldb/include -I/root/solarcoin/solarcoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -fPIE -D_FORTIFY_SOURCE=2 -o solarcoind obj/alert.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/bloom.o obj/hash.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/irc.o obj/keystore.o obj/miner.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/rpcnet.o obj/rpcmining.o obj/rpcwallet.o obj/rpcblockchain.o obj/rpcrawtransaction.o obj/script.o obj/sync.o obj/util.o obj/wallet.o obj/walletdb.o obj/noui.o obj/kernel.o obj/pbkdf2.o obj/scrypt.o obj/scrypt-arm.o obj/scrypt-x86.o obj/scrypt-x86_64.o obj/txdb-leveldb.o -Wl,-z,relro -Wl,-z,now -pie -Wl,-Bdynamic -l boost_system -l boost_filesystem -l boost_program_options -l boost_thread -l db_cxx -l ssl -l crypto -l miniupnpc -Wl,-Bdynamic -l z -l dl -l pthread /root/solarcoin/solarcoin/src/leveldb/libleveldb.a /root/solarcoin/solarcoin/src/leveldb/libmemenv.a
/usr/bin/ld: /root/solarcoin/solarcoin/src/leveldb/libleveldb.a(db_impl.o): relocation R_ARM_THM_MOVW_ABS_NC against `__stack_chk_guard' can not be used when making a shared object; recompile with -fPIC
/root/solarcoin/solarcoin/src/leveldb/libleveldb.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
makefile.unix:179: recipe for target 'solarcoind' failed
make: *** [solarcoind] Error 1
The solution
bitcoin/bitcoin#3864
I have boost 1.58 installed
Hardware:
NanoPi Neo 512 MB
Ubuntu Xenial 16.04 headless
Here is the debugging:
pi@raspberrypi2:~ $ solarcoind getinfo
Segmentation fault
pi@raspberrypi2:~ $ gdb solarcoind
GNU gdb (Raspbian 7.7.1+dfsg-5+rpi1) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from solarcoind...done.
(gdb) run
Starting program: /usr/local/bin/solarcoind
Program received signal SIGSEGV, Segmentation fault.
elf_dynamic_do_Rel (skip_ifunc=, lazy=0, nrelative=, relsize=,
reladdr=, map=0x76ff8910) at do-rel.h:136
136 do-rel.h: No such file or directory.
(gdb) bt
#0 elf_dynamic_do_Rel (skip_ifunc=, lazy=0, nrelative=, relsize=,
reladdr=, map=0x76ff8910) at do-rel.h:136
#1 _dl_relocate_object (scope=, reloc_mode=, consider_profiling=,
consider_profiling@entry=0) at dl-reloc.c:264
#2 0x76fd23a4 in dl_main (phdr=, phnum=, user_entry=,
auxv=) at rtld.c:2201
#3 0x76fe5b30 in _dl_sysdep_start (start_argptr=start_argptr@entry=0x7efff7c0, dl_main=0x0) at ../elf/dl-sysdep.c:249
#4 0x76fd3c78 in _dl_start_final (arg=0x7efff7c0, arg@entry=0x0, info=info@entry=0x7efff540) at rtld.c:330
#5 0x76fd3f08 in _dl_start (arg=0x0) at rtld.c:558
#6 0x76fcfd50 in _start () from /lib/ld-linux-armhf.so.3
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) quit
A debugging session is active.
Inferior 1 [process 20163] will be killed.
Quit anyway? (y or n) y
pi@raspberrypi2:~ $
I am trying to run solarcoin-qt and getting the following error:
$ ./solarcoin-qt ./solarcoin-qt: error while loading shared libraries: libgstreamer-0.10.so.0: cannot open shared object file: No such file or directory
Wonder if there is a way I can start up solarcoin.
I used libdb5.3++-dev to compile on Rasian-lite. Hope that helps
Been going through the code for a while, and I think the way to make it the wallet easier to contribute is if we start replacing Qt widgets with QML or Qt Quick controllers that allow the better design of the interface without deep knowledge of Qt or C++.
One of the things that we can start is for example with the QtTableWidget with the QML TableView type. Same with the forms for sending and receiving coins, this will make it more easier to style it, and better mantainability.
Qt framework has a method to autocomplete the addresses when typing on the sending of money. This will make it easier to work with the addressbook and make payment form easier to use.
You can see example of the method here:
http://doc.qt.io/qt-5/qtwidgets-tools-customcompleter-example.html
As mentioned in the slack, is important to develop some basic documentation for the roadmap and the changelog of the wallet so as developers can get a better understanding of how the project has evolved and we can prioritize possible issues.
At the moment the compilation process is broken for Linux as some issues provide, and other improvements can be made such as HiDpi and extra meta information.
I followed the steps given in https://github.com/Scalextrix/SolarCoin-Raspberry-Pi-Node/blob/master/Create-a-Pi-Node.md
and succesfully installed solarcoind.
{
"version" : "v2.1.8.0",
"protocolversion" : 70005,
"walletversion" : 60001,
"balance" : 0.00000000,
"newmint" : 0.00000000,
"stake" : 0.00000000,
"blocks" : 0,
"timeoffset" : 0,
"connections" : 0,
"proxy" : "",
"ip" : "0.0.0.0",
"difficulty" : {
"proof-of-work" : 0.00024414,
"proof-of-stake" : 0.00024414
},
"coinsupply" : 33017974,
"blocksperhour" : 0,
"testnet" : false,
"keypoololdest" : 1515187440,
"keypoolsize" : 101,
"paytxfee" : 0.00010000,
"mininput" : 0.00001000,
"errors" : ""
}
After some minutes i checked debug.log and get
trying connection 121.3.203.164:18188 lastseen=172.0hrs
connection timeout
trying connection 162.243.42.162:18188 lastseen=255.1hrs
connection timeout
trying connection 71.176.103.119:18188 lastseen=320.7hrs
connection timeout
trying connection 207.12.89.226:18188 lastseen=173.3hrs
connection timeout
trying connection 202.55.37.203:18188 lastseen=278.5hrs
connection timeout
trying connection 162.242.170.252:18188 lastseen=198.9hrs
connection timeout
trying connection 176.31.250.82:18188 lastseen=201.7hrs
connection timeout
trying connection 178.137.21.98:18188 lastseen=241.9hrs
connection timeout
trying connection 98.197.78.179:18188 lastseen=188.9hrs
connect() failed after select(): No route to host
trying connection 180.176.0.4:18188 lastseen=232.1hrs
connection timeout
trying connection 174.101.141.126:18188 lastseen=230.9hrs
connection timeout
trying connection 41.135.42.182:18188 lastseen=209.7hrs
connection timeout
trying connection 54.252.61.184:18188 lastseen=316.7hrs
connection timeout
trying connection 101.164.65.167:18188 lastseen=174.0hrs
connection timeout
trying connection 193.110.79.215:18188 lastseen=309.0hrs
connection timeout
trying connection 87.194.145.192:18188 lastseen=176.3hrs
connection timeout
trying connection 70.36.234.109:18188 lastseen=200.5hrs
connection timeout
trying connection 94.1.58.49:18188 lastseen=178.3hrs
connection timeout
trying connection 178.137.21.98:18188 lastseen=242.0hrs
connection timeout
trying connection 83.252.30.14:18188 lastseen=283.9hrs
connection timeout
trying connection 85.216.121.200:18188 lastseen=292.8hrs
connection timeout
trying connection 72.178.110.201:18188 lastseen=180.0hrs
connection timeout
trying connection 37.113.178.72:18188 lastseen=187.1hrs
connection timeout
trying connection 76.118.248.180:18188 lastseen=229.8hrs
connection timeout
trying connection 75.66.64.229:18188 lastseen=230.2hrs
connection timeout
trying connection 217.121.75.206:18188 lastseen=181.3hrs
is it normal? how can I mine this cryptocurrency?
I have not built an old school bitcoin clone in years so excuse my ignorance.
cd src/
make -f makefile.unix
ubuntu 15.10 error
/usr/include/boost/variant/get.hpp:178:5: error: invalid application of ‘sizeof’ to incomplete type ‘boost::STATIC_ASSERTION_FAILURE<fal
se>’
BOOST_STATIC_ASSERT_MSG(
^
makefile.unix:182: recipe for target 'obj/rpcrawtransaction.o' failed
make: *** [obj/rpcrawtransaction.o] Error 1
``
Hello, I found a vulnerability which can cause double spend attack. I want to know how to submit vulnerability details and vulnerability reward rules. You can contact me via TG(@RedTeamPing).
Im trying to launch qt on windows with the server so I can make RPC calls and test my Python script https://github.com/Scalextrix/ELCC/
C:\Program Files (x86)\SolarCoin>solarcoin-qt -server
C:\Program Files (x86)\SolarCoin>solarcoind getinfo
'solarcoind' is not recognized as an internal or external command,
operable program or batch file.
On other cryptos I have used when the -server argument is used then the daemon [command] can be used, is there a different syntax for SolarCoin?
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.