public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
* [Bitcoin-development] getpeerinfo results
@ 2014-02-22  2:56 Ronald Hoffman
  2014-02-22  8:08 ` Wladimir
  0 siblings, 1 reply; 3+ messages in thread
From: Ronald Hoffman @ 2014-02-22  2:56 UTC (permalink / raw)
  To: bitcoin-development

[-- Attachment #1: Type: text/plain, Size: 1354 bytes --]

I noticed that the 'services' field appears to be garbled in the latest
source code level from github.  Bitcoind is connected to my Java node
server at 127.0.0.1:8333.  I thought I was sending a bad 'version' message
but I get the correct results using 0.8.6.  So it appears that something
changed in 0.9.0.

Here is bitcoin-cli talking to bitcoind (0.9.0)

$ bitcoin-cli getpeerinfo
[
    {
        "addr" : "127.0.0.1:8333",
        "services" : "0000000164x",
        "lastsend" : 1393036635,
        "lastrecv" : 1393036635,
        "bytessent" : 100169,
        "bytesrecv" : 53633565,
        "conntime" : 1393036133,
        "pingtime" : 0.00000000,
        "version" : 70002,
        "subver" : "/JavaBitcoin:1.0/",
        "inbound" : false,
        "startingheight" : 287125,
        "banscore" : 0,
        "syncnode" : true
    }
]

Here is the same bitcoin-cli talking to bidcoind (0.8.6)

$ bitcoin-cli getpeerinfo
[
    {
        "addr" : "127.0.0.1:8333",
        "services" : "00000001",
        "lastsend" : 1393037165,
        "lastrecv" : 1393037165,
        "bytessent" : 77494,
        "bytesrecv" : 13054,
        "conntime" : 1393037135,
        "version" : 70002,
        "subver" : "/JavaBitcoin:1.0/",
        "inbound" : false,
        "startingheight" : 287126,
        "banscore" : 0,
        "syncnode" : true
    }
]

Ron

[-- Attachment #2: Type: text/html, Size: 2327 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bitcoin-development] getpeerinfo results
  2014-02-22  2:56 [Bitcoin-development] getpeerinfo results Ronald Hoffman
@ 2014-02-22  8:08 ` Wladimir
  2014-02-22  8:54   ` Wladimir
  0 siblings, 1 reply; 3+ messages in thread
From: Wladimir @ 2014-02-22  8:08 UTC (permalink / raw)
  To: Ronald Hoffman; +Cc: Bitcoin Dev

[-- Attachment #1: Type: text/plain, Size: 943 bytes --]

On Sat, Feb 22, 2014 at 3:56 AM, Ronald Hoffman
<ronald.hoffman6@gmail.com>wrote:

> I noticed that the 'services' field appears to be garbled in the latest
> source code level from github.  Bitcoind is connected to my Java node
> server at 127.0.0.1:8333.  I thought I was sending a bad 'version'
> message but I get the correct results using 0.8.6.  So it appears that
> something changed in 0.9.0.
>

This warrants an issue on github:
https://github.com/bitcoin/bitcoin/issues/new


> Here is bitcoin-cli talking to bitcoind (0.9.0)
>
> $ bitcoin-cli getpeerinfo
> [
>     {
>         "addr" : "127.0.0.1:8333",
>         "services" : "0000000164x",
>

What git revision are you testing with? Built with what compiler on which
platform?

Do all peers in getpeerinfo show up garbled, or just yours? Does it
literally show as "164x"?

I just tried getpeerinfo locally and all my peers show as: ""services" :
"00000001" as expected.

Wladimir

[-- Attachment #2: Type: text/html, Size: 2055 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bitcoin-development] getpeerinfo results
  2014-02-22  8:08 ` Wladimir
@ 2014-02-22  8:54   ` Wladimir
  0 siblings, 0 replies; 3+ messages in thread
From: Wladimir @ 2014-02-22  8:54 UTC (permalink / raw)
  To: Ronald Hoffman; +Cc: Bitcoin Dev

[-- Attachment #1: Type: text/plain, Size: 748 bytes --]

On Sat, Feb 22, 2014 at 9:08 AM, Wladimir <laanwj@gmail.com> wrote:

> On Sat, Feb 22, 2014 at 3:56 AM, Ronald Hoffman <ronald.hoffman6@gmail.com
> > wrote:
>
>> I noticed that the 'services' field appears to be garbled in the latest
>> source code level from github.  Bitcoind is connected to my Java node
>> server at 127.0.0.1:8333.  I thought I was sending a bad 'version'
>> message but I get the correct results using 0.8.6.  So it appears that
>> something changed in 0.9.0.
>>
>
> This warrants an issue on github:
> https://github.com/bitcoin/bitcoin/issues/new
>

I think I found (and fixed) the problem already. This is some windows
inttypes.h bordercase. Can you test with this?:

https://github.com/bitcoin/bitcoin/pull/3729

Wladimir

[-- Attachment #2: Type: text/html, Size: 1796 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-22  8:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-22  2:56 [Bitcoin-development] getpeerinfo results Ronald Hoffman
2014-02-22  8:08 ` Wladimir
2014-02-22  8:54   ` Wladimir

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox