1 2017-04-14T00:00:21  *** abpa has quit IRC
  2 2017-04-14T00:04:48  *** oleganza has joined #bitcoin-dev
  3 2017-04-14T00:13:24  *** Iriez has quit IRC
  4 2017-04-14T00:14:23  *** matrix1233 has quit IRC
  5 2017-04-14T00:15:44  *** matrix1233 has joined #bitcoin-dev
  6 2017-04-14T00:33:09  *** mountaingoat has joined #bitcoin-dev
  7 2017-04-14T00:36:21  *** oleganza has joined #bitcoin-dev
  8 2017-04-14T00:38:36  *** fatalhalt has quit IRC
  9 2017-04-14T00:39:46  *** matrix1233 has quit IRC
 10 2017-04-14T00:44:44  *** fatalhalt has joined #bitcoin-dev
 11 2017-04-14T00:46:10  *** oleganza_ has joined #bitcoin-dev
 12 2017-04-14T00:48:09  *** oleganza has quit IRC
 13 2017-04-14T00:48:09  *** oleganza_ is now known as oleganza
 14 2017-04-14T00:50:13  *** conman has joined #bitcoin-dev
 15 2017-04-14T01:08:48  <conman> in a createnewblock() call am I right in assuming an ancestor transaction *must* precede any transactions that depend on it? It seems obvious that a txn would be invalid if its dependent txn hasn't been seen
 16 2017-04-14T01:09:35  <conman> so in a getblocktemplate call, the dependent transactions will always be serialised after their ancestors
 17 2017-04-14T01:09:36  <conman> CompareTxIterByAncestorCount() suggests so
 18 2017-04-14T01:16:52  *** matrix1233 has joined #bitcoin-dev
 19 2017-04-14T01:21:40  *** matrix1233 has quit IRC
 20 2017-04-14T01:25:19  *** ProfMac_ has quit IRC
 21 2017-04-14T01:33:54  *** cyphase has quit IRC
 22 2017-04-14T01:39:42  *** cyphase has joined #bitcoin-dev
 23 2017-04-14T01:59:01  *** slimeball has joined #bitcoin-dev
 24 2017-04-14T02:00:06  *** dermoth has quit IRC
 25 2017-04-14T02:00:52  *** dermoth has joined #bitcoin-dev
 26 2017-04-14T02:04:08  *** agricocb has joined #bitcoin-dev
 27 2017-04-14T02:05:37  *** subo_ has joined #bitcoin-dev
 28 2017-04-14T02:09:45  *** subo has quit IRC
 29 2017-04-14T02:11:14  *** matrix1233 has joined #bitcoin-dev
 30 2017-04-14T02:15:33  *** matrix1233 has quit IRC
 31 2017-04-14T02:18:44  *** conman has quit IRC
 32 2017-04-14T02:21:28  *** cfields_ is now known as cfields
 33 2017-04-14T02:21:45  *** Beef has quit IRC
 34 2017-04-14T02:32:38  *** goatpig has quit IRC
 35 2017-04-14T03:05:20  *** matrix1233 has joined #bitcoin-dev
 36 2017-04-14T03:09:40  *** matrix1233 has quit IRC
 37 2017-04-14T03:19:03  *** conman has joined #bitcoin-dev
 38 2017-04-14T03:21:35  *** Giszmo has quit IRC
 39 2017-04-14T03:32:00  *** Ahmed90 has quit IRC
 40 2017-04-14T03:35:20  *** ThomasV has joined #bitcoin-dev
 41 2017-04-14T03:37:54  *** btcdrak has joined #bitcoin-dev
 42 2017-04-14T03:38:27  *** Victorsueca has joined #bitcoin-dev
 43 2017-04-14T03:41:05  *** Victor_sueca has quit IRC
 44 2017-04-14T03:42:34  *** Giszmo has joined #bitcoin-dev
 45 2017-04-14T03:43:45  *** conman has quit IRC
 46 2017-04-14T03:46:36  *** Beef has joined #bitcoin-dev
 47 2017-04-14T04:08:57  *** contrapumpkin has quit IRC
 48 2017-04-14T04:10:35  *** Tiraspol has quit IRC
 49 2017-04-14T04:15:54  *** contrapumpkin has joined #bitcoin-dev
 50 2017-04-14T04:23:43  *** iv3c has quit IRC
 51 2017-04-14T04:38:02  *** ThomasV has quit IRC
 52 2017-04-14T04:49:29  *** TheSeven has quit IRC
 53 2017-04-14T04:49:55  *** TheSeven has joined #bitcoin-dev
 54 2017-04-14T04:53:29  *** matrix1233 has joined #bitcoin-dev
 55 2017-04-14T04:55:25  *** Giszmo has quit IRC
 56 2017-04-14T04:58:05  *** matrix1233 has quit IRC
 57 2017-04-14T05:03:00  *** conman has joined #bitcoin-dev
 58 2017-04-14T05:10:41  *** oleganza has joined #bitcoin-dev
 59 2017-04-14T05:16:34  *** moli_ has quit IRC
 60 2017-04-14T05:19:12  *** moli_ has joined #bitcoin-dev
 61 2017-04-14T05:32:36  *** janko33 has joined #bitcoin-dev
 62 2017-04-14T05:35:59  *** oleganza has quit IRC
 63 2017-04-14T05:47:34  *** matrix1233 has joined #bitcoin-dev
 64 2017-04-14T05:52:09  *** matrix1233 has quit IRC
 65 2017-04-14T06:07:25  *** blueness has quit IRC
 66 2017-04-14T06:25:28  *** conman has quit IRC
 67 2017-04-14T06:38:47  *** MoALTz has joined #bitcoin-dev
 68 2017-04-14T06:41:40  *** matrix1233 has joined #bitcoin-dev
 69 2017-04-14T06:42:51  *** matrix1233 has quit IRC
 70 2017-04-14T06:51:41  *** jtimon has joined #bitcoin-dev
 71 2017-04-14T06:52:24  *** jtimon has quit IRC
 72 2017-04-14T07:02:09  *** BGL has quit IRC
 73 2017-04-14T07:07:24  *** fatalhalt has quit IRC
 74 2017-04-14T07:11:16  *** fatalhalt has joined #bitcoin-dev
 75 2017-04-14T07:12:05  *** ThomasV has joined #bitcoin-dev
 76 2017-04-14T07:17:04  *** blueness has joined #bitcoin-dev
 77 2017-04-14T07:23:19  *** mol has joined #bitcoin-dev
 78 2017-04-14T07:26:28  *** moli_ has quit IRC
 79 2017-04-14T07:26:48  *** molz_ has joined #bitcoin-dev
 80 2017-04-14T07:27:47  *** epopt has quit IRC
 81 2017-04-14T07:29:03  *** epopt has joined #bitcoin-dev
 82 2017-04-14T07:30:09  *** mol has quit IRC
 83 2017-04-14T07:34:30  *** BGL has joined #bitcoin-dev
 84 2017-04-14T07:35:50  *** matrix1233 has joined #bitcoin-dev
 85 2017-04-14T07:38:19  *** ThomasV has quit IRC
 86 2017-04-14T07:39:54  *** matrix1233 has quit IRC
 87 2017-04-14T08:12:06  *** ThomasV has joined #bitcoin-dev
 88 2017-04-14T08:14:44  *** matrix1233 has joined #bitcoin-dev
 89 2017-04-14T08:21:58  *** nazarewk has joined #bitcoin-dev
 90 2017-04-14T08:26:56  *** `mist has joined #bitcoin-dev
 91 2017-04-14T08:33:08  <`mist> hey guys, a python/bitcoinrpc question. i've got the following code  https://thepasteb.in/p/nZhlv4RlvWKfY. Is there any way of me to wrap the wallet = Wallet('BTC') in a try: except: so that i'm able to catch the exception and whatever message it has without having to import bitcoinrpc in the calling class?
 92 2017-04-14T08:33:44  *** ThomasV has quit IRC
 93 2017-04-14T08:35:46  *** matrix1233 has quit IRC
 94 2017-04-14T08:36:15  <`mist> i'm thinking something like this but without having to import that JSONRPCException: https://thepasteb.in/p/76hElrBQnNOCV
 95 2017-04-14T08:36:44  *** matrix1233 has joined #bitcoin-dev
 96 2017-04-14T08:40:40  *** Victorsueca has quit IRC
 97 2017-04-14T08:51:02  *** cyphase has quit IRC
 98 2017-04-14T08:53:14  *** cyphase has joined #bitcoin-dev
 99 2017-04-14T08:55:30  *** To7 has quit IRC
100 2017-04-14T08:56:04  *** Victorsueca has joined #bitcoin-dev
101 2017-04-14T09:08:12  <wumpus> `mist: I'm not entirely clear on what you're trying to do
102 2017-04-14T09:08:48  <wumpus> you need to catch JSONRPCException *somewhere* to handle errors that come up, what is your difficulty with importing it?
103 2017-04-14T09:09:25  <`mist> it's ok, i solved it =) wallet module raises the jsonrpcexception, then i import only the jsonrpcexception class in the module that calls the method
104 2017-04-14T09:09:31  <`mist> and handle the raise there, and then reraise
105 2017-04-14T09:09:44  <wumpus> ok, yes
106 2017-04-14T09:10:20  <`mist> like this  https://thepasteb.in/p/66hVzR4mqWNFW
107 2017-04-14T09:13:21  *** matrix1233 has quit IRC
108 2017-04-14T09:14:18  *** matrix1233 has joined #bitcoin-dev
109 2017-04-14T09:18:37  *** matrix1233 has quit IRC
110 2017-04-14T09:36:44  *** nazarewk has quit IRC
111 2017-04-14T09:38:21  *** nazarewk has joined #bitcoin-dev
112 2017-04-14T09:45:55  *** nazarewk has quit IRC
113 2017-04-14T09:47:39  *** nazarewk has joined #bitcoin-dev
114 2017-04-14T09:53:47  *** |Clown| has quit IRC
115 2017-04-14T10:05:19  *** matrix1233 has joined #bitcoin-dev
116 2017-04-14T10:09:59  *** matrix1233 has quit IRC
117 2017-04-14T10:22:05  *** Victorsueca has quit IRC
118 2017-04-14T10:23:13  *** Victorsueca has joined #bitcoin-dev
119 2017-04-14T10:38:02  *** ongolaBoy has joined #bitcoin-dev
120 2017-04-14T10:58:31  *** matrix1233 has joined #bitcoin-dev
121 2017-04-14T11:06:20  *** matrix1233 has quit IRC
122 2017-04-14T11:07:16  *** matrix1233 has joined #bitcoin-dev
123 2017-04-14T11:52:19  *** JackH has quit IRC
124 2017-04-14T12:04:11  *** agricocb has quit IRC
125 2017-04-14T12:17:14  *** matrix1233 has quit IRC
126 2017-04-14T12:32:27  *** matrix1233 has joined #bitcoin-dev
127 2017-04-14T12:39:29  *** shaolinfry has joined #bitcoin-dev
128 2017-04-14T12:43:12  *** legkodymov has joined #bitcoin-dev
129 2017-04-14T13:02:29  *** treehug88 has quit IRC
130 2017-04-14T13:19:01  *** agricocb has joined #bitcoin-dev
131 2017-04-14T13:19:57  *** iv3c has joined #bitcoin-dev
132 2017-04-14T13:21:38  *** molz_ has quit IRC
133 2017-04-14T13:23:47  *** moli_ has joined #bitcoin-dev
134 2017-04-14T13:52:30  *** legkodymov has quit IRC
135 2017-04-14T13:57:27  *** dermoth_ has joined #bitcoin-dev
136 2017-04-14T13:57:57  *** dermoth has quit IRC
137 2017-04-14T13:57:59  *** dermoth_ is now known as dermoth
138 2017-04-14T14:01:59  *** hsmiths has quit IRC
139 2017-04-14T14:02:13  *** hsmiths has joined #bitcoin-dev
140 2017-04-14T14:04:02  *** bugs_ has joined #bitcoin-dev
141 2017-04-14T14:10:09  *** weedcoder has joined #bitcoin-dev
142 2017-04-14T14:11:33  *** Char0n has quit IRC
143 2017-04-14T14:14:35  *** matrix1233 has quit IRC
144 2017-04-14T14:14:59  *** weedcoder has quit IRC
145 2017-04-14T14:15:57  *** oleganza has joined #bitcoin-dev
146 2017-04-14T14:16:07  *** matrix1233 has joined #bitcoin-dev
147 2017-04-14T14:30:06  *** oleganza has quit IRC
148 2017-04-14T14:32:42  *** j_ybt is now known as movrcx
149 2017-04-14T14:45:45  *** To7 has joined #bitcoin-dev
150 2017-04-14T14:52:12  *** matrix1233 has quit IRC
151 2017-04-14T14:53:53  *** matrix1233 has joined #bitcoin-dev
152 2017-04-14T15:02:30  *** `mist has quit IRC
153 2017-04-14T15:06:03  *** Giszmo has joined #bitcoin-dev
154 2017-04-14T15:14:05  *** matrix1233 has quit IRC
155 2017-04-14T15:17:55  *** weedcoder has joined #bitcoin-dev
156 2017-04-14T15:23:04  *** alferz has joined #bitcoin-dev
157 2017-04-14T15:26:12  *** dermoth has quit IRC
158 2017-04-14T15:30:30  *** dermoth has joined #bitcoin-dev
159 2017-04-14T15:35:16  *** alferz has quit IRC
160 2017-04-14T15:46:31  *** matrix1233 has joined #bitcoin-dev
161 2017-04-14T15:51:10  *** matrix1233 has quit IRC
162 2017-04-14T15:52:03  *** nazarewk has quit IRC
163 2017-04-14T15:57:10  *** waxwing has quit IRC
164 2017-04-14T16:11:50  *** waxwing has joined #bitcoin-dev
165 2017-04-14T16:15:45  *** bsm117532 has joined #bitcoin-dev
166 2017-04-14T16:39:42  *** goatpig has joined #bitcoin-dev
167 2017-04-14T16:52:59  *** afk11 has quit IRC
168 2017-04-14T16:53:17  *** afk11 has joined #bitcoin-dev
169 2017-04-14T16:53:48  *** nazarewk has joined #bitcoin-dev
170 2017-04-14T16:55:50  <ryan-c> If I made a script that used OP_CHECKMULTISIG with 1-of-2 keys, and the second public key was obviously invalid, would the tx still be possible to redeem with the first key?
171 2017-04-14T16:56:04  *** oleganza has joined #bitcoin-dev
172 2017-04-14T16:56:09  <arubi> ryan-c, invalid how?  is it not a public key at all?
173 2017-04-14T16:56:22  <ryan-c> arubi: not a public key at all, not even the right length
174 2017-04-14T16:56:53  <arubi> one of two.. which of the keys is first, the valid one?
175 2017-04-14T16:57:03  <ryan-c> yeah, the valid one is first
176 2017-04-14T16:57:40  <arubi> I think that at least gives it more chance at being redeemable
177 2017-04-14T16:58:40  <ryan-c> the specific script is
178 2017-04-14T17:00:26  <ryan-c> OP_1 [33 byte compressed public key] [34 bytes arbitrary data] OP_2 OP_CHECKMULTISIG
179 2017-04-14T17:01:01  <arubi> I think that makes the invalid key first
180 2017-04-14T17:01:59  <ryan-c> i need the valid key first in the script
181 2017-04-14T17:02:02  <arubi> at least that's how the stack will end up executing.  still, a public key being neither compressed or uncompressed, it might still be valid but non-standard.  I actually never tried
182 2017-04-14T17:02:32  <arubi> well the key that ends up being pushed last is at the top of the stack
183 2017-04-14T17:02:51  <ryan-c> I actually could do what i want with valid public key and a valid-looking one with no known private key
184 2017-04-14T17:03:19  <arubi> sounds a lot cleaner and less "noisy" :)
185 2017-04-14T17:03:48  <ryan-c> slightly less efficient
186 2017-04-14T17:04:02  <arubi> how so?
187 2017-04-14T17:04:12  <ryan-c> it's a vanity address generation method
188 2017-04-14T17:04:57  <ryan-c> if you don't change the first 64 bytes of the script, you can partially hash it and reuse the midstate
189 2017-04-14T17:05:42  <ryan-c> but with two compressed public keys you only have the last 3 bytes of the second key in the second hash block, so you have to generate a new first key every 16.7M iterations
190 2017-04-14T17:05:44  <arubi> I see now :)
191 2017-04-14T17:05:56  <arubi> well you could stick an OP_NOP in there
192 2017-04-14T17:06:16  <ryan-c> wouldn't that cause redemption issues due to being nonstandard?
193 2017-04-14T17:06:26  <arubi> that's also the case here for sure
194 2017-04-14T17:06:29  <ryan-c> or is that not really an issue with p2sh
195 2017-04-14T17:06:44  <ryan-c> well, with two compressed keys, you can't tell that the public key is arbitrary
196 2017-04-14T17:06:49  <ryan-c> so it'd work
197 2017-04-14T17:07:08  <ryan-c> if it were a compressed and an uncompressed, it could be detected that it's invalid
198 2017-04-14T17:07:26  <ryan-c> but i don't know if that matters
199 2017-04-14T17:07:34  <arubi> I think a regular op_nop (not with a number appended) should be okay
200 2017-04-14T17:07:50  <arubi> but it's worth to check..  miners' policy is weird
201 2017-04-14T17:07:59  <ryan-c> er, if the first "fixed" key is uncompressed there aren't issues
202 2017-04-14T17:08:10  <ryan-c> but the script is longer and therefore slightly more expesnive to redeem
203 2017-04-14T17:08:34  <arubi> right
204 2017-04-14T17:10:45  <ryan-c> I suppose I could read the source for this
205 2017-04-14T17:13:15  *** abpa has joined #bitcoin-dev
206 2017-04-14T17:15:19  <ryan-c> clearly i should just try this on testnet
207 2017-04-14T17:17:37  <ryan-c> ah, there is a CheckPubKeyEncoding step, which would abort script evaluation in valure
208 2017-04-14T17:17:39  <ryan-c> failure
209 2017-04-14T17:18:59  <ryan-c> but it doesn't look like public keys without signatures are validated
210 2017-04-14T17:21:52  <arubi> right, but the checkmultisig doesn't know which one signature matches which of the two keys provided in the 1-of-2
211 2017-04-14T17:22:07  <arubi> so it checks the first one on the stack first, and that should be the valid key
212 2017-04-14T17:22:41  <ryan-c> the standard transaction thing only validates public keys as far as checking that they are between 33 and 65 bytes long inclusive
213 2017-04-14T17:23:27  <arubi> oh is that between and not either or?  huh.
214 2017-04-14T17:23:59  *** matrix1233 has joined #bitcoin-dev
215 2017-04-14T17:24:46  <arubi> well SCRIPT_VERIFY_STRICTENC is checked too and bip66 is not in effect..
216 2017-04-14T17:25:00  <arubi> er, s/not/now
217 2017-04-14T17:25:20  <ryan-c> that's in standard.cpp
218 2017-04-14T17:25:28  *** Fr4n has joined #bitcoin-dev
219 2017-04-14T17:25:44  <arubi> might be related : https://github.com/bitcoin/bitcoin/issues/5939
220 2017-04-14T17:26:24  <arubi> so, looks like it should still work.
221 2017-04-14T17:26:25  <ryan-c> oh interesting
222 2017-04-14T17:27:11  <ryan-c> but it looks like it'd be a lot safer just to do two compressed keys and update the first one when required
223 2017-04-14T17:29:21  <arubi> yea, could be.  I think a few dozen million keys/s is what current high end GPUs get with oclvanitygen
224 2017-04-14T17:30:41  <arubi> I do think an op_nop between the two pubkeys should be ok though.. interesting.
225 2017-04-14T17:31:26  <arubi> I guess that still wouldn't help though now re-thinking.. you do need arbitrary data
226 2017-04-14T17:45:13  *** Chris_Stewart_5 has joined #bitcoin-dev
227 2017-04-14T18:04:43  *** kristofferR has quit IRC
228 2017-04-14T18:13:15  *** matrix1233 has quit IRC
229 2017-04-14T18:15:34  *** matrix1233 has joined #bitcoin-dev
230 2017-04-14T18:44:14  *** matrix1233 has quit IRC
231 2017-04-14T18:51:45  *** rodarmor has quit IRC
232 2017-04-14T18:52:07  *** rodarmor has joined #bitcoin-dev
233 2017-04-14T18:52:11  *** justan0theruser has quit IRC
234 2017-04-14T18:52:43  *** justanotheruser has joined #bitcoin-dev
235 2017-04-14T18:57:29  *** mol has joined #bitcoin-dev
236 2017-04-14T18:59:08  *** robinak has quit IRC
237 2017-04-14T18:59:55  *** robink has joined #bitcoin-dev
238 2017-04-14T19:00:49  *** moli_ has quit IRC
239 2017-04-14T19:02:20  *** moli_ has joined #bitcoin-dev
240 2017-04-14T19:03:11  *** mol has quit IRC
241 2017-04-14T19:16:12  *** janko33 has quit IRC
242 2017-04-14T19:22:17  *** matrix1233 has joined #bitcoin-dev
243 2017-04-14T19:23:29  *** instagibbs has quit IRC
244 2017-04-14T19:26:26  *** instagibbs has joined #bitcoin-dev
245 2017-04-14T19:32:47  *** matrix1233 has joined #bitcoin-dev
246 2017-04-14T19:33:29  *** instagibbs has quit IRC
247 2017-04-14T19:36:46  *** mol has joined #bitcoin-dev
248 2017-04-14T19:37:31  *** instagibbs has joined #bitcoin-dev
249 2017-04-14T19:39:19  *** molz_ has joined #bitcoin-dev
250 2017-04-14T19:40:29  *** moli_ has quit IRC
251 2017-04-14T19:41:29  *** mol has quit IRC
252 2017-04-14T19:42:14  *** instagibbs has quit IRC
253 2017-04-14T19:43:08  *** molz_ has quit IRC
254 2017-04-14T19:47:28  *** instagibbs has joined #bitcoin-dev
255 2017-04-14T19:54:05  *** matrix1233 has quit IRC
256 2017-04-14T19:59:36  *** matrix1233 has joined #bitcoin-dev
257 2017-04-14T20:16:11  *** justanotheruser has quit IRC
258 2017-04-14T20:17:40  *** instagibbs has quit IRC
259 2017-04-14T20:18:38  *** rgrant has joined #bitcoin-dev
260 2017-04-14T20:20:39  *** fredrin has joined #bitcoin-dev
261 2017-04-14T20:23:37  *** justanotheruser has joined #bitcoin-dev
262 2017-04-14T20:25:01  *** instagibbs has joined #bitcoin-dev
263 2017-04-14T20:36:06  *** agricocb has quit IRC
264 2017-04-14T20:43:54  *** MoALTz has quit IRC
265 2017-04-14T20:46:14  *** matrix1233 has quit IRC
266 2017-04-14T20:47:06  *** matrix1233 has joined #bitcoin-dev
267 2017-04-14T20:49:26  *** ongolaBoy has quit IRC
268 2017-04-14T20:52:54  *** moli_ has joined #bitcoin-dev
269 2017-04-14T21:02:44  *** ThomasV has joined #bitcoin-dev
270 2017-04-14T21:16:02  *** bugs_ has quit IRC
271 2017-04-14T21:23:44  *** matrix1233 has quit IRC
272 2017-04-14T21:23:44  *** ThomasV has quit IRC
273 2017-04-14T21:37:24  *** agricocb has joined #bitcoin-dev
274 2017-04-14T21:59:29  *** weedcoder has quit IRC
275 2017-04-14T22:03:18  *** |Clown| has joined #bitcoin-dev
276 2017-04-14T22:04:08  *** nazarewk has quit IRC
277 2017-04-14T22:06:08  *** nazarewk has joined #bitcoin-dev
278 2017-04-14T22:09:50  *** shaolinfry has quit IRC
279 2017-04-14T22:10:22  *** weedcoder has joined #bitcoin-dev
280 2017-04-14T22:15:08  *** weedcoder has quit IRC
281 2017-04-14T22:55:25  *** nowan has quit IRC
282 2017-04-14T22:56:23  *** nazarewk has quit IRC
283 2017-04-14T22:58:08  *** nowan has joined #bitcoin-dev
284 2017-04-14T22:58:10  *** nazarewk has joined #bitcoin-dev
285 2017-04-14T23:03:42  *** rgrant has left #bitcoin-dev
286 2017-04-14T23:12:04  *** nazarewk has quit IRC
287 2017-04-14T23:35:07  *** justanotheruser has quit IRC
288 2017-04-14T23:40:45  *** mol has joined #bitcoin-dev
289 2017-04-14T23:41:04  *** justanotheruser has joined #bitcoin-dev
290 2017-04-14T23:41:51  *** mol has quit IRC
291 2017-04-14T23:43:57  *** moli_ has quit IRC
292 2017-04-14T23:54:59  *** abpa has quit IRC