1 2017-10-11T00:00:32  *** Belxjander has quit IRC
  2 2017-10-11T00:02:33  *** Belxjander has joined #bitcoin-dev
  3 2017-10-11T00:10:34  *** jb55 has quit IRC
  4 2017-10-11T00:11:52  *** VIctorsueca has quit IRC
  5 2017-10-11T00:14:11  *** Victorsueca has joined #bitcoin-dev
  6 2017-10-11T00:28:38  *** Victorsueca has quit IRC
  7 2017-10-11T00:29:47  *** Victorsueca has joined #bitcoin-dev
  8 2017-10-11T00:40:35  *** parco has left #bitcoin-dev
  9 2017-10-11T00:51:32  *** Belxjander has quit IRC
 10 2017-10-11T00:52:06  *** Belxjander has joined #bitcoin-dev
 11 2017-10-11T00:55:29  *** DTZUZO has quit IRC
 12 2017-10-11T01:00:21  *** dabura667 has joined #bitcoin-dev
 13 2017-10-11T01:04:35  *** dabura667 has quit IRC
 14 2017-10-11T01:05:48  *** dabura667 has joined #bitcoin-dev
 15 2017-10-11T01:16:25  *** wxss has quit IRC
 16 2017-10-11T01:23:36  *** impulse has quit IRC
 17 2017-10-11T01:26:12  *** jb55 has joined #bitcoin-dev
 18 2017-10-11T01:50:47  *** Belxjander has quit IRC
 19 2017-10-11T01:51:13  *** Belxjander has joined #bitcoin-dev
 20 2017-10-11T01:55:20  *** Agro has quit IRC
 21 2017-10-11T02:05:54  *** airbreather has quit IRC
 22 2017-10-11T02:13:11  *** one_zero has quit IRC
 23 2017-10-11T02:16:39  *** DTZUZO has joined #bitcoin-dev
 24 2017-10-11T02:23:39  *** iv3c has quit IRC
 25 2017-10-11T02:23:58  *** iv3c has joined #bitcoin-dev
 26 2017-10-11T02:43:34  *** kindoge has quit IRC
 27 2017-10-11T02:44:34  *** subo has joined #bitcoin-dev
 28 2017-10-11T02:46:12  *** kindoge has joined #bitcoin-dev
 29 2017-10-11T02:48:35  *** subo_ has quit IRC
 30 2017-10-11T03:00:34  *** meLon has quit IRC
 31 2017-10-11T03:03:48  *** meLon has joined #bitcoin-dev
 32 2017-10-11T03:40:17  *** Belxjander has quit IRC
 33 2017-10-11T03:41:10  *** sdfgsdfg has quit IRC
 34 2017-10-11T03:45:30  *** Belxjander has joined #bitcoin-dev
 35 2017-10-11T04:05:05  *** Belxjander has quit IRC
 36 2017-10-11T04:06:08  *** TheSeven has quit IRC
 37 2017-10-11T04:06:32  *** TheSeven has joined #bitcoin-dev
 38 2017-10-11T04:11:35  *** Belxjander has joined #bitcoin-dev
 39 2017-10-11T04:15:05  *** iv3c has quit IRC
 40 2017-10-11T04:15:08  *** arubi has quit IRC
 41 2017-10-11T04:20:26  *** arubi has joined #bitcoin-dev
 42 2017-10-11T04:27:32  *** TheSeven has quit IRC
 43 2017-10-11T04:27:44  *** [7] has joined #bitcoin-dev
 44 2017-10-11T04:31:28  *** Belxjander has quit IRC
 45 2017-10-11T04:33:22  *** Belxjander has joined #bitcoin-dev
 46 2017-10-11T04:37:51  *** chjj has quit IRC
 47 2017-10-11T04:49:21  *** Belxjander has quit IRC
 48 2017-10-11T04:51:23  *** Belxjander has joined #bitcoin-dev
 49 2017-10-11T05:21:36  *** DTZUZO has quit IRC
 50 2017-10-11T05:22:01  *** impulse has joined #bitcoin-dev
 51 2017-10-11T05:24:02  *** DTZUZO has joined #bitcoin-dev
 52 2017-10-11T05:32:27  *** impulse has quit IRC
 53 2017-10-11T05:36:05  *** Belxjander has quit IRC
 54 2017-10-11T05:38:57  *** Belxjander has joined #bitcoin-dev
 55 2017-10-11T06:06:05  *** Belxjander has quit IRC
 56 2017-10-11T06:07:30  *** Belxjander has joined #bitcoin-dev
 57 2017-10-11T06:16:19  *** Giszmo has quit IRC
 58 2017-10-11T06:27:21  *** POJO has joined #bitcoin-dev
 59 2017-10-11T06:50:13  *** BashCo has quit IRC
 60 2017-10-11T06:59:59  *** czaanja_ has joined #bitcoin-dev
 61 2017-10-11T07:04:08  *** Mottengrotte has joined #bitcoin-dev
 62 2017-10-11T07:08:49  *** BashCo has joined #bitcoin-dev
 63 2017-10-11T07:10:23  *** POJO has quit IRC
 64 2017-10-11T07:10:24  *** one_zero has joined #bitcoin-dev
 65 2017-10-11T07:15:42  *** Belxjander has quit IRC
 66 2017-10-11T07:17:21  *** jb55 has quit IRC
 67 2017-10-11T07:19:47  *** ongolaBoy has joined #bitcoin-dev
 68 2017-10-11T07:21:41  *** Belxjander has joined #bitcoin-dev
 69 2017-10-11T07:27:29  *** one_zero has quit IRC
 70 2017-10-11T07:28:21  *** Mottengrotte has quit IRC
 71 2017-10-11T07:40:25  *** dakk has joined #bitcoin-dev
 72 2017-10-11T07:50:29  *** Mottengrotte has joined #bitcoin-dev
 73 2017-10-11T08:03:13  *** JackH has quit IRC
 74 2017-10-11T08:10:36  *** sdfgsdfg has joined #bitcoin-dev
 75 2017-10-11T08:14:26  *** jvanakker has joined #bitcoin-dev
 76 2017-10-11T08:14:57  *** nazarewk has joined #bitcoin-dev
 77 2017-10-11T08:27:53  *** one_zero has joined #bitcoin-dev
 78 2017-10-11T08:35:29  *** nbischof has joined #bitcoin-dev
 79 2017-10-11T08:51:44  *** Belxjander has quit IRC
 80 2017-10-11T08:53:40  *** Belxjander has joined #bitcoin-dev
 81 2017-10-11T08:54:23  *** CheckDavid has quit IRC
 82 2017-10-11T09:00:08  *** one_zero has quit IRC
 83 2017-10-11T09:00:35  *** Belxjander has quit IRC
 84 2017-10-11T09:07:32  *** Belxjander has joined #bitcoin-dev
 85 2017-10-11T09:32:36  *** cioran89 has joined #bitcoin-dev
 86 2017-10-11T09:46:08  *** Belxjander has quit IRC
 87 2017-10-11T09:48:44  *** Belxjander has joined #bitcoin-dev
 88 2017-10-11T09:49:19  *** ongolaBoy has quit IRC
 89 2017-10-11T09:51:08  *** ongolaBoy has joined #bitcoin-dev
 90 2017-10-11T10:04:41  *** Belxjander has quit IRC
 91 2017-10-11T10:06:45  *** Belxjander has joined #bitcoin-dev
 92 2017-10-11T10:11:05  *** dabura667 has quit IRC
 93 2017-10-11T10:11:25  *** matsjj has joined #bitcoin-dev
 94 2017-10-11T10:14:26  *** cioran89 has quit IRC
 95 2017-10-11T10:17:43  *** maks25 has joined #bitcoin-dev
 96 2017-10-11T10:18:31  <maks25> Hi! I’m confused about the inner workings of bitcoin. As far as I understand: Transactions are chained together by hashing the PublicKey(of the Receiver) and the previous transaction, and then signing it with the PrivateKey(of the Sender). My question is, does each transaction also include the unhashed data? If not, how do we know how many coins are being transferred since all the values are hashed?
 97 2017-10-11T10:26:31  <matsjj> Hello, I'm currently working on replay protection. I was always under the impression that a defined SIGHASH type is consensus-critical. Reading the code (and getting some feedback from apoelstra), it seems like SIGHASH_ALL is the default, and any value thats not SIGHASH_SINGLE/SIGHASH_NONE will implicitly default to SIGHASH_ALL. (Bonus: Wouldn't this allow a miner to change txhash of all signatures, since any SIGHASH would b
 98 2017-10-11T10:26:32  <matsjj> e valid?)
 99 2017-10-11T10:29:47  *** dustinm has quit IRC
100 2017-10-11T10:30:49  <arubi> matsjj, the sighash type are 4 bytes that are signed as part of the whole sighash
101 2017-10-11T10:31:17  <arubi> the relayed tx has only one byte sighash type in it.  if it's unknown, it's treated as ALL afaik
102 2017-10-11T10:31:31  *** dustinm has joined #bitcoin-dev
103 2017-10-11T10:31:33  <arubi> but still changing it around (or the other 3 bytes that aren't relayed) is invaliding the sig
104 2017-10-11T10:31:52  <arubi> the cleanest replay protection is flipping a sighash type bit that is >7
105 2017-10-11T10:32:25  <arubi> that way you can both keep the ALL, NONE, etc.  stuff the same, and not risk replays defaulting to ALL
106 2017-10-11T10:32:45  <arubi> (since there is no way for the other fork to know about the flipped bit at bit >7)
107 2017-10-11T10:33:31  <matsjj> I see! Yea this makes sense, otherwise anyone could just change it to SIGHASH_NONE and change the outputs
108 2017-10-11T10:33:58  <matsjj> Thanks, very helpful!
109 2017-10-11T10:34:01  <arubi> yw
110 2017-10-11T10:37:11  <arubi> maks25, can you rephrase?  what unsigned data?
111 2017-10-11T10:37:21  <arubi> err, unhashed data
112 2017-10-11T10:38:41  *** ongolaBoy has quit IRC
113 2017-10-11T10:38:46  *** Belxjander has quit IRC
114 2017-10-11T10:40:35  *** ongolaBoy has joined #bitcoin-dev
115 2017-10-11T10:40:48  *** Belxjander has joined #bitcoin-dev
116 2017-10-11T10:41:05  <maks25> arubi: I’m just a bit confused about what data is contained within a transaction that miners need in order to verify it. After reading the nakamoto whitepaper I was under the impression that the transaction data within a block is all hashed, wondering if it also contains unhashed data on the transactions.
117 2017-10-11T10:41:21  *** mmgen has joined #bitcoin-dev
118 2017-10-11T10:41:47  <arubi> a transaction appears in full
119 2017-10-11T10:42:18  <maks25> arubi: great
120 2017-10-11T10:42:20  <arubi> it contains the hash of the input transaction that it's spending, so to validate it you'll have to look at that previous input
121 2017-10-11T10:42:35  <maks25> arubi: that makes sense
122 2017-10-11T10:44:33  <esotericnonsense> maks25: consider also that the encoding of the block doesn't matter all that much providing you have the data to back it
123 2017-10-11T10:44:51  <esotericnonsense> maks25: i'd have to read up to refresh my memory, but i believe compact block transfer essentially uses that
124 2017-10-11T10:45:38  <esotericnonsense> maks25: e.g. if you already have a bunch of transactions that exist in a new block you see, then you don't need to redownload them all, you just need the hashes included in that block (if you already have all the transactions in your mempool)
125 2017-10-11T10:46:01  <esotericnonsense> (and the ordering of the hashes)
126 2017-10-11T10:46:21  <maks25> esotericnonsense: Yea that makes sense given that you can validate them just by their hashes
127 2017-10-11T10:46:58  <esotericnonsense> well no, you need the full transaction to validate the tx, but if you have a prevalidated tx you just need to know whether or not it is included in the merkle tree and where
128 2017-10-11T10:50:21  * esotericnonsense away
129 2017-10-11T10:55:15  *** Chris_Stewart_5 has joined #bitcoin-dev
130 2017-10-11T10:56:41  *** Belxjander has quit IRC
131 2017-10-11T10:56:54  <maks25> esotericnonsense: And then just check that the Merkle root matches the one in the block..am I getting that right?
132 2017-10-11T11:01:16  *** ongolaBoy has quit IRC
133 2017-10-11T11:02:38  *** Belxjander has joined #bitcoin-dev
134 2017-10-11T11:03:27  *** MarcoPolio has quit IRC
135 2017-10-11T11:19:52  <esotericnonsense> yeah
136 2017-10-11T11:20:30  <esotericnonsense> for example if I know that you already have all transactions I can just send you the block header plus the ordering of the leaves (hashes) in the merkle tree
137 2017-10-11T11:20:38  <esotericnonsense> and from that you can construct a block
138 2017-10-11T11:21:07  <esotericnonsense> well, I'd have to send you the coinbase tx (because you probably wouldn't have that), and any transactions that the miner knew about that you didn't
139 2017-10-11T11:33:27  <maks25> esotericnonsense: any in-depth readings you would recommend?
140 2017-10-11T11:34:12  <maks25> I’ve probably spent over a week on researching Bitcoin and also Ethereum, but the majority of the stuff I am finding is very broad. (I did read both the white papers though)
141 2017-10-11T11:38:30  *** ongolaBoy has joined #bitcoin-dev
142 2017-10-11T11:44:28  *** POJO has joined #bitcoin-dev
143 2017-10-11T11:50:17  *** nbischof has quit IRC
144 2017-10-11T12:01:13  *** damons is now known as damons_is_away
145 2017-10-11T12:02:04  *** wxss has joined #bitcoin-dev
146 2017-10-11T12:02:51  *** Cogito_Ergo_Sum has joined #bitcoin-dev
147 2017-10-11T12:02:55  *** Mottengrotte has quit IRC
148 2017-10-11T12:07:14  *** Mottengrotte has joined #bitcoin-dev
149 2017-10-11T12:07:54  *** Mottengrotte has joined #bitcoin-dev
150 2017-10-11T12:08:43  *** fatalhalt has quit IRC
151 2017-10-11T12:14:55  *** POJO has quit IRC
152 2017-10-11T12:28:16  *** SopaXorzTaker has joined #bitcoin-dev
153 2017-10-11T12:46:48  *** CadelLeeStormer has joined #bitcoin-dev
154 2017-10-11T12:47:21  *** alferz has joined #bitcoin-dev
155 2017-10-11T12:47:36  *** chjj has joined #bitcoin-dev
156 2017-10-11T12:54:34  <CadelLeeStormer> I have a small question regarding nLockTime transactions... If for example today i create such a transaction that cannot be accepted into a block before a year. If i propagate it now to the network. Would it be dropped by nodes or kept by them ?
157 2017-10-11T12:57:19  <GAit> CadelLeeStormer: it won't propagate or even be accepted by your own node
158 2017-10-11T12:58:41  *** alferz has quit IRC
159 2017-10-11T13:00:43  *** MarcoPolio has joined #bitcoin-dev
160 2017-10-11T13:00:53  *** Beef has quit IRC
161 2017-10-11T13:01:19  <CadelLeeStormer> Thanks.
162 2017-10-11T13:03:31  *** agricocb has quit IRC
163 2017-10-11T13:03:55  *** SopaXorzTaker has quit IRC
164 2017-10-11T13:05:38  *** Beef has joined #bitcoin-dev
165 2017-10-11T13:08:24  *** CadelLeeStormer has quit IRC
166 2017-10-11T13:08:41  *** coin_trader has quit IRC
167 2017-10-11T13:09:25  *** coin_trader has joined #bitcoin-dev
168 2017-10-11T13:26:55  *** dabura667 has joined #bitcoin-dev
169 2017-10-11T13:27:59  *** agricocb has joined #bitcoin-dev
170 2017-10-11T13:28:10  *** agricocb has quit IRC
171 2017-10-11T13:29:27  *** agricocb has joined #bitcoin-dev
172 2017-10-11T13:30:02  *** mmgen has quit IRC
173 2017-10-11T13:30:15  *** mmgen has joined #bitcoin-dev
174 2017-10-11T13:31:09  *** arooni has quit IRC
175 2017-10-11T13:42:03  *** dabura667 has quit IRC
176 2017-10-11T13:44:05  *** arooni has joined #bitcoin-dev
177 2017-10-11T13:45:05  *** meshcollider has quit IRC
178 2017-10-11T13:51:58  *** chjj has quit IRC
179 2017-10-11T13:55:04  *** SopaXorzTaker has joined #bitcoin-dev
180 2017-10-11T14:00:27  *** Giszmo has joined #bitcoin-dev
181 2017-10-11T14:01:52  *** bugs_ has joined #bitcoin-dev
182 2017-10-11T14:12:50  *** maks25 has quit IRC
183 2017-10-11T14:20:33  <ghost43> do minikeys have compressed or uncompressed pubkeys? or is it ambiguous?
184 2017-10-11T14:36:34  *** maks25 has joined #bitcoin-dev
185 2017-10-11T14:38:03  *** the-d0c-is-in has joined #bitcoin-dev
186 2017-10-11T14:41:23  *** sdfgsdfg_ has joined #bitcoin-dev
187 2017-10-11T14:41:27  *** the-d0c-is-in has joined #bitcoin-dev
188 2017-10-11T14:42:39  *** the-d0c-is-in has quit IRC
189 2017-10-11T14:43:35  *** sdfgsdfg has quit IRC
190 2017-10-11T14:45:57  *** POJO has joined #bitcoin-dev
191 2017-10-11T14:46:41  *** the-d0c-is-in has joined #bitcoin-dev
192 2017-10-11T14:47:34  *** maks25 has quit IRC
193 2017-10-11T14:48:33  *** sdfgsdfg_ has quit IRC
194 2017-10-11T14:49:47  *** sdfgsdfg_ has joined #bitcoin-dev
195 2017-10-11T14:50:50  *** the-d0c-is-in has quit IRC
196 2017-10-11T14:52:45  *** iv3c has joined #bitcoin-dev
197 2017-10-11T14:53:18  *** the-d0c-is-in has joined #bitcoin-dev
198 2017-10-11T14:58:33  <wxss> ghost43: AFAICT the only specification I can find (https://en.bitcoin.it/wiki/Mini_private_key_format) doesn't mention that. It only defines how you derive the minikey from a private key.
199 2017-10-11T14:59:04  <ghost43> great....... :P thanks
200 2017-10-11T14:59:08  <wxss> You can then use that private key to either create a compressed or uncompressed pubkey
201 2017-10-11T14:59:45  <wxss> Buit maybe someone else knows about a better (more complete) specification of minikeys
202 2017-10-11T15:00:40  <ghost43> well obviously. you can create all kinds of scriptPubKeys and addresses from a private key. but apps can't be expected to look up and monitor all of them. one could use a minikey to create a native p2wpkh address..
203 2017-10-11T15:01:13  <wxss> exactly, so the specification is incomplete.
204 2017-10-11T15:02:27  *** sdfgsdfg_ has quit IRC
205 2017-10-11T15:11:57  *** jb55 has joined #bitcoin-dev
206 2017-10-11T15:16:44  *** meLon has quit IRC
207 2017-10-11T15:16:59  *** meLon has joined #bitcoin-dev
208 2017-10-11T15:17:53  *** jb55 has quit IRC
209 2017-10-11T15:27:46  *** wraithm has joined #bitcoin-dev
210 2017-10-11T15:28:15  *** wraithm has quit IRC
211 2017-10-11T15:28:45  *** wraithm has joined #bitcoin-dev
212 2017-10-11T15:29:05  *** SopaXT has joined #bitcoin-dev
213 2017-10-11T15:29:12  *** wraithm has quit IRC
214 2017-10-11T15:30:00  *** wraithm has joined #bitcoin-dev
215 2017-10-11T15:30:01  *** SopaXT has quit IRC
216 2017-10-11T15:36:11  <matsjj> @arubi Out of curiousity - does that mean Bitcoin Cash is just policy protected? It looks like they just used a different SIGHASH, without changing any of the other bits when preparing the SignatureHash?
217 2017-10-11T15:36:13  <matsjj> See https://github.com/Bitcoin-ABC/bitcoin-abc/blob/d46be71cdae64b50207a78b2804968f919cac408/src/script/interpreter.h#L26
218 2017-10-11T15:38:27  <arubi> matsjj, they changed the entire signature scheme.  they're using bip143 for all transactions, and don't have segwit scriptpubkeys at all
219 2017-10-11T15:38:52  <arubi> so even if the client could parse and try to check the sig, it would still be way wrong because the incorrect scheme is applied
220 2017-10-11T15:39:42  <matsjj> Ah I see, I guess there are no segwit outputs that could be consumed that way in their chain
221 2017-10-11T15:40:22  <arubi> you could send to a segwit program, but that would just be anyone-can-spend script with no further soft fork rules for checksigs
222 2017-10-11T15:41:27  *** damons_is_away is now known as damons
223 2017-10-11T15:44:03  <arubi> matsjj, one comment I wanted to make on your PR, now with segwit live, there's a weird edge case that can happen when only using sighash bytes for replay protection
224 2017-10-11T15:45:33  <arubi> say I have funds in a segwit output A, I can create a replay protected tx to B on the s2x chain, then after a while create a sighash ALL tx from the same A to the same B on the bitcoin chain and still retain the same txid
225 2017-10-11T15:46:36  *** dviola has joined #bitcoin-dev
226 2017-10-11T15:46:55  <arubi> this isn't actually replay, but might cause problems for services
227 2017-10-11T15:47:06  <matsjj> Oh of course! It is indeed an edge case, as the transaction on the bitcoin chain would need the new sighash too (which is non-standard)
228 2017-10-11T15:47:15  <matsjj> But an interesting one
229 2017-10-11T15:47:24  <arubi> no what I mean s
230 2017-10-11T15:47:25  <arubi> is*
231 2017-10-11T15:47:50  <matsjj> Oh you are right, since the signature (and sighash type) is no longer part of the txhash
232 2017-10-11T15:47:52  <arubi> it's because signatures are not part of the txid anymore.  for non segwit outputs this isn't true because a different bit in the first byte will change the txid
233 2017-10-11T15:47:57  <arubi> right
234 2017-10-11T15:48:22  <matsjj> So while there is no risk of replay YET, they also cannot be considered _split_ yet.
235 2017-10-11T15:48:50  <arubi> yea it's a very weird state.  essentially the same transaction
236 2017-10-11T15:48:55  <matsjj> Since the exact same outputs live on both chains
237 2017-10-11T15:49:26  <arubi> the only clean place to flip another bit is the transaction version
238 2017-10-11T15:49:38  <arubi> but it has to be one of the invalid bits else I can still do that on both chains
239 2017-10-11T15:50:09  <matsjj> Funny. Thats certainly something to keep in mind when it comes to writing an actual specification for this, for who ever wants to build on top of this.
240 2017-10-11T15:50:17  <matsjj> I was looking into that too - which bits are actually invalid?
241 2017-10-11T15:50:37  *** Chris_Stewart_5 has quit IRC
242 2017-10-11T15:50:42  <arubi> hmm, good question, my guess is anything which will make it negative (if it can be even heh)
243 2017-10-11T15:51:00  <arubi> but there's got to be such a bit
244 2017-10-11T16:03:27  *** Mottengrotte has quit IRC
245 2017-10-11T16:07:58  <arubi> matsjj, s/the only place/the only other place/
246 2017-10-11T16:08:18  <arubi> because really if you flip an invalid bit in the version, then you're done.  no need for elaborate sighash bytes anymore
247 2017-10-11T16:10:08  *** nazarewk has quit IRC
248 2017-10-11T16:14:39  *** jb55 has joined #bitcoin-dev
249 2017-10-11T16:17:57  *** BashCo has quit IRC
250 2017-10-11T16:18:32  *** BashCo has joined #bitcoin-dev
251 2017-10-11T16:21:31  <grubles> i'm going to take another stab at gitian building
252 2017-10-11T16:21:39  <grubles> this time with virtualbox
253 2017-10-11T16:21:49  <arubi> what did you try before?  lxc right?
254 2017-10-11T16:22:21  <grubles> yeah
255 2017-10-11T16:22:35  *** BashCo has quit IRC
256 2017-10-11T16:23:13  <arubi> was looking into the docker thing in the gitian doc, but seems like it's from 2015, using debian wheezy.. probably too old for current builds
257 2017-10-11T16:26:37  <grubles> yeah i've tried using docker previously too
258 2017-10-11T16:26:41  <grubles> a few months ago
259 2017-10-11T16:26:50  <grubles> the virtualbox guide uses wheezy too
260 2017-10-11T16:26:52  <grubles> er no
261 2017-10-11T16:26:53  <grubles> jessie
262 2017-10-11T16:29:08  *** iv3c has quit IRC
263 2017-10-11T16:29:56  *** iv3c has joined #bitcoin-dev
264 2017-10-11T16:31:43  *** cybrNaut has quit IRC
265 2017-10-11T16:34:57  <grubles> wait i think the virtualbox route uses lxc too...
266 2017-10-11T16:35:07  <arubi> probably eventually
267 2017-10-11T16:39:42  *** Provoostenator has joined #bitcoin-dev
268 2017-10-11T16:42:20  *** cybrNaut has joined #bitcoin-dev
269 2017-10-11T16:42:38  *** Chris_Stewart_5 has joined #bitcoin-dev
270 2017-10-11T16:45:41  <matsjj> arubi: I'm not sure wrt nVersion. in bitcoinJ and BitcoinJS it's deserialising an UNsigned 32bit, while the bitcoin wiki states that this is a signed 32bit.
271 2017-10-11T16:46:35  *** Belxjander has quit IRC
272 2017-10-11T16:47:28  <matsjj> Also I think if we are to mess with it in a way that bitcoin-core sees it as invalid, there's a fair chance other receiving wallets would perceive it as broken too. That was the _good_ part about using SigHash, as lite clients normally don't look at the signature.
273 2017-10-11T16:48:12  <wumpus> in bitcoin core nVersion is signed
274 2017-10-11T16:48:14  <arubi> there's no other way that I can think of to fix the edge case when segwit is active
275 2017-10-11T16:50:25  <matsjj> wumpus, oh, byte representations are the same until the last bit. So flipping the topmost bit would render the transaction invalid in bitcoin-core, is that correct?
276 2017-10-11T16:50:52  *** Provoostenator has quit IRC
277 2017-10-11T16:51:30  *** Belxjander has joined #bitcoin-dev
278 2017-10-11T16:53:46  *** one_zero has joined #bitcoin-dev
279 2017-10-11T17:03:01  *** Belxjander has quit IRC
280 2017-10-11T17:04:50  *** BashCo has joined #bitcoin-dev
281 2017-10-11T17:05:37  <matsjj> Ah doesn't look like this is actually enforced anywhere
282 2017-10-11T17:05:46  *** Belxjander has joined #bitcoin-dev
283 2017-10-11T17:06:54  <arubi> matsjj, I'm pretty sure that a negative version is invalid
284 2017-10-11T17:09:59  *** abpa has joined #bitcoin-dev
285 2017-10-11T17:11:26  *** ongolaBoy has quit IRC
286 2017-10-11T17:21:00  <phantomcircuit> arubi, they're not
287 2017-10-11T17:21:04  <phantomcircuit> just non-standard
288 2017-10-11T17:21:08  <matsjj> arubi, so far I've only found that negative block numbers are disallowed (since BIP 34)
289 2017-10-11T17:21:24  <phantomcircuit> there's transactions with negative versions in the chain
290 2017-10-11T17:21:42  <arubi> oh really, that's a good bit of trivia
291 2017-10-11T17:23:36  <matsjj> Ah indeed. https://blockchain.info/rawtx/35e79ee733fad376e76d16d1f10088273c2f4c2eaba1374a837378a88e530005 if you ever need to prove it to someone
292 2017-10-11T17:24:28  <arubi> not bad :)
293 2017-10-11T17:25:07  *** cybrNaut has quit IRC
294 2017-10-11T17:36:50  *** cybrNaut has joined #bitcoin-dev
295 2017-10-11T17:37:54  *** the-d0c-is-in has quit IRC
296 2017-10-11T17:38:20  *** cybrNaut has joined #bitcoin-dev
297 2017-10-11T17:39:22  *** cybrNaut has joined #bitcoin-dev
298 2017-10-11T17:45:21  *** cybrNaut has joined #bitcoin-dev
299 2017-10-11T17:46:13  <grubles> ok yeah there's definitely something up with my networking
300 2017-10-11T17:46:27  <grubles> because there is a -dev discussion from 2015 about the same issue
301 2017-10-11T17:46:28  <arubi> it's dns isn't it
302 2017-10-11T17:47:14  <grubles> not sure
303 2017-10-11T17:47:24  <grubles> i can ping 10.0.2.2 from the gitian-builder VM
304 2017-10-11T17:47:57  <arubi> so it's just that apt-cacher-ng isn't running there
305 2017-10-11T17:48:00  <grubles> of course the logs end prematurely
306 2017-10-11T17:48:07  <arubi> at that destination that is
307 2017-10-11T17:48:33  *** LeMiner has joined #bitcoin-dev
308 2017-10-11T17:49:13  <grubles> it seems
309 2017-10-11T17:49:18  <grubles> that should be running on the host, right?
310 2017-10-11T17:49:58  <arubi> whatever host has the interface with the 10.0.2.2 ip
311 2017-10-11T17:50:39  <arubi> usually it's something that runs on its own container
312 2017-10-11T17:51:03  <arubi> but I'm not sure about how gitian expects it
313 2017-10-11T17:51:08  *** alferz has joined #bitcoin-dev
314 2017-10-11T17:52:11  <grubles> i would assume the gitian host runs the cacher
315 2017-10-11T17:52:19  <grubles> and the container connects to the host
316 2017-10-11T17:52:56  <arubi> where can you pint 10.0.2.2 from?
317 2017-10-11T17:52:58  <arubi> s/ping
318 2017-10-11T17:53:07  *** abpa has quit IRC
319 2017-10-11T17:53:07  <grubles> the debian gitian host
320 2017-10-11T17:53:30  <arubi> ah, and does `sudo ifconfig -a` says something about an interface with that ip?
321 2017-10-11T17:54:14  <grubles> nope
322 2017-10-11T17:54:31  <grubles> br0 is on 10.0.3.2
323 2017-10-11T17:54:35  *** jb55 has quit IRC
324 2017-10-11T17:54:35  <grubles> eth0 is on 10.0.2.15
325 2017-10-11T17:55:22  <grubles> so i'm not even sure what has 10.0.2.2 ....
326 2017-10-11T17:55:43  <arubi> can you try `sudo netstat -tulpan | grep '10.0.2.2'`
327 2017-10-11T17:56:05  <arubi> ssh into it?  see if it accepts the same credentials as the host..
328 2017-10-11T17:56:30  <grubles> ah i can ssh in
329 2017-10-11T17:56:38  <arubi> hostname?
330 2017-10-11T17:56:51  <grubles> "debian"
331 2017-10-11T17:56:58  <grubles> same as host
332 2017-10-11T17:57:06  <arubi> `which apt-cacher-ng` returns anything?
333 2017-10-11T17:57:15  <grubles> no
334 2017-10-11T17:57:25  <arubi> try the netstat again from within the ssh
335 2017-10-11T17:57:52  <arubi> or I guess the ifconfig will return the same output if it's the same system
336 2017-10-11T17:58:10  <arubi> lots of ways to know, create a file in /tmp :)
337 2017-10-11T17:58:20  <grubles> yeah same ifconfig output
338 2017-10-11T17:58:54  <arubi> alright, you could try to install and run apt-cacher-ng on the host then, or make it route 10.0.2.2 to some debian mirror maybe?
339 2017-10-11T17:59:35  <grubles> hm it's already installed
340 2017-10-11T17:59:52  <arubi> huh, so just not in your path
341 2017-10-11T18:00:01  *** alferz has quit IRC
342 2017-10-11T18:00:01  <arubi> `sudo which apt-cacher-ng` ?
343 2017-10-11T18:00:14  <arubi> or `sudo /etc/init.d/apt-cacher-ng status`
344 2017-10-11T18:00:15  <grubles>  /usr/sbin/apt-cacher-ng
345 2017-10-11T18:00:21  <grubles> ah yea
346 2017-10-11T18:00:30  <arubi> `sudo /etc/init.d/apt-cacher-ng start` probably :)
347 2017-10-11T18:00:36  <grubles> it's running
348 2017-10-11T18:01:13  <arubi> I'm trying to remember if there was some stuff I had to do to make it run (was unrelated..)
349 2017-10-11T18:01:40  <arubi> I can't remember anything specific.  iirc it was upping a container with the service running, then other containers just fetch stuff from it
350 2017-10-11T18:02:06  <arubi> can you `apt-get update` on the host without errors?
351 2017-10-11T18:02:39  <grubles> maybe i have to specify which address to bind to in /etc/apt-cacher-ng/acng.conf
352 2017-10-11T18:02:54  <grubles> yea apt-get update works
353 2017-10-11T18:03:16  <arubi> it looks like binding to the address is correct, the guest expects this ip
354 2017-10-11T18:04:28  <arubi> some elaborate test you can try is to point your host's sources.list file to your own apt-cacher-ng's ip and try to apt-get update again
355 2017-10-11T18:04:44  <arubi> if that succeeds, then the service is running correctly at least
356 2017-10-11T18:05:10  *** chjj has joined #bitcoin-dev
357 2017-10-11T18:11:01  *** chjj has quit IRC
358 2017-10-11T18:11:54  <grubles> hm couldn't bind to socket: cannot ssign requested address
359 2017-10-11T18:11:57  <grubles> assign, rather
360 2017-10-11T18:12:20  *** jb55 has joined #bitcoin-dev
361 2017-10-11T18:12:23  <arubi> where's that from?
362 2017-10-11T18:12:47  <grubles>  /etc/init.d/apt-cacher-ng status
363 2017-10-11T18:15:06  <grubles> after i added BindAddress: localhost 10.0.2.2 to acng.conf
364 2017-10-11T18:17:29  <arubi> did you restart it first?
365 2017-10-11T18:17:47  <grubles> yes
366 2017-10-11T18:18:16  <arubi> wait why call that address localhost?
367 2017-10-11T18:18:22  <arubi> call it debian or whatever
368 2017-10-11T18:18:34  <arubi> localhost is 127.x.x.x stuff
369 2017-10-11T18:19:20  <arubi> did you try the netstat command before you edited acng.conf actually?
370 2017-10-11T18:19:38  <arubi> I'm interested if it was already running there or not.  something did respond to ping
371 2017-10-11T18:21:27  <grubles> doesn't seem to be running when ssh'd into 10.0.2.2
372 2017-10-11T18:21:30  <grubles> based on the netstat
373 2017-10-11T18:23:20  <arubi> netstat just shows port 22 then?
374 2017-10-11T18:23:36  <grubles> yeah 22 and 22222
375 2017-10-11T18:24:15  <arubi> okay, can you revert what you did on acng.conf and instead try to set your host's 'sources.list' file to fetch from 10.0.2.2 ?
376 2017-10-11T18:24:29  <arubi> (and restart -ng so it's running again)
377 2017-10-11T18:25:08  <grubles> still unable to connect
378 2017-10-11T18:25:31  <arubi> oh so it wasn't running before either then?
379 2017-10-11T18:26:06  <grubles>  /etc/init.d/apt-cacher-ng status shows that it's running
380 2017-10-11T18:28:14  <arubi> and pointing your host's sources.list to 10.0.2.2 now fails apt-get update?
381 2017-10-11T18:29:07  <grubles> right
382 2017-10-11T18:30:39  <arubi> does the apt-cacher service have a log file in /var/log maybe?
383 2017-10-11T18:30:48  <arubi> or probably it's documented somewhere
384 2017-10-11T18:32:04  <grubles> yeah in /var/log/apt-cacher-ng/apt-cacher.log
385 2017-10-11T18:32:26  <grubles> looks like it's cached the ubuntu packages
386 2017-10-11T18:32:31  <grubles> from the base-vm
387 2017-10-11T18:33:45  <arubi> which port is it supposed to be running on?
388 2017-10-11T18:33:57  <arubi> try `netstat -tulpan | grep <port>`..
389 2017-10-11T18:34:08  <grubles> 3142
390 2017-10-11T18:34:33  <grubles> looks like it's bound to 0.0.0.0
391 2017-10-11T18:34:37  <grubles> hm
392 2017-10-11T18:34:39  <arubi> great..
393 2017-10-11T18:35:19  <arubi> try to set your sources.list to localhost instead of that ip and update
394 2017-10-11T18:36:38  <arubi> maybe something is routing 10.0.2.2 to localhost for some traffic but not all?  very weird
395 2017-10-11T18:37:00  <grubles> yeah i can't find any documentation on it
396 2017-10-11T18:37:07  <grubles> setting to localhost fails to
397 2017-10-11T18:37:39  *** Guyver2 has joined #bitcoin-dev
398 2017-10-11T18:37:43  <arubi> does `netcat 10.0.2.2 3142` connect at all?
399 2017-10-11T18:38:32  <grubles> no
400 2017-10-11T18:38:53  <arubi> do you have the pid of the process bound to 0.0.0.0 on that port?
401 2017-10-11T18:39:01  <arubi> should be on that netstat line
402 2017-10-11T18:39:09  <grubles> 20463
403 2017-10-11T18:39:28  <arubi> `sudo kill -15 20463`
404 2017-10-11T18:39:54  <arubi> then `ps -p 20463` , see that it's gone
405 2017-10-11T18:40:19  <grubles> ok it's kliled
406 2017-10-11T18:40:22  <grubles> killed, rather
407 2017-10-11T18:40:29  <arubi> alright, try to sudo restart cacher-ng again
408 2017-10-11T18:40:40  <arubi> (clean .conf)
409 2017-10-11T18:41:02  <grubles> ok done
410 2017-10-11T18:41:17  <arubi> okay, netcat to 10.0.2.2 and its port, see if it connects
411 2017-10-11T18:41:55  <grubles> nope
412 2017-10-11T18:42:07  *** POJO has quit IRC
413 2017-10-11T18:42:20  <arubi> so it's just "connection refused" ?
414 2017-10-11T18:42:31  <grubles> correct
415 2017-10-11T18:42:57  <arubi> and I bet netstat shows it running and bound to 0.0.0.0 ?
416 2017-10-11T18:43:49  <grubles> yep!
417 2017-10-11T18:44:46  <arubi> I think we need to call a scientist
418 2017-10-11T18:44:56  <grubles> haha
419 2017-10-11T18:47:03  <bugs_> what about firewall
420 2017-10-11T18:53:30  <arubi> on the host VM?
421 2017-10-11T18:54:22  <arubi> if it's anything, it's between the host VM and the metal host.  I don't know much about qubes os
422 2017-10-11T18:55:52  <grubles> oh this isn't on qubes
423 2017-10-11T18:56:03  <grubles> it's on vanilla fedora 26
424 2017-10-11T18:56:41  <grubles> i figured there was some esoteric VM separation mechanism in qubes
425 2017-10-11T18:57:11  <grubles> well...of course there is...but i mean specifically for networking in this context
426 2017-10-11T18:59:32  <arubi> can you try, stop the apt-cacher service, then try to ssh from the host vm into 10.0.2.2 again
427 2017-10-11T19:00:09  <arubi> see if if 10.0.2.2 is the cacher's thing or some actual interface
428 2017-10-11T19:00:36  <Sentineo> maybe you need to use a netns? :)
429 2017-10-11T19:01:04  <grubles> ssh still works
430 2017-10-11T19:01:53  <arubi> maybe now you can create an ssh tunnel from 10.0.2.2:3142 to a debian repo's ip and port..
431 2017-10-11T19:02:14  <arubi> then when the guest tries it, it'll just be redirected?  it's all so weird :)
432 2017-10-11T19:02:31  <arubi> Sentineo, I guess he could if you could write the gitian docs for it :P
433 2017-10-11T19:03:13  *** wxss has quit IRC
434 2017-10-11T19:03:21  <arubi> it's so weird, it's running, it's on the correct port, it's listening to all interfaces..
435 2017-10-11T19:04:02  <grubles> where is it even specified to use the apt-cacher instead of just the actual repos
436 2017-10-11T19:04:07  <Sentineo> I am too lazy to scroll up what it is all about :)
437 2017-10-11T19:04:08  <grubles> and why
438 2017-10-11T19:04:16  <Sentineo> but sounds like a vm thing, container routing issue
439 2017-10-11T19:05:18  <arubi> probably so you could easily fix versions without them disappearing from the actual repos
440 2017-10-11T19:05:31  <grubles> makes sense
441 2017-10-11T19:05:36  *** wxss has joined #bitcoin-dev
442 2017-10-11T19:06:25  <arubi> is your network capable of ipv6 stuff?  mine isn't and I always disable it everywhere as a habit
443 2017-10-11T19:06:44  <arubi> (specifically apt-get often fails on new vms and stuff)
444 2017-10-11T19:06:47  <grubles> my local net is
445 2017-10-11T19:06:53  <grubles> but not supported by my isp
446 2017-10-11T19:07:14  <arubi> hm
447 2017-10-11T19:07:31  <Sentineo> u use 6to4?
448 2017-10-11T19:07:36  <arubi> oh no no
449 2017-10-11T19:07:39  <grubles> no
450 2017-10-11T19:07:52  <Sentineo> then turn it off on your local net
451 2017-10-11T19:08:09  <arubi> did cacher-ng listen on ipv6 also on that netstat stuff?
452 2017-10-11T19:08:13  <Sentineo> router advertisements triger that shit automatically :)
453 2017-10-11T19:10:49  <grubles> arubi, yea
454 2017-10-11T19:11:06  <arubi> probably best to turn it all off then, disable ipv6 on the host vm
455 2017-10-11T19:13:00  <arubi> also on acng.conf :
456 2017-10-11T19:13:01  <arubi>  Virtual page accessible in a web browser to see statistics and status
457 2017-10-11T19:13:01  <arubi> # information, i.e. under http://localhost:3142/acng-report.html
458 2017-10-11T19:13:01  <arubi> ReportPage: admin
459 2017-10-11T19:13:19  <arubi> might be worth to check if that's reachable at all in a browser from the host vm
460 2017-10-11T19:22:14  <grubles> i gotta run for a bit
461 2017-10-11T19:22:29  <arubi> no worries
462 2017-10-11T19:39:13  *** sh_smith has quit IRC
463 2017-10-11T19:41:57  *** sh_smith has joined #bitcoin-dev
464 2017-10-11T19:42:23  *** meshcollider has joined #bitcoin-dev
465 2017-10-11T19:49:54  *** qrestlove has quit IRC
466 2017-10-11T20:01:11  *** fatalhalt has joined #bitcoin-dev
467 2017-10-11T20:11:05  *** agricocb has quit IRC
468 2017-10-11T20:32:35  <grubles> ok yeah let's see if i can get the report page
469 2017-10-11T20:33:35  *** qrestlove has joined #bitcoin-dev
470 2017-10-11T20:34:08  *** agricocb has joined #bitcoin-dev
471 2017-10-11T20:35:04  <grubles> i can curl http://localhost:3142 from the host
472 2017-10-11T20:38:10  *** qrestlove has quit IRC
473 2017-10-11T20:40:58  <grubles> it's.......seemingly working now
474 2017-10-11T20:41:07  <grubles> wtf
475 2017-10-11T20:41:36  <grubles> (it being the build script)
476 2017-10-11T20:51:01  *** qrestlove has joined #bitcoin-dev
477 2017-10-11T20:52:19  *** chjj has joined #bitcoin-dev
478 2017-10-11T20:57:00  <arubi> hah, weird.
479 2017-10-11T21:18:40  *** qrestlove has quit IRC
480 2017-10-11T21:18:48  *** matsjj has quit IRC
481 2017-10-11T21:22:41  *** qrestlove has joined #bitcoin-dev
482 2017-10-11T21:33:47  *** Cogito_Ergo_Sum has quit IRC
483 2017-10-11T21:36:09  *** mmgen has quit IRC
484 2017-10-11T21:45:21  *** dviola has quit IRC
485 2017-10-11T21:49:20  *** dgenr8 has quit IRC
486 2017-10-11T21:50:21  *** dgenr8 has joined #bitcoin-dev
487 2017-10-11T21:50:38  *** Guyver2 has quit IRC
488 2017-10-11T21:53:44  *** sh_smith has quit IRC
489 2017-10-11T22:00:58  *** Chris_Stewart_5 has quit IRC
490 2017-10-11T22:12:16  *** lnovy has quit IRC
491 2017-10-11T22:12:36  *** lnovy has joined #bitcoin-dev
492 2017-10-11T22:16:27  *** bugs_ has quit IRC
493 2017-10-11T22:17:18  *** abpa has joined #bitcoin-dev
494 2017-10-11T22:20:21  *** lnovy has quit IRC
495 2017-10-11T22:20:45  *** lnovy has joined #bitcoin-dev
496 2017-10-11T22:25:32  *** qrestlove has quit IRC
497 2017-10-11T22:38:59  *** qrestlove has joined #bitcoin-dev
498 2017-10-11T22:49:29  *** damons is now known as damons_is_away
499 2017-10-11T22:51:53  *** damons_is_away is now known as damons
500 2017-10-11T22:57:09  *** POJO has joined #bitcoin-dev
501 2017-10-11T23:05:37  *** Belxjander has quit IRC
502 2017-10-11T23:06:12  *** sh_smith has joined #bitcoin-dev
503 2017-10-11T23:06:42  *** Belxjander has joined #bitcoin-dev
504 2017-10-11T23:12:06  *** jvanakker has quit IRC
505 2017-10-11T23:21:42  *** robink has quit IRC
506 2017-10-11T23:22:30  *** robinak has joined #bitcoin-dev
507 2017-10-11T23:27:26  *** robinak is now known as robink
508 2017-10-11T23:29:36  *** POJO has quit IRC
509 2017-10-11T23:29:37  *** dgenr8 has quit IRC
510 2017-10-11T23:30:05  *** dakk has quit IRC
511 2017-10-11T23:50:28  *** damons is now known as damons_is_away
512 2017-10-11T23:50:40  *** damons_is_away is now known as damons
513 2017-10-11T23:50:57  *** dermoth has joined #bitcoin-dev
514 2017-10-11T23:57:14  *** wraithm has quit IRC
515 2017-10-11T23:57:26  *** abpa has quit IRC
516 2017-10-11T23:59:05  *** maks25 has joined #bitcoin-dev