Giter Club home page Giter Club logo

bitcoin's People

Contributors

celil-kj avatar codeshark avatar codler avatar dooglus avatar fanquake avatar fcicq avatar forrestv avatar freewil avatar gavinandresen avatar gmaxwell avatar joelkatz avatar jonasschnelli avatar jordanlewis avatar jrmithdobbs avatar laanwj avatar luke-jr avatar matoking avatar mgiuca avatar muggenhor avatar non-github-bitcoin avatar p2k avatar petertodd avatar rebroad avatar runeksvendsen avatar sipa avatar sje397 avatar thebluematt avatar theuni avatar vegard avatar wizeman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bitcoin's Issues

DoS: cause segnet4 bitcoind to core dump

This is from a build from segwit-master, commit e82f2fc, which I can't seem to find now but it was fairly recent, probably from the end of May.

I will rebuild bitcoind from more recent source tonight to see if this crash is there in the latest -- by the way what's the branch I should build? There's about 8 segwit branches ๐Ÿ˜„

I have my own weird SPV client code which I'm writing, which almost certainly doesn't properly follow the wire protocol and sends the wrong things. But that still shouldn't crash bitcoind.

It seems to be related to merkle-block sending which I believe is in an unfinished state, so this may be a bug that's already known, or related to unfinished code in this branch. Anyways, figured I'd post it in case it was something new.

Here's all the debug log I can get

2016-06-07 05:51:57 Added connection peer=3
2016-06-07 05:51:57 connection from 127.0.0.1:41806 accepted
2016-06-07 05:51:57 received: version (111 bytes) peer=3
2016-06-07 05:51:57 send version message: version 70013, blocks=33845, us=555.555.555.555:28901, peer=3
2016-06-07 05:51:57 sending: version (103 bytes) peer=3
2016-06-07 05:51:57 sending: verack (0 bytes) peer=3
2016-06-07 05:51:57 receive version message: /btcwire:0.4.0/test:zero/: version 70012, blocks=0, us=10.0.0.11:28900, peer=3
2016-06-07 05:51:57 added time data, samples 4, offset +0 (+0 minutes)
2016-06-07 05:51:57 sending: ping (8 bytes) peer=3
2016-06-07 05:51:57 AdvertiseLocal: advertising address 555.555.555.555:28901
2016-06-07 05:51:57 sending: addr (31 bytes) peer=3
2016-06-07 05:51:58 received: verack (0 bytes) peer=3
2016-06-07 05:51:58 sending: sendheaders (0 bytes) peer=3
2016-06-07 05:51:58 received: getheaders (69 bytes) peer=3
2016-06-07 05:51:58 getheaders -1 to 0000000000000000000000000000000000000000000000000000000000000000 from peer=3
2016-06-07 05:51:58 sending: headers (1 bytes) peer=3
2016-06-07 05:51:58 received: pong (8 bytes) peer=3
2016-06-07 05:51:58 received: filterload (53 bytes) peer=3
2016-06-07 05:51:58 received: getdata (37 bytes) peer=3
2016-06-07 05:51:58 received getdata (1 invsz) peer=3
2016-06-07 05:51:58 received getdata for: merkleblock 000000005c83f6e456ea6137edaa2ec962166ab65d9dc90c607dee97a766acbb peer=3
2016-06-07 05:51:58 sending: merkleblock (119 bytes) peer=3
2016-06-07 05:51:58 received: getdata (37 bytes) peer=3
2016-06-07 05:51:58 received getdata (1 invsz) peer=3
2016-06-07 05:51:58 received getdata for: merkleblock 00000000511278eb2ce6d3e258fd934cd1a6853eb5eb1e6f48307e2ad3206b37 peer=3
2016-06-07 05:51:58 sending: merkleblock (119 bytes) peer=3
2016-06-07 05:51:58 received: getdata (37 bytes) peer=3
2016-06-07 05:51:58 received getdata (1 invsz) peer=3
2016-06-07 05:51:58 received getdata for: merkleblock 00000000563f93e8d2d2112ccd5b5f9746cf845acd1eeddc79504ee9fad6b222 peer=3
2016-06-07 05:51:58 sending: merkleblock (119 bytes) peer=3
2016-06-07 05:51:58 received: getdata (37 bytes) peer=3
2016-06-07 05:51:58 received getdata (1 invsz) peer=3
2016-06-07 05:51:58 received getdata for: merkleblock 000001288edd8dd50fc5c32fc55d127490395b3e5c5684e46eca35244130c6ee peer=3
2016-06-07 05:51:58 sending: merkleblock (506 bytes) peer=3
2016-06-07 05:51:58 sending: tx

doesn't actually finish the last line, do there's no newline there. I get
Aborted (core dumped) nohup ./bitcoind
on the terminal.

On the client side, I actually get some txs that don't make it into the debug.log:

dbTip 33517 headerTip 33845
will request blocks 33518 to 33845
made 12 element filter
sent filter df50e2271a5af6047e692002974b6089dc5df093624009da27e424e7c3d87c1fd5d165c129fb1c345b500b
2016/06/06 22:51:58 added b60c75e89e03470ae7427c5a004830c26ba87ef3dae0c8abf1641a430adce7b7 to OKTxids at height 33521
2016/06/06 22:51:58 added 41dc9bee24a337c8818f6612ad8ce03b080d1b20accab3e5d87a186e1143a7ab to OKTxids at height 33521
2016/06/06 22:51:58 added e882be68c5c64939d927cf223866402d5d4f218452810693b82f4ccdc12aa293 to OKTxids at height 33521
2016/06/06 22:51:58 added d50add9db38577ef77fbb2d978e17ead624fc8b98bf008027a31567eeeffb434 to OKTxids at height 33521
2016/06/06 22:51:58 added feab64515571f20161341615e7e26fae217a510b1b8f9d3739f832a6ffcffc27 to OKTxids at height 33521
2016/06/06 22:51:58 ReadMessageWithEncodingN error.  Disconnecting: EOF

This is not bitcoind, it's a btcd based SPV client; probably clear enough what's going on -- it sends a filter, requests blocks, and then gets 5 txs from block 000001288e before the TCP connection dies.

I'll build newer code, though it takes ~1hr for me to build so will test tomorrow.
Hope this helps

BILND

May i get the piont why we have to add the blind with private key when we generate the public key.

can not find qt support

Hi,

I am trying to run ./configure.

got error message "qt support requested but qt could not be located. use --without-qt"

I have another project cloned from bitcoin/bitcoin at github. That project runs fine with ./configure.

I am using online free license QA creator.

Any ideas about what might causes me problems

Thanks.

wallet / node interaction problem?

using 35558ed410374bdc5026f694b4ad92e5ecd5c109, which not the latest but doesn't look like more recent changes would affect this (I can update though)

I often get this:

tnu@segneta:~$ ./bitcoin-cli getwalletinfo
{
  "walletversion": 60000,
  "balance": 14009.66777513,
  "unconfirmed_balance": 0.00000000,
  "immature_balance": 0.00000000,
  "txcount": 315,
  "keypoololdest": 1459373243,
  "keypoolsize": 101,
  "paytxfee": 0.00000000
}
tnu@segneta:~$ ./bitcoin-cli sendtoaddress D9J59cHnRUu3ao7g7s4B66wyPNDd7PtTbb 2016
error code: -4
error message:
Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.

in debug.log:

