00:44
<
achow101 >
Is there any condition where core won't send a getdata when it receives an inv for a tx?
00:45
<
achow101 >
assuming it doesn't already have the tx
00:49
<
instagibbs >
achow101, if it's in the recent rejects filter, which I guess already counts as "has"
00:55
<
achow101 >
nvm. I think I found my problem. Shouldn't have MSG_WITNESS_TX in the inv.
01:01
<
achow101 >
that didn't work.
01:29
<
btcdrak >
luke-jr: saying BIP1 is deprecated and now use BIP2 is the same as changing the text of BIP1, but more confusing. Let's just change BIP1
01:30
<
luke-jr >
btcdrak: ignoring the way it's supposed to work is far more confusing than following the process
01:30
<
gmaxwell >
I would generally agree for protocols that are deployed.
01:31
<
gmaxwell >
"X operators according to BIP10 not BIP11"
01:31
<
luke-jr >
it's trivial and clear to just put a large banner at the top of BIP 1 and throughout the document that it's obsolete, see BIP 2
01:31
<
gmaxwell >
but yes, thats okay too I guess.
02:24
<
achow101 >
has the behavior of segwit peer services diverged from the bip?
02:50
<
sipa >
achow101: elaborate?
02:51
<
achow101 >
has their been changes to the format of the getdata message? Or to when core responds to an inv?
02:51
<
sipa >
i don't think so
02:52
<
achow101 >
I'm trying to debug sending txs with armory and the behavior from core is inconsistent
02:53
<
achow101 >
sometimes it will send a getdata in response to the inv, and other times it won't
02:55
<
sipa >
while the node is fully synced?
02:56
<
achow101 >
yes. testnet though, and testnet has been super weird lately
02:57
<
achow101 >
it works if I unset the NODE_WITNESS service bit in Armory
03:30
<
achow101 >
is getdata changed in any significant way in segwit?
03:30
<
achow101 >
besides the inv types
03:33
<
sipa >
it doesn't disconnect, right?
03:33
<
sipa >
just not getdata in response to a MSG_TX inv?
03:34
<
achow101 >
sometimes it gets a response
03:34
<
achow101 >
but when it does, armory either isn't getting it or doesn't understand it
03:34
<
achow101 >
but it works fine without the witness service bit
03:36
<
sipa >
how can it not understand?
03:36
<
sipa >
it's just a getdata
03:37
<
achow101 >
idk. works fine without segwit
03:37
<
achow101 >
that's why I asked if getdata changed
03:47
<
sipa >
well it will ask for a MSG_WITNESS_TX in response, not an MSG_TX
03:48
<
achow101 >
right. and I have that covered. but it's not even making it that far
03:49
<
achow101 >
it looks like it isn't even receiving the getdata, but I can't possibly fathom why that would be the case
03:49
<
sipa >
it being armory?
03:50
<
sipa >
can you run with -debug=net, and create an excerpt from debug.log with the receival of the inv, and the few folpwong message
03:55
<
achow101 >
2016-09-26 03:53:37 got inv: tx cf1ae8a9d9b93eaa281a853315a36f9f2ea256752bae0a72e2727522cb82bd1f new peer=1
03:55
<
achow101 >
2016-09-26 03:53:37 askfor witness-tx cf1ae8a9d9b93eaa281a853315a36f9f2ea256752bae0a72e2727522cb82bd1f 0 (00:00:00) peer=1
03:55
<
achow101 >
2016-09-26 03:53:37 Requesting witness-tx cf1ae8a9d9b93eaa281a853315a36f9f2ea256752bae0a72e2727522cb82bd1f peer=1
03:55
<
achow101 >
2016-09-26 03:53:37 sending: getdata (37 bytes) peer=1
03:55
<
achow101 >
and that's it. no response with that txid
03:56
<
sipa >
the getdata does not contain a msg_witness_tx for that txid?
03:57
<
achow101 >
it should. NODE_WITNESS is set in armory's services
03:58
<
sipa >
but it does not?
03:58
<
sipa >
what does it contain?
03:58
<
sipa >
bitcoin core is sending you a getdata
03:59
<
achow101 >
i don't know what it contains. none of my breakpoints are being set off. I can wireshark it though
04:02
<
sipa >
it would be good to know where the problem lies
04:03
<
achow101 >
this is the getdata from wireshark (well for another tx since I ran it again)
04:03
<
achow101 >
0000 00 00 00 00 00 00 00 00 00 00 00 00 08 00 45 00
04:03
<
achow101 >
0010 00 71 3e 73 40 00 40 06 fe 11 7f 00 00 01 7f 00
04:03
<
achow101 >
0020 00 01 47 9d aa 92 be 7f 69 f8 f7 cf 08 33 80 18
04:03
<
achow101 >
0030 01 5e fe 65 00 00 01 01 08 0a 00 81 8f 34 00 81
04:03
<
achow101 >
0040 8f 34 0b 11 09 07 67 65 74 64 61 74 61 00 00 00
04:03
<
achow101 >
0050 00 00 25 00 00 00 11 8c ea 6c 01 01 00 00 40 1f
04:03
<
achow101 >
0060 bd 82 cb 22 75 72 e2 72 0a ae 2b 75 56 a2 2e 9f
04:03
<
achow101 >
0070 6f a3 15 33 85 1a 28 aa 3e b9 d9 a9 e8 1a cf
04:06
<
achow101 >
nvm. I found the problem. I forget the invtype in one place and that screwed the whole thing
06:43
<
paveljanik >
jonasschnelli, the new overlay when syncing/reindexing: is there any way to bring it back once hidden?
06:45
<
luke-jr >
paveljanik: click the icon
06:45
<
paveljanik >
which one? I already tried all of them ;-)
06:45
<
paveljanik >
ah, triangle with ! ;-)
06:45
<
paveljanik >
thank you!
06:47
<
* paveljanik >
is a bad UI user 8)
06:58
<
luke-jr >
nah, I just have the weirdest memory. I remember the PR saying that :P
08:58
<
jonasschnelli >
Yes. Pressing on the warning icon is not really elegant UX
09:13
<
wumpus >
jonasschnelli: are you on MacOSX? can you please check if the libc function daemon() is available?
09:13
<
jonasschnelli >
wumpus: Yes. It's available
09:13
<
jonasschnelli >
daemon(int nochdir, int noclose);
09:13
<
wumpus >
thanks, yes that'sthe one
09:13
<
jonasschnelli >
I'm on OSX 10.10
09:14
<
wumpus >
let's extend this: can anyone with a UNIX-ish OS that is not Linux please check this? I've checked OpenBSD and it does, at least.
09:14
<
jonasschnelli >
daemon is a standard BSD function, BSD is the base-system of darwin (fork)
09:15
<
wumpus >
so I think we can just rely on that any OS that support daemonization in the first place and runs bitcoin core has that call
09:16
<
wumpus >
didn't BSD come up with deamons in the first place :)
09:20
<
wumpus >
even better, we can remove the windows-specific path. Windows doesn't have daemon(), so it wouldn't support --daemonize
09:21
<
wumpus >
going to do a pull for this
09:25
<
sipa >
windows has background services, but their purpose seems a bit different, as they just avoid being tied to abuser session
09:26
<
gmaxwell >
what does-- say-- apache do on windows?
09:28
<
luke-jr >
I would be surprised if it didn't install as a system service
09:28
<
wumpus >
windows is out of scope here
09:28
<
wumpus >
we don't support that yet, and the point of this pull is not to support anything on wnidows
09:28
<
wumpus >
it's just to simplify and improve behavior on UNIX
09:29
<
sipa >
agree, just saying that the corresponding concept on windows has a different goal
09:29
<
wumpus >
windows services are a completely different animal, you can't just spawn them arbitrarily like UNIX daemons, they're more like /etc/init.d services installed as root
09:29
<
wumpus >
oh I agree with that
09:30
<
sipa >
maybe it makes sense to support that when we have done more use for wallet-less/wallet-split support
09:30
<
wumpus >
yes, it may be worthwhile to work on, but it won't share any code with -daemonize, it's more like the "how to install as a system service" guide that we have for some linux distros
09:32
<
wumpus >
I'm afraid it takes a lot of OS-specific code and registry wrangling
09:32
<
luke-jr >
looking over some old code I wrote for a Windows service, it's probably ~100 LOC
09:32
<
luke-jr >
maybe ~200
09:32
<
wumpus >
as well as needs to set up an account to run it under
09:32
<
wumpus >
you won't want to spawn it as ADMINISTRATOR
09:33
<
wumpus >
(or "local services" which is pretty much admin-equiv)
09:38
<
paveljanik >
jonasschnelli, I have started testnet Qt with the current master from scratch, only bitcoin.conf remained. There is no overlay window showing it is synchronizing. Should it be displayed?
09:38
<
paveljanik >
Can't click on triangle with excl. mark...
09:39
<
paveljanik >
I understood that this is the primary use case where it should be shown.
09:40
<
luke-jr >
wumpus: well, Windows isn't going to be secure no matter what user Core runs as <.<
09:40
<
wumpus >
luke-jr: sure, but if we do it, we need to support best practices
09:49
<
wumpus >
the help message for -daemon is pretty strange: "Run in the background as a daemon and accept commands". Run in the background, check. Accept commands? Don't we always?
09:50
<
wumpus >
(well strictly unless you set -server=0, but it has nothing to do with the daemon option)
10:17
<
btcdrak >
gmaxwell: Apache registers Windows services
10:29
<
MarcoFalke >
jgarzik already merged it
10:30
<
wumpus >
it still shows as open here
10:30
<
MarcoFalke >
oh, my osx fix
10:30
<
MarcoFalke >
I mean
10:31
<
paveljanik >
jonasschnelli, please ignore it. It is shown correctly when you use correct tree/binary 8)
10:31
<
wumpus >
I didn't know you did an osx fix
10:36
<
MarcoFalke >
jonasschnelli: Does the sync overlay block the gui for you when you do reindex?
10:44
<
MarcoFalke >
I think we can do this without any lock to cs_main
10:44
<
MarcoFalke >
Will try to create a pull this week.
10:45
<
MarcoFalke >
(Or at least reduce the locking, but get rid of the fHeader "shortcut")
10:53
<
wumpus >
I wonder, is windows on 32 bit even still a thing these days?
10:55
<
MarcoFalke >
Windows XP 32 bit seems to be the most common os these days
10:55
<
wumpus >
it wouldn't make me terribly sad if we had to only support one architecture for windows
10:55
<
wumpus >
well the train for XP support has already failed
10:57
<
wumpus >
I think android is the most common OS these days
10:59
<
wumpus >
but I don't think we should support that out of the box before there is some kind of SPV fallback for the wallet
11:04
<
wumpus >
in any case I think windows 32 bit is dead or dying as a platform. Linux 32-bit still makes some sense for VMs, I suppose.
11:04
<
wumpus >
I mean x86. ARM 32 makes obvious sense.
11:35
<
GitHub61 >
bitcoin/master 9a75d29 Wladimir J. van der Laan: devtools: Check for high-entropy ASLR in 64-bit PE executables...
11:35
<
GitHub61 >
bitcoin/master 62c2915 Wladimir J. van der Laan: build: supply `-Wl,--high-entropy-va`...
11:35
<
GitHub61 >
bitcoin/master 4e1567a Wladimir J. van der Laan: Merge #8249: Enable (and check for) 64-bit ASLR on Windows...
11:35
<
wumpus >
huh isn't it
*daemonize* instead of *daemonise*? confused
11:35
<
sipa >
british vs american?
11:36
<
sipa >
daemonize seems more common
11:36
<
wumpus >
what is the UNIX spelling?
11:36
<
wumpus >
yes, I thought so
11:37
<
paveljanik >
getting testnet IBD finished is a pain...
11:39
<
wumpus >
daemonize appears 2 times in the current source, daemonise 0 times, clear, changing the PR to keep sanity
11:41
<
wumpus >
paveljanik: why so?
11:42
<
paveljanik >
wumpus, doing it the second time here. Both stuck at block ~892320.
11:42
<
wumpus >
stuck in what way?
11:42
<
paveljanik >
8 peers
11:42
<
paveljanik >
no progress in received blocks
11:42
<
wumpus >
any errors in the log?
11:43
<
paveljanik >
many got inv, received inv
11:43
<
paveljanik >
debug console shows 0 txs in mempool
11:43
<
paveljanik >
it was a rm -rf testnet3 run. In both cases...
11:44
<
paveljanik >
12 weeks ago in both cases.
11:44
<
paveljanik >
all nodes are 12.99+
11:45
<
MarcoFalke >
paveljanik: A stalling issue?
11:46
<
MarcoFalke >
Does it disconnect peers?
11:46
<
paveljanik >
Syncyng headers
11:47
<
wumpus >
I haven't done a testnet sync from scratch in quite a while, maybe I should
11:47
<
paveljanik >
all peers at 947573
11:47
<
MarcoFalke >
Hmm, I saw some slow header syncs yesterday. I blamed my slow internet...
11:47
<
wumpus >
maybe I should try it in a win 32-bit VM for extra masochism points
11:49
<
sipa >
paveljanik: all witness capable peers?
11:50
<
paveljanik >
all NETWORK & BLOOM & WITNESS
11:50
<
sipa >
did you reindex?
11:50
<
paveljanik >
in both cases rm -rf testnet3 full IBD
11:51
<
paveljanik >
from scratch
11:57
<
wumpus >
restarting (e.g., to get new peers) didn't solve it either?
11:57
<
GitHub167 >
bitcoin/master faef293 MarcoFalke: [wallet] Add high transaction fee warnings
11:57
<
GitHub167 >
bitcoin/master ab0b411 Wladimir J. van der Laan: Merge #8486: [wallet] Add high transaction fee warnings...
11:58
<
MarcoFalke >
Wondering if 8738 should be locked.
11:58
<
paveljanik >
wumpus, no.
11:58
<
paveljanik >
I even tried to rm peers.dat and restart
11:58
<
MarcoFalke >
paveljanik: So debug=net show nothing?
11:58
<
wumpus >
MarcoFalke: oh no, rebroad got involved too
11:58
<
paveljanik >
MarcoFalke, will try
12:00
<
phantomcircuit_ >
wumpus: i apologize for how long it takes in advance
12:00
<
wumpus >
MarcoFalke: locked it
12:01
<
wumpus >
jonasschnelli: the comment nit was already solved in #8813, remember that github won't hide changes anymore.
12:05
<
paveljanik >
sent getheaders to all peas, received 947582
12:05
<
paveljanik >
Ignoring getheaders from peer=9 because node is in initial block download
12:05
<
paveljanik >
from all of them
12:05
<
phantomcircuit_ >
wumpus: is there a particular pattern we're already using for RAII wrappers for db handles or things?
12:05
<
phantomcircuit_ >
it's gonna need to be reference counted
12:05
<
wumpus >
a shared pointer?
12:06
<
wumpus >
std::shared_ptr is automagically reference counted
12:06
<
paveljanik >
looks like we are ignoring too much when n IBD
12:06
<
phantomcircuit_ >
wumpus: yeah except none of the functions know whether they were the originally called method
12:07
<
phantomcircuit_ >
there's public methods which call each other
12:07
<
phantomcircuit_ >
so the first one creates the CWalletDB object and the rest use a private member
12:08
<
phantomcircuit_ >
but doing that just with a shared pointer wont work cause the private member isn't destroyed
12:08
<
wumpus >
or create your own RAII wrapper, though I prefer going with existing c++11 features where possible
12:08
<
wumpus >
esp eith reference counting it's kind of easy to introduce off-by-one errors
12:09
<
jonasschnelli >
wumpus: Arg. Yes. I still find it confusing to see old code on the PR page. :) But probably good for clear documentation.
12:09
<
wumpus >
" except none of the functions know whether they were the originally called method" I'd suggest to fix that first
12:09
<
wumpus >
create explicit API methods and internal helper methods
12:09
<
phantomcircuit_ >
hmm
12:09
<
wumpus >
this helps with locking too
12:09
<
phantomcircuit_ >
yeah i guess just fixing the api first would be the way to go
12:10
<
wumpus >
and make the internal helper methods private so that external clients won't be tempted into calling them
12:10
<
wumpus >
MarcoFalke: yes
12:11
<
wumpus >
MarcoFalke: both for pushes and prs
12:13
<
paveljanik >
peers send me: getheaders (which I ignore because of still in IBD), sendheaders, sendcmpct, pong, headers
12:14
<
wumpus >
MarcoFalke: bah, no travis buttons either
12:15
<
jonasschnelli >
paveljanik: Ignoring getheaders seems correct..
12:15
<
jonasschnelli >
During IBD
12:16
<
wumpus >
MarcoFalke: it doesnt look like travis is doing anything there
12:16
<
wumpus >
MarcoFalke: no builds at all yet
12:16
<
MarcoFalke >
Oh, maybe it needs at least one build at master...
12:16
<
wumpus >
just going to merge your pull, let's see if that will get travis to test
12:17
<
wumpus >
oh! it's starting
12:17
<
wumpus >
did anyone do anything?
12:19
<
sipa >
paveljanik: did you ever send a getheaders?
12:20
<
paveljanik >
yes, to all peers
12:21
<
paveljanik >
I'm now grepping though the old log, because I'm trying reindex
12:22
<
paveljanik >
and then received: headers (163 bytes) peer=1
12:26
<
wumpus >
can anyone please make a browser extension that hides github's big green 'merge' button? :-)
12:27
<
jonasschnelli >
heh... yes. Some local CSS injection.
12:27
<
sipa >
alternative: can we pay github to add a setting to remove it?
12:28
<
achow101 >
why do you want that?
12:28
<
wumpus >
I've already requested that feature once, they actually have a per-repository option to remove it in some cases
12:28
<
paveljanik >
sipa, I sent this: initial getheaders (947583) to peer=1
12:28
<
wumpus >
but you can't disable it in all cases, and they don't intend to do that :(
12:28
<
paveljanik >
ie. I know the current height, but do not have blocks...
12:31
<
wumpus >
achow101: because I don't want to accidentally use that button instead of the script that we wrote for merging+signing
12:31
<
wumpus >
and the button seems to be explicitly designed to be big and green and easy to accidentally click
12:31
<
wumpus >
I guess in the next version it will follow the mouse cursor :p
12:34
<
MarcoFalke >
can it be disabled on events such as travis fails?
12:35
<
MarcoFalke >
We could add another "CI" (maybe a linter) and have it return false all the time
12:36
<
wumpus >
I've thought about that, but I think the UI impact of that is even worse. No green checkmarks anymore
12:53
<
GitHub87 >
bitcoin/master 381826d Wladimir J. van der Laan: bitcoin-cli: More detailed error reporting...
12:54
<
GitHub87 >
bitcoin/master bb843ad Wladimir J. van der Laan: Merge #8722: bitcoin-cli: More detailed error reporting...
13:03
<
GitHub105 >
bitcoin/master ddddaaf MarcoFalke: [rpc] Deprecate getinfo...
13:03
<
GitHub105 >
bitcoin/master fa6e71b MarcoFalke: [qa] Add getinfo smoke tests and rework versionbits test
13:03
<
GitHub105 >
bitcoin/master dd20ed1 Wladimir J. van der Laan: Merge #8780: [rpc] Deprecate getinfo...
13:03
<
MarcoFalke >
^ for release notes, if someone feels like adding this
13:11
<
GitHub103 >
bitcoin/master c14ffd5 jonnynewbs: [trivial] fix mempool comment (outdated by BIP125)
13:11
<
GitHub103 >
bitcoin/master 8f1fbf3 Wladimir J. van der Laan: Merge #8796: [trivial] fix mempool comment (outdated by BIP125)...
13:12
<
paveljanik >
-reindex and it is slowly walking up - 892349 now
13:12
<
paveljanik >
happily requesting blocks, getdata...
13:16
<
paveljanik >
Strange. Have to leave now :-(
14:23
<
GitHub162 >
bitcoin/0.13 c6a6291 instagibbs: add witness address to address book...
14:23
<
GitHub162 >
bitcoin/0.13 733760a BtcDrak: Update btcdrak signing key...
14:23
<
GitHub162 >
bitcoin/0.13 3606b6b instagibbs: Update p2p-segwit.py to reflect correct AskFor behavior...
14:35
<
wumpus >
yes, I'm working on a new pull for the remaining ones
14:38
<
wumpus >
isn't #8418 needed in 0.13.1 as well?
14:38
<
wumpus >
otherwise some recent pulls become harder to backport as they all make changes in those tests
14:39
<
sipa >
i don't think it ever hurts to backport tests
14:39
<
sipa >
it just may mean more work
14:39
<
wumpus >
well it hurts if the functionality tested doesn't exist
14:39
<
wumpus >
but compactblocks does, right?
14:40
<
sipa >
compact blocks is in 0.13
14:45
<
wumpus >
seems #8418 applies without any changes to 0.13 (though haven't actually run the tests yet)
14:48
<
wumpus >
another thing is, #8739 was tagged for 0.13.1, that makes no sense at all without #8418
14:48
<
sdaftuar >
wumpus: it should! i actually thought it was already merged in 0.13
14:48
<
sdaftuar >
sorry about that confusion with 8739
14:48
<
wumpus >
no problem, fixing it now
16:37
<
paveljanik >
the third sync on testnet was OK. Strange.
16:37
<
paveljanik >
slow, but ok
20:17
<
paveljanik >
MarcoFalke, can you please check #8808 for the same binaries now? I reverted one hunk (trivial one though 8) which cause me problems here and now travis is OK.
20:18
<
MarcoFalke >
I think I did 20 minutes ago and it didn't match
20:28
<
GitHub18 >
bitcoin/master c9ce17b Derek Miller: Trivial: Grammar and capitalization
20:28
<
GitHub18 >
bitcoin/master 2f71490 MarcoFalke: Merge #8805: Trivial: Grammar and capitalization...
22:12
<
achow101 >
is there a way to disable segwit activation on regtest?
22:25
<
gmaxwell >
achow101: change the dates in the chainparams.
22:25
<
achow101 >
I guess that's one way to do it..
22:35
<
sipa >
achow101: use a miner that doesn't support segwit :)