coblee / litecoin-old Goto Github PK
View Code? Open in Web Editor NEWOfficial Litecoin repository has moved to:
Home Page: https://github.com/litecoin-project/litecoin
License: MIT License
Official Litecoin repository has moved to:
Home Page: https://github.com/litecoin-project/litecoin
License: MIT License
I was mining for myself and I found a block and 50 coins were generated, but I could not use them. Here is the transaction from gettransaction
{
"amount" : 0.00000000,
"confirmations" : 70,
"txid" : "8c66bb116638e6601ca90ba9747c427e004168aeb2b1445caf1125900bfc3dcd",
"time" : 1327704463,
"details" : [
{
"account" : "",
"category" : "immature",
"amount" : 50.00000000
}
]
}
As you can see the 50 coins were generated, but not given to me. I do not know why this happened.
commit 2253d82
$qmake
$ make
/usr/bin/uic src/qt/forms/sendcoinsdialog.ui -o build/ui_sendcoinsdialog.h
/usr/bin/uic src/qt/forms/addressbookpage.ui -o build/ui_addressbookpage.h
/usr/bin/uic src/qt/forms/messagepage.ui -o build/ui_messagepage.h
/usr/bin/uic src/qt/forms/aboutdialog.ui -o build/ui_aboutdialog.h
/usr/bin/uic src/qt/forms/editaddressdialog.ui -o build/ui_editaddressdialog.h
/usr/bin/uic src/qt/forms/transactiondescdialog.ui -o build/ui_transactiondescdialog.h
/usr/bin/uic src/qt/forms/overviewpage.ui -o build/ui_overviewpage.h
/usr/bin/uic src/qt/forms/sendcoinsentry.ui -o build/ui_sendcoinsentry.h
/usr/bin/uic src/qt/forms/askpassphrasedialog.ui -o build/ui_askpassphrasedialog.h
/usr/bin/uic src/qt/forms/miningpage.ui -o build/ui_miningpage.h
g++ -c -pipe -fstack-protector -fdiagnostics-show-option -Wall -Wno-strict-aliasing -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -D_REENTRANT -DQT_GUI -DBOOST_THREAD_USE_LIB -DUSE_UPNP=1 -DSTATICLIB -DLINUX -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Isrc -Isrc/json -Isrc/qt -Ibuild -Ibuild -o build/bitcoin.o src/qt/bitcoin.cpp
src/qt/bitcoin.cpp: In function ‘int main(int, char*)’:
src/qt/bitcoin.cpp:285:33: error: ‘e’ was not declared in this scope
make: ** [build/bitcoin.o] Error 1
When user is mining with the client, show the user how many coins he's expected to make on average in a day. Since we know the current difficulty and their hashrate, the calculation is pretty straightforward.
cd src/
make -f makefile.unix litecoind
g++ -c -pthread -Wextra -Wno-sign-compare -Wno-char-subscripts -Wno-invalid-offsetof -Wformat-security -g -DNOPCH -I/tmp/litecoin/src/litecoin/src -DUSE_UPNP=0 -DUSE_SSL -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -MMD -o obj/checkpoints.o checkpoints.cpp
cc1plus: warning: -Wformat-security ignored without -Wformat [-Wformat-security]
In file included from headers.h:85:0,
from checkpoints.cpp:9:
util.h: In function 'void PrintHex(const std::vector&, const char_, bool)':
util.h:347:42: error: 'HexStr' was not declared in this scope
In file included from main.h:12:0,
from headers.h:88,
from checkpoints.cpp:9:
script.h: In function 'std::string ValueString(const std::vector&)':
script.h:194:26: error: 'HexStr' was not declared in this scope
script.h: In member function 'void CScript::PrintHex() const':
script.h:526:60: error: 'HexStr' was not declared in this scope
In file included from headers.h:88:0,
from checkpoints.cpp:9:
main.h: In member function 'std::string CTxIn::ToString() const':
main.h:300:63: error: 'HexStr' was not declared in this scope
make: *_* [obj/checkpoints.o] Error 1
Project MESSAGE: Building with UPNP support
Project MESSAGE: Building with UPNP support/usr/bin/uic src/qt/forms/sendcoinsdialog.ui -o build/ui_sendcoinsdialog.h
/usr/bin/uic src/qt/forms/addressbookpage.ui -o build/ui_addressbookpage.h
/usr/bin/uic src/qt/forms/messagepage.ui -o build/ui_messagepage.h
/usr/bin/uic src/qt/forms/aboutdialog.ui -o build/ui_aboutdialog.h
/usr/bin/uic src/qt/forms/editaddressdialog.ui -o build/ui_editaddressdialog.h
/usr/bin/uic src/qt/forms/transactiondescdialog.ui -o build/ui_transactiondescdialog.h
/usr/bin/uic src/qt/forms/overviewpage.ui -o build/ui_overviewpage.h
/usr/bin/uic src/qt/forms/sendcoinsentry.ui -o build/ui_sendcoinsentry.h
/usr/bin/uic src/qt/forms/askpassphrasedialog.ui -o build/ui_askpassphrasedialog.h
/usr/bin/uic src/qt/forms/miningpage.ui -o build/ui_miningpage.h
g++ -c -m64 -pipe -fstack-protector -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fdiagnostics-show-option -Wall -Wno-strict-aliasing -Wno-invalid-offsetof -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare -Wno-char-subscripts -Wno-unused-value -Wno-sequence-point -Wno-parentheses -Wno-unknown-pragmas -Wno-switch -D_REENTRANT -DQT_GUI -DBOOST_THREAD_USE_LIB -DUSE_UPNP=1 -DSTATICLIB -DLINUX -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt/mkspecs/linux-g++-64 -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -Isrc -Isrc/json -Isrc/qt -Ibuild -Ibuild -o build/bitcoin.o src/qt/bitcoin.cpp
In file included from src/qt/walletmodel.h:6:0,
from src/qt/bitcoin.cpp:6:
src/util.h: In function 'void PrintHex(const std::vector&, const char_, bool)':
src/util.h:347:42: error: 'HexStr' was not declared in this scope
In file included from src/main.h:12:0,
from src/headers.h:88,
from src/qt/bitcoin.cpp:9:
src/script.h: In function 'std::string ValueString(const std::vector&)':
src/script.h:194:26: error: 'HexStr' was not declared in this scope
src/script.h: In member function 'void CScript::PrintHex() const':
src/script.h:526:60: error: 'HexStr' was not declared in this scope
In file included from src/headers.h:88:0,
from src/qt/bitcoin.cpp:9:
src/main.h: In member function 'std::string CTxIn::ToString() const':
src/main.h:300:63: error: 'HexStr' was not declared in this scope
make: *_* [build/bitcoin.o] Error 1
https://bitcointalk.org/index.php?topic=76636.msg929949#msg929949
LoWang writes: "Upon program exit make the GUI not close itself until the program completely ends! Because it usually takes over 30seconds until the process ends, so you cannot switch off the computer until this or cannot restart the client until the previous instance really ends which you can see only in task manager. This is a bit confusing and there is a potential risk of data files corruption IMHO..."
Calling help via json-rpc returns a result with the output formatted for the command line rather than json formatted.
{ result: 'addmultisigaddress <nrequired> <\'["key","key"]\'> [account]\nbackupwallet <destination>\ndumpprivkey <litecoinaddress>\nencryptwallet <passphrase>\ngetaccount <litecoinaddress>\ngetaccountaddress <account>\ngetaddressesbyaccount <account>\ngetbalance [account] [minconf=1]\ngetblock <hash> [decompositions]\ngetblockcount\ngetblockhash <index>\ngetconnectioncount\ngetdifficulty\ngetgenerate\ngethashespersec\ngetinfo\ngetmemorypool [data]\ngetmininginfo\ngetnetworkhashps [blocks]\ngetnewaddress [account]\ngetpeerinfo\ngetrawmempool\ngetreceivedbyaccount <account> [minconf=1]\ngetreceivedbyaddress <litecoinaddress> [minconf=1]\ngettransaction <txid> [decompositions]\ngetwork [data]\ngetworkex [data, coinbase]\nhelp [command]\nimportprivkey <litecoinprivkey> [label]\nkeypoolrefill\nlistaccounts [minconf=1]\nlistreceivedbyaccount [minconf=1] [includeempty=false]\nlistreceivedbyaddress [minconf=1] [includeempty=false]\nlistsinceblock [blockhash] [target-confirmations]\nlisttransactions [account] [count=10] [from=0]\nmove <fromaccount> <toaccount> <amount> [minconf=1] [comment]\nsendfrom <fromaccount> <tolitecoinaddress> <amount> [minconf=1] [comment] [comment-to]\nsendmany <fromaccount> {address:amount,...} [minconf=1] [comment]\nsendrawtx <hex string>\nsendtoaddress <litecoinaddress> <amount> [comment] [comment-to]\nsetaccount <litecoinaddress> <account>\nsetgenerate <generate> [genproclimit]\nsetmininput <amount>\nsettxfee <amount>\nsignmessage <litecoinaddress> <message>\nstop\nvalidateaddress <litecoinaddress>\nverifymessage <litecoinaddress> <signature> <message>', error: null, id: 1351164023093 }
$
EXCEPTION: NSt8ios_base7failureE
CAutoFile::read : end of file
litecoin in AppInit()
terminate called after throwing an instance of 'std::ios_base::failure'
what(): CAutoFile::read : end of file
Can we move to libdb5.1++-dev? libdb4.8++-dev is not available any more. If yes, please update doc/readme-qt.rst
Hi there!
I would be very glad if there would be a binary build for linux would be provided or even better provide some packages or repos for biggest distributions (openSuSE, Ubuntu (via PPA), RedHat, Fedora, anyone I am missing :) )
https://bitcointalk.org/index.php?topic=81749.0
I am not sure how much code is changed in litecoin.
This is a serious problem and needs to be addressed ASAP
Can someone please talk to Gavin and figure out, how to fix this problem in LTC .
Trying to lauch ./minerd on Linux is not correct, it should be in a directory that's in the path or have a config option for it. This fixed it for me (both litecoin-qt and minerd are in ~/bin):
--- miningpage.cpp.old 2011-11-01 14:37:29.184095020 +0200
+++ miningpage.cpp 2011-11-01 14:38:09.144095022 +0200
@@ -104,7 +104,7 @@
#ifdef WIN32
QString program = "minerd";
#else
if (ui->debugCheckBox->isChecked())
p2pool is a distributed pool: https://en.bitcoin.it/wiki/P2Pool
Have Litecoin startup p2pool in the background. This would require the client to run python scripts.
First need to modify p2pool to support scrypt POW.
Hi, some suggestions about the build instructions in the following IRC log. TLDR; might want to say explicitly how to set USE_UPNP=, as I did it wrong initially, and you need to install an extra package (libglib2.0-dev) on ubuntu lynx.
Best regards,
Alex
<coventry> Where to report bugs? Build on ubuntu lynx is failing as shown at
http://pastebin.com/Qm9RKu7B
<terrytibbs-web> coventry: https://github.com/coblee/litecoin
<iddo> ok i'll try
<SAC> "Where to report bugs? Build on ubuntu lynx is failing" make -f
makefile.unix USE_UPNP= litecoind solves that, [08:59]
<NeonLicht> That's common to all the chains, SAC, I think. [09:00]
<coventry> Oh, I was passing USE_UPNP= as an env var. Will try that. Thanks.
<SAC> yes if you try to use anything higher that version 1.5 f the upnp but
that fails with this coin works with ever other I have compiled though
[09:01]
<SAC> 1.5 of
<coventry> Interestingly, doing so did not cause it to fail on ubuntu natty
(though I don't have miniupnp installed there, either.
<SAC> I have natty the = 0 failed here need the line above to get it done
[09:02]
<SAC> think anyways 11.04 is what i run
<coventry> Linker is failing on ubuntu lynx with "/usr/bin/ld: cannot find
-lgthread-2.0". libgthread appears to be in packages ia32-libs and
libglib2.0-0, and I am building on a 64-bit machine. Is this a
64/32 bit issue? [09:06]
<SAC> christ i am stupid never thought I should have built this thing on my
MacPro got eight cores there and have everything setup to build *coin
binaries on it.
<SAC> libglib2.0-dev most likely
<SAC> is needed lokk for simliar named [09:07]
<coventry> Oh, duh. Thanks, I'll give that a go.
<SAC> look
<coventry> Yep, that fixed it. Thanks!
<SAC> Welcome
<coventry> I guess that's a report-worthy bug. Install instructions should
probably mention libglib2.0-dev. [09:10]
<EskimoBob> coventry: can you add this to git bug report? [09:11]
<coventry> Will do.
<SAC> Yes and the make -f makefile.unix USE_UPNP= litecoind to build without
the upnp
<coventry> That's less clear. I was doing "USE_UPNP= make -f makefile.unix",
which might just be my general illiteracy. [09:12]
<EskimoBob> gentoo needs -mt and i had to change makefile.unix
<coventry> (I.e., it's mentioned in the build instructions, just not exactly
how to use it.
<EskimoBob> -Wl,-Bdynamic
<coventry> No one minds if I just copy this IRC log into the git bug, do they?
[09:13]
ERC>
Hi there!
When opening the menu of the traysymbol it would be cool if there could be the following informations added:
See forum: https://bitcointalk.org/index.php?topic=50778.msg605836#msg605836
Gavin asked if we would implement this before Bitcoin to help test it out:
https://github.com/gavinandresen/bitcoin-git/tree/op_eval
Featrure Request from: From: https://bitcointalk.org/index.php?topic=76636.msg850675#msg850675
multiple wallet support - Make it easy to switch and add wallets and rename existing ones.
%> make -f makefile.unix
makefile.unix:131: warning: overriding commands for target `obj/nogui/scrypt.o'
makefile.unix:128: warning: ignoring old commands for target `obj/nogui/scrypt.o'
In file included from crypter.cpp:9:
headers.h:36:20: warning: db_cxx.h: No such file or directory
In file included from main.h:12,
from headers.h:89,
from crypter.cpp:9:
db.h:29: error: 'DbEnv' does not name a type
db.h:42: error: ISO C++ forbids declaration of 'Db' with no type
db.h:42: error: expected ';' before '*' token
db.h:44: error: 'DbTxn' was not declared in this scope
db.h:44: error: template argument 1 is invalid
db.h:44: error: template argument 2 is invalid
db.h:157: error: ISO C++ forbids declaration of 'Dbc' with no type
db.h:157: error: expected ';' before '*' token
db.h:168: error: expected ';' before 'int'
db.h:168: error: 'Dbc' has not been declared
db.h:207: error: ISO C++ forbids declaration of 'DbTxn' with no type
db.h:207: error: expected ';' before '*' token
db.h:215: error: expected ';' before 'public'
db.h:168: error: 'DB_NEXT' was not declared in this scope
db.h: In member function 'bool CDB::Read(const K&, T&)':
db.h:59: error: 'pdb' was not declared in this scope
db.h:66: error: 'Dbt' was not declared in this scope
db.h:66: error: expected ';' before 'datKey'
db.h:69: error: expected ';' before 'datValue'
db.h:70: error: 'datValue' was not declared in this scope
db.h:70: error: 'DB_DBT_MALLOC' was not declared in this scope
db.h:71: error: 'pdb' was not declared in this scope
db.h:71: error: there are no arguments to 'GetTxn' that depend on a template parameter, so a declaration of 'GetTxn' must be available
db.h:71: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
db.h:71: error: 'datKey' was not declared in this scope
db.h: In member function 'bool CDB::Write(const K&, const T&, bool)':
db.h:89: error: 'pdb' was not declared in this scope
db.h:98: error: 'Dbt' was not declared in this scope
db.h:98: error: expected ';' before 'datKey'
db.h:104: error: expected ';' before 'datValue'
db.h:107: error: 'pdb' was not declared in this scope
db.h:107: error: there are no arguments to 'GetTxn' that depend on a template parameter, so a declaration of 'GetTxn' must be available
db.h:107: error: 'datKey' was not declared in this scope
db.h:107: error: 'datValue' was not declared in this scope
db.h:107: error: 'DB_NOOVERWRITE' was not declared in this scope
db.h: In member function 'bool CDB::Erase(const K&)':
db.h:118: error: 'pdb' was not declared in this scope
db.h:127: error: 'Dbt' was not declared in this scope
db.h:127: error: expected ';' before 'datKey'
db.h:130: error: 'pdb' was not declared in this scope
db.h:130: error: there are no arguments to 'GetTxn' that depend on a template parameter, so a declaration of 'GetTxn' must be available
db.h:130: error: 'datKey' was not declared in this scope
db.h:134: error: 'DB_NOTFOUND' was not declared in this scope
db.h: In member function 'bool CDB::Exists(const K&)':
db.h:140: error: 'pdb' was not declared in this scope
db.h:147: error: 'Dbt' was not declared in this scope
db.h:147: error: expected ';' before 'datKey'
db.h:150: error: 'pdb' was not declared in this scope
db.h:150: error: there are no arguments to 'GetTxn' that depend on a template parameter, so a declaration of 'GetTxn' must be available
db.h:150: error: 'datKey' was not declared in this scope
db.h: In member function 'int CDB::ReadAtCursor(int*, CDataStream&, CDataStream&, unsigned int)':
db.h:171: error: 'Dbt' was not declared in this scope
db.h:171: error: expected ';' before 'datKey'
db.h:172: error: 'DB_SET' was not declared in this scope
db.h:172: error: 'DB_SET_RANGE' was not declared in this scope
db.h:172: error: 'DB_GET_BOTH' was not declared in this scope
db.h:172: error: 'DB_GET_BOTH_RANGE' was not declared in this scope
db.h:174: error: 'datKey' was not declared in this scope
db.h:177: error: expected ';' before 'datValue'
db.h:178: error: 'DB_GET_BOTH' was not declared in this scope
db.h:178: error: 'DB_GET_BOTH_RANGE' was not declared in this scope
db.h:180: error: 'datValue' was not declared in this scope
db.h:183: error: 'datKey' was not declared in this scope
db.h:183: error: 'DB_DBT_MALLOC' was not declared in this scope
db.h:184: error: 'datValue' was not declared in this scope
db.h:185: error: request for member 'get' in '* pcursor', which is of non-class type 'int'
db.h: In member function 'bool CDB::TxnBegin()':
db.h:218: error: 'pdb' was not declared in this scope
db.h:220: error: 'DbTxn' was not declared in this scope
db.h:220: error: 'ptxn' was not declared in this scope
db.h:221: error: 'dbenv' was not declared in this scope
db.h:221: error: 'GetTxn' was not declared in this scope
db.h:221: error: 'DB_TXN_NOSYNC' was not declared in this scope
db.h:224: error: request for member 'push_back' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'
db.h: In member function 'bool CDB::TxnCommit()':
db.h:230: error: 'pdb' was not declared in this scope
db.h:232: error: request for member 'empty' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'
db.h:234: error: request for member 'back' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'
db.h:235: error: request for member 'pop_back' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'
db.h: In member function 'bool CDB::TxnAbort()':
db.h:241: error: 'pdb' was not declared in this scope
db.h:243: error: request for member 'empty' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'
db.h:245: error: request for member 'back' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'
db.h:246: error: request for member 'pop_back' in '((CDB*)this)->CDB::vTxn', which is of non-class type 'int'
make: *** [obj/nogui/crypter.o] Error 1
FR aka Feature Request from: https://bitcointalk.org/index.php?topic=76636.msg863189#msg863189
#7 - "Litecoin me" URI support
This is available in Bitcoin-qt client and few others.
http://bitcoinmedia.com/bitcoin-me-using-clickable-site-uri-links/
It is all in the title.
I do following:
ubuntu-Delly:litecoin nmelzer [master] $ qmake
Project MESSAGE: Building with UPNP support
Project MESSAGE: Building with UPNP support
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_de.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_es.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_nl.qm'
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_ru.qm'
ubuntu-Delly:litecoin nmelzer [master] $ make
[...]
/usr/bin/rcc -name bitcoin src/qt/bitcoin.qrc -o qrc_bitcoin.cpp
RCC: Error in 'src/qt/bitcoin.qrc': Cannot find file 'locale/bitcoin_de.qm'
make: *** [qrc_bitcoin.cpp] Fehler 1
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.