2016-04-14 06:27:06 keypool reserve 28
2016-04-14 06:27:06 keypool return 28
2016-04-14 06:27:40 keypool reserve 28
2016-04-14 06:27:40 CommitTransaction:
CTransaction(hash=129934a178, ver=1, vin.size=22, vout.size=2, nLockTime=17258)
    CTxIn(COutPoint(17d2e0f2d4, 0), scriptSig=483045022100ddfd18ad48fc, nSequence=4294967294)
    CTxIn(COutPoint(2ffd081ad2, 0), scriptSig=47304402203d3c4e0d5fbf11, nSequence=4294967294)
    CTxIn(COutPoint(b78d2d6859, 0), scriptSig=473044022015a450794b14e2, nSequence=4294967294)
    CTxIn(COutPoint(48ad0d7db3, 0), scriptSig=473044022035bde5f06117aa, nSequence=4294967294)
    CTxIn(COutPoint(caacd8e01d, 0), scriptSig=483045022100e19f30bb395e, nSequence=4294967294)
    CTxIn(COutPoint(d34dd024c0, 0), scriptSig=47304402203ce7d3ec69f8e4, nSequence=4294967294)
    CTxIn(COutPoint(674dfed873, 0), scriptSig=483045022100b75103d39088, nSequence=4294967294)
    CTxIn(COutPoint(067c2312cc, 0), scriptSig=483045022100d157a5d8e6b2, nSequence=4294967294)
    CTxIn(COutPoint(c02c354e95, 0), scriptSig=483045022100858eae085392, nSequence=4294967294)
    CTxIn(COutPoint(a8575e93ee, 0), scriptSig=483045022100db8c04bd6b09, nSequence=4294967294)
    CTxIn(COutPoint(3ec547d2fe, 0), scriptSig=4730440220597e5b23e96256, nSequence=4294967294)
    CTxIn(COutPoint(2ff460b92c, 0), scriptSig=47304402203d01ccf9428cd4, nSequence=4294967294)
    CTxIn(COutPoint(686cbe6565, 0), scriptSig=4730440220615cc84ea2d73e, nSequence=4294967294)
    CTxIn(COutPoint(fc480c96ff, 0), scriptSig=473044022048bcb03a9df592, nSequence=4294967294)
    CTxIn(COutPoint(e85c4fac09, 0), scriptSig=483045022100eef530b223bd, nSequence=4294967294)
    CTxIn(COutPoint(e182645a4d, 0), scriptSig=4830450221009638a28e45b5, nSequence=4294967294)
    CTxIn(COutPoint(ef7850153c, 0), scriptSig=4830450221009a5c70b43fb5, nSequence=4294967294)
    CTxIn(COutPoint(8748e5d810, 0), scriptSig=47304402202eac8df9438618, nSequence=4294967294)
    CTxIn(COutPoint(acafdf772e, 0), scriptSig=47304402202840a4fb291d20, nSequence=4294967294)
    CTxIn(COutPoint(e4cdcd1176, 0), scriptSig=47304402206e0417095fe674, nSequence=4294967294)
    CTxIn(COutPoint(0c18f068f6, 0), scriptSig=47304402206688589954730e, nSequence=4294967294)
    CTxIn(COutPoint(0456f26e28, 0), scriptSig=483045022100da99fed25c6e, nSequence=4294967294)
    CTxOut(nValue=2016.00000000, scriptPubKey=76a9142d931607deea7808fe803588)
    CTxOut(nValue=22.69821136, scriptPubKey=76a914d919429cedbfa77780ca607f)
2016-04-14 06:27:40 keypool keep 28
2016-04-14 06:27:40 AddToWallet 129934a178e659f7f92d937842c20453d8a71ee996c27b73c27ba8f8b1b97d89  new
2016-04-14 06:27:40 CommitTransaction(): Error: Transaction not valid

then a few blocks later, the tx will appear on the network.
I'll post a comment to this issue when that happens with the debug log.

There's 2 things: one is there some error where the node doesn't like the tx. Then there's also the problem that if the tx fails, it should disappear; if bitcoin-cli returns an error, that means the coins didn't get sent, so naturally I press up, and press enter again, and it sometimes works. But then I'll send 2X as much as I intended which can result in loss of funds.

This might not be segnet related? I've never used bitcoin-cli on mainnet. Also I don't have 2016 coins on mainnet :)

Can Not connect to any peer in segnet4

2016-07-07 12:07:22 dnsseed thread start
2016-07-07 12:07:22 Loading addresses from DNS seeds (could take a while)
2016-07-07 12:07:22 0 addresses found from DNS seeds
2016-07-07 12:07:22 dnsseed thread exit
.......
2016-07-07 12:08:23 Adding fixed seed nodes as DNS doesn't seem to be available.
2016-07-07 12:08:23 connect() to 37.34.48.17:28901 failed after select(): Connection refused (111)
2016-07-07 12:08:24 connect() to 37.34.48.17:28901 failed after select(): Connection refused (111)
2016-07-07 12:08:25 connect() to 37.34.48.17:28901 failed after select(): Connection refused (111)

and keep refused

so, is there any peer running segnet4?

compile error

there is an error below when i make.
/usr/bin/ld: /usr/local/db4.8//lib//libdb_cxx-4.8.a(db_vrfy.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/usr/local/db4.8//lib//libdb_cxx-4.8.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [bitcoind] Error 1

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.