1 2012-11-03 00:00:50 forsetifox has joined
2 2012-11-03 00:06:15 optimator_ has joined
3 2012-11-03 00:06:45 optimator has quit (Ping timeout: 256 seconds)
4 2012-11-03 00:11:54 RainbowDashh has quit (Ping timeout: 252 seconds)
5 2012-11-03 00:12:36 maaku has joined
6 2012-11-03 00:13:03 optimator has joined
7 2012-11-03 00:13:03 optimator has quit (Changing host)
8 2012-11-03 00:13:03 optimator has joined
9 2012-11-03 00:14:31 JDuke128 has joined
10 2012-11-03 00:14:50 optimator_ has quit (Ping timeout: 240 seconds)
11 2012-11-03 00:17:57 RainbowDashh has joined
12 2012-11-03 00:22:04 bitcoinbulletin has quit (Remote host closed the connection)
13 2012-11-03 00:32:15 bitcoinbulletin has joined
14 2012-11-03 00:32:45 RazielZ has quit (Ping timeout: 246 seconds)
15 2012-11-03 00:36:38 brwyatt is now known as Away!~brwyatt@brwyatt.net|brwyatt
16 2012-11-03 00:37:37 <phantomcircuit> sipa, running git HEAD on an ssd using loadblock segfaulted
17 2012-11-03 00:37:39 <phantomcircuit> lol
18 2012-11-03 00:38:00 <phantomcircuit> turn on core dumps and try again
19 2012-11-03 00:38:10 <gmaxwell> got a backtrace?
20 2012-11-03 00:38:15 <phantomcircuit> i suspect there's a race condition here someplace
21 2012-11-03 00:38:25 <phantomcircuit> had core dumps disabled :(
22 2012-11-03 00:38:50 rdponticelli has quit (Ping timeout: 276 seconds)
23 2012-11-03 00:39:10 JDuke128 has quit (Quit: Computer has gone to sleep.)
24 2012-11-03 00:39:19 <phantomcircuit> got it
25 2012-11-03 00:39:20 <phantomcircuit> one sec
26 2012-11-03 00:39:37 zveda is now known as guest
27 2012-11-03 00:39:57 guest is now known as zveda
28 2012-11-03 00:40:02 kreal has joined
29 2012-11-03 00:40:09 <phantomcircuit> http://pastebin.com/raw.php?i=Y55HZ68d
30 2012-11-03 00:40:39 <phantomcircuit> Program terminated with signal 11, Segmentation fault.
31 2012-11-03 00:41:12 maaku has quit (Quit: maaku)
32 2012-11-03 00:41:15 <phantomcircuit> im guessing something is being freed before it's written
33 2012-11-03 00:43:11 JDuke128 has joined
34 2012-11-03 00:44:08 Silverion has joined
35 2012-11-03 00:44:21 emryss has quit (Read error: Connection reset by peer)
36 2012-11-03 00:44:53 emryss has joined
37 2012-11-03 00:48:49 Silverion has quit (Ping timeout: 252 seconds)
38 2012-11-03 00:49:40 emryss has quit (Ping timeout: 260 seconds)
39 2012-11-03 00:51:17 Matt_von_Mises has quit (Quit: Leaving.)
40 2012-11-03 00:51:53 emryss has joined
41 2012-11-03 00:54:36 agricocb has joined
42 2012-11-03 01:02:14 egecko has quit (Ping timeout: 276 seconds)
43 2012-11-03 01:06:01 freakazoid has joined
44 2012-11-03 01:06:32 zooko has quit (Ping timeout: 240 seconds)
45 2012-11-03 01:08:46 rdponticelli has joined
46 2012-11-03 01:12:32 egecko has joined
47 2012-11-03 01:13:48 Cory has quit (Disconnected by services)
48 2012-11-03 01:14:05 Cory has joined
49 2012-11-03 01:14:46 <phantomcircuit> bitcoind uses ~ 8 IOPS
50 2012-11-03 01:14:53 <phantomcircuit> interesting statistic
51 2012-11-03 01:16:10 freakazoid has quit (Ping timeout: 255 seconds)
52 2012-11-03 01:16:32 rdponticelli has quit (Ping timeout: 276 seconds)
53 2012-11-03 01:34:12 rdponticelli has joined
54 2012-11-03 01:34:50 RainbowDashh has quit (Quit: QUIT! [15:41:09] <DerpyExpress> RainbowDashh: Pony_ was last seen 1 day, 16 hours ago saying: I'm still alive BTW)
55 2012-11-03 01:35:05 RainbowDashh has joined
56 2012-11-03 01:42:39 Cory has quit ()
57 2012-11-03 01:47:40 Zarutian has quit (Quit: Zarutian)
58 2012-11-03 01:49:42 Guest11644 has quit (Quit: No Ping reply in 180 seconds.)
59 2012-11-03 01:50:06 arij has joined
60 2012-11-03 01:50:30 arij is now known as Guest29675
61 2012-11-03 01:50:37 Cory has joined
62 2012-11-03 01:59:36 <kjj_> crap. why doesn't signmessage include the address in the message?
63 2012-11-03 01:59:42 <kjj_> er, in the signature
64 2012-11-03 02:05:10 <gmaxwell> kjj_: In effect it does. You must provide it in order to do the comparison.
65 2012-11-03 02:06:00 <gmaxwell> e.g. verifymessage <message> <signature> -> true would be completely useless.
66 2012-11-03 02:06:29 <gmaxwell> verifymessage <message> <signature> -> address would be highly prone to human error (I sign with a lookalike address) so we decided not to do that.
67 2012-11-03 02:09:03 <kjj_> ok, but say you have a database of addresses, and you get a signed message. having to iterate the database to see which user sent the message is terrible
68 2012-11-03 02:09:40 <gmaxwell> ⦠Then do not do that.
69 2012-11-03 02:10:02 <gmaxwell> Under most contexts that wouldn't be a secure way of using it.
70 2012-11-03 02:10:09 <kjj_> not doing that means that I have to invent a format to carry the message, the signature, and the address in one package
71 2012-11-03 02:10:25 <gmaxwell> You already have to do that if you dont know the message in advance.
72 2012-11-03 02:11:49 one_zero has joined
73 2012-11-03 02:11:50 <kjj_> hmm. I feel a pull request coming on for a pair of functions that produce/verify blocks like GPG signatures
74 2012-11-03 02:12:47 <gmaxwell> I will NAK something that embeds the address in the signature so fast your head will spin.
75 2012-11-03 02:13:01 <kjj_> seriously?
76 2012-11-03 02:13:16 <gmaxwell> Yes. It was an intentional decision to do it this way.
77 2012-11-03 02:13:28 maaku has joined
78 2012-11-03 02:13:43 <kjj_> you want to make it impossible to figure out who signed a message unless you carry the address along with it, but you won't allow me to carry the address along with it?
79 2012-11-03 02:13:45 <gmaxwell> GPG has a key validation model, so you can tell if a signature is from a trusted key. Our usage is different.
80 2012-11-03 02:14:02 <kjj_> there are other usages than the one that you are thinking of
81 2012-11-03 02:14:07 <gmaxwell> kjj_: You can figure it out, just not with the RPC.
82 2012-11-03 02:14:07 <kjj_> like automatic systems, for example
83 2012-11-03 02:14:20 <gmaxwell> uh. This was written with automatic systems in mind.
84 2012-11-03 02:15:22 <gmaxwell> Just whatever anonymous system you have in mind at the moment.
85 2012-11-03 02:16:13 <kjj_> I'm thinking it would be nice to have a website that acted upon messages signed by keys it knows
86 2012-11-03 02:16:50 <kjj_> and since signing the message authenticates the user, it seems really, really, really silly to make them provide their identity TOO
87 2012-11-03 02:17:52 <kjj_> and yeah, I can make my own system to do it, but then a random user can't type up a quick message on the command line, sign it, and paste the two in
88 2012-11-03 02:18:02 <gmaxwell> Then don't do that. But that isn't want the bitcoin interface is forâ because it has no key management for validated keys (and adding one would be major feature creap) what you're asking for couldn't be done securely in the context of it.
89 2012-11-03 02:18:12 <gmaxwell> kjj_: Wow. No thats not true.
90 2012-11-03 02:18:46 <kjj_> right, the user could paste all three things in. but that's, well, odd
91 2012-11-03 02:18:58 <gmaxwell> No, they don't have to do that either.
92 2012-11-03 02:19:00 <kjj_> I get it that you want to keep users from making silly mistakes
93 2012-11-03 02:19:34 <gmaxwell> What you don't get is that you don't need bitcoind to do everthing for you. Bitcoind is not your mother. :P
94 2012-11-03 02:19:43 <kjj_> dude...
95 2012-11-03 02:20:20 <kjj_> the signature couild embed the address, but doesn't because it is someone else's mother
96 2012-11-03 02:20:21 <gmaxwell> You can't do what you're suggesting securely without having key management. Thats in your website. It knows what keys are good or not. So have it do the validation.. and it can extract the address.
97 2012-11-03 02:20:36 <Luke-Jr> â¦
98 2012-11-03 02:20:42 <Luke-Jr> I suggest a compromise:
99 2012-11-03 02:20:51 <gmaxwell> kjj_: Please repeat the message I sent to you in response first.
100 2012-11-03 02:20:59 <Luke-Jr> use a PGP-compatible format, including the info to determine the address that signed it
101 2012-11-03 02:21:00 <gmaxwell> The first four words, please.
102 2012-11-03 02:21:08 <Luke-Jr> but require the JSON-RPC user to provide the address still in bitcoind
103 2012-11-03 02:21:11 <gmaxwell> Luke-Jr: Stop dont you be stupid too.
104 2012-11-03 02:21:14 <kjj_> gmaxwell: Please repeat the message. :)
105 2012-11-03 02:21:32 <gmaxwell> Okay, since you're too stupid I'll do it for you:
106 2012-11-03 02:21:32 sudog has quit (Ping timeout: 276 seconds)
107 2012-11-03 02:21:33 <gmaxwell> 18:53 < gmaxwell> kjj_: In effect it does.
108 2012-11-03 02:21:40 <Luke-Jr> gmaxwell: who's to say some external process or other implementation doesn't have key management? ;)
109 2012-11-03 02:21:47 <gmaxwell> I'll even give you javascript.
110 2012-11-03 02:21:49 <kjj_> gmaxwell: you said "in effect it does", but then you say that it does not, and that it doesn't do it intentionally
111 2012-11-03 02:21:58 <gmaxwell> No. I did not.
112 2012-11-03 02:22:07 zooko has joined
113 2012-11-03 02:22:24 <gmaxwell> kjj_: You need to stop trying to argue with me and let me help you.
114 2012-11-03 02:22:34 <kjj_> look, I'm not going to get into cut/paste with you. you can see what you said just as plainly as I can
115 2012-11-03 02:22:47 <gmaxwell> Yes.
116 2012-11-03 02:22:53 <gmaxwell> And you misunderstood it apparently.
117 2012-11-03 02:23:00 kreal has quit (Ping timeout: 260 seconds)
118 2012-11-03 02:23:05 sudog has joined
119 2012-11-03 02:23:31 epscy has quit (Ping timeout: 246 seconds)
120 2012-11-03 02:23:33 <gmaxwell> It has the address in it, indirectly. But bitcoind is setup so you still must provide it in order to do the comparison in a safe way; because unlike gpg it doesn't know what keys are trusted.
121 2012-11-03 02:23:38 <kjj_> so, are you saying that the key really is embedded in the signature, but the client requires you to specify it on the command line too?
122 2012-11-03 02:23:52 sipa has quit (Ping timeout: 246 seconds)
123 2012-11-03 02:23:58 <gmaxwell> Your software, which knows what keys are trusted, doesn't have to work the same.
124 2012-11-03 02:24:48 <gmaxwell> kjj_: Almost. The validation process does nothing other than _recover_ the address. Any syntatically correct signature for any message maps to some address or another.
125 2012-11-03 02:24:52 sipa has joined
126 2012-11-03 02:25:08 <gmaxwell> Validation is just comparing the expected address and the computed address.
127 2012-11-03 02:25:17 <gmaxwell> kjj_: I'll even give you JS code for it: https://people.xiph.org/~greg/eb620fe4cdc24afbd2ded229577c64fbb099a39e80bcc15750b84c04b7878d90.html#norev_G7J1ShjvCeWfqtedznDqvHIeQDkAcTUj05MhF+qT2Fp9D3MnbxZTX7MFNF9dRWMvw2CqzWG1jHKAmueQbRQGJhM=
128 2012-11-03 02:25:21 <gmaxwell> Tada.
129 2012-11-03 02:25:52 <gmaxwell> That page has JS that pulls out the txid from the HTML, and checks it with the signature in the URL and displays the signing address.
130 2012-11-03 02:26:06 <gmaxwell> twiddle some digits in the URL and you'll see the computed address change.
131 2012-11-03 02:27:04 <gmaxwell> Unfortunately it's quite easy to run a bunch of times until you get a signature that looks a lot like the one you're expecting. ... and with no keystore in bitcoind for this, visual comparison would be really unsafe, so were setup to not enable visual comparison.
132 2012-11-03 02:28:51 <kjj_> ugh. in other words, the address is NOT at all in the signature, but you can find it from the digest and the signature?
133 2012-11-03 02:29:27 <gmaxwell> Not sure why you're saying ugh.
134 2012-11-03 02:30:07 <kjj_> well, because it means that I have to do the EC math the hard way, for one thing
135 2012-11-03 02:30:08 <gmaxwell> It's not like you could have validated the signature without the siganture and the digest. And there you go, two things. Instead of 1.. and you can efficiently look it up in your keystore.
136 2012-11-03 02:30:34 <gmaxwell> kjj_: Lots of people have written code for the EC math already. I mean hell.. it's in javascript there. :P
137 2012-11-03 02:31:02 <gmaxwell> But that has nothing to do with how it works, and everything to do with bitcoind is not your mother. :P
138 2012-11-03 02:31:18 <kjj_> heh. this is for a website. passing the EC math to bitcoind to do in assembly is much faster
139 2012-11-03 02:31:34 toffoo has joined
140 2012-11-03 02:32:07 <gmaxwell> Bitcoind doesn't do it in assembly. And you could always call your own little process for it, I suppose.
141 2012-11-03 02:33:00 maaku has quit (Quit: maaku)
142 2012-11-03 02:33:04 <kjj_> meh. C becomes assembly becomes instructions.
143 2012-11-03 02:33:15 <kjj_> sometimes the middle step is skipped
144 2012-11-03 02:33:15 <gmaxwell> So does php.
145 2012-11-03 02:33:21 epscy has joined
146 2012-11-03 02:33:57 <kjj_> bitcoind is done before my enter key rises. PHP takes a while.
147 2012-11-03 02:34:25 <gmaxwell> "So don't use php" ? :P Its not like it's only slow for that.
148 2012-11-03 02:35:07 ThomasV_ has joined
149 2012-11-03 02:35:24 D34TH has quit (Read error: Connection reset by peer)
150 2012-11-03 02:35:32 <kjj_> I seriously can't believe that I'm the first person that would have liked a function that gives the key that signed a message.
151 2012-11-03 02:36:04 Hasimir has joined
152 2012-11-03 02:36:12 <Luke-Jr> kjj_: gmaxwell's point is that there is no way to validly use that function.
153 2012-11-03 02:36:18 <Luke-Jr> besides what you can already do
154 2012-11-03 02:36:21 Davincij15 has joined
155 2012-11-03 02:36:33 <kjj_> Luke-Jr: it is possible to use it unsafely. that isn't the same thing at all
156 2012-11-03 02:36:41 <gmaxwell> kjj_: so we're now down to the point where you want bitcoind to behave in a way which will endanger users, which isn't useful for many use cases, and for the use cases that do need some other behavior there _must_ be some other software to perform key management. ... and your objection is that PHP is too slow so you want to cram half an implementation into bitcoin, consequences be damned. Do I have that right?
157 2012-11-03 02:37:56 <kjj_> gmaxwell: pretty much, yup. first point is overblow, second is overblown, third is irrelavant, fourth is overstated, fifth is hyperbole.
158 2012-11-03 02:38:56 <kjj_> but yeah, other than that, you've pretty well summed it up
159 2012-11-03 02:39:14 <gmaxwell> kjj_: I've _watched_ people misuse it. It's not overblown. It's how people use it when it works the other way.
160 2012-11-03 02:39:32 <gmaxwell> Because it's actually quite surprising that someone can search for near miss signatures.
161 2012-11-03 02:40:18 <kjj_> the people that need to verify that a signature matches an address can still do that. I'm not suggesting that anyone take that call away
162 2012-11-03 02:40:23 <gmaxwell> And it's not overblown to say that there must be key managment. There must be. Otherwise the signatures are useless. Without something to know if the key is the right one all signatures are valid.
163 2012-11-03 02:40:38 <kjj_> key management is irrelevant, not overblown
164 2012-11-03 02:41:24 <gmaxwell> K. Well I'm going to ignore you now. Which is too bad, because if it turned out that your php was too slow I would have nicely written you a tool to do what you want, but instead I want to stab you because you are thickheaded and selfish.
165 2012-11-03 02:41:27 <kjj_> getting the key out of the verification process can be used as a lookup into the KMS, which is how automatic things will do it, but almost never how a human typing on the console will do it
166 2012-11-03 02:42:02 <kjj_> meh. enjoy.
167 2012-11-03 02:42:51 Davincij15 has quit (Read error: Connection reset by peer)
168 2012-11-03 02:42:58 JDuke128 has quit (Quit: ["Textual IRC Client: www.textualapp.com"])
169 2012-11-03 02:42:59 <gmaxwell> ::Sigh:: Again. Bitcoind is not your mother. It is bitcoind. Not "random ECC math library". The _only_ reason we should have validate in there at all was to make it available to conventional users.
170 2012-11-03 02:43:40 <kjj_> LOL. really? how much of the shit in the RPC API is totally useless to "conventional users" ? 50%
171 2012-11-03 02:44:02 <gmaxwell> 100% pretty much. A different 10% for different users.
172 2012-11-03 02:44:24 <gmaxwell> It also lacks API to do ECDH or to convert a random pubkey in a hash160, or to convert a hash 160 into a base58 address or a billion other bits of manipulation it might do.
173 2012-11-03 02:44:31 <kjj_> the point of the RPC API is to support different uses. and this seems like a totally legitimate usage to me, even if you disagree
174 2012-11-03 02:45:00 <Luke-Jr> gmaxwell: namecoin's merged mining patches added a "build a merkle tree for me" RPC :P
175 2012-11-03 02:45:18 <gmaxwell> kjj_: Having validate in it at all is on the thin edge of a legitimate use.. it's certantly a legimiate application, but it's not reasonable to put every possible function in it.. Whats next a strlen api call? :P
176 2012-11-03 02:45:25 JDuke128 has joined
177 2012-11-03 02:45:52 <kjj_> if strlen wasn't built in to like everything, but was very useful for bitcoin and not much else, sure, why not?
178 2012-11-03 02:46:32 <Luke-Jr> kjj_: libbitcoin might be useful to you
179 2012-11-03 02:46:38 <gmaxwell> kjj_: validatemessage is useful at the commandline and gui. People use it in OTC contracts. It's useful by itself. As it is. And by making sure its there we can be sure most users have access to it.. it's part of the ecosystem.
180 2012-11-03 02:46:38 <Luke-Jr> there's no reason to use RPC for math
181 2012-11-03 02:46:39 <kjj_> I get it that it can't and shouldn't do everything. but it verifies signatures already. why do you feel that it would be totally wrong to have another function that verifies signatures in a different way?
182 2012-11-03 02:46:59 <Luke-Jr> kjj_: verifying the signature *is* comparing the address
183 2012-11-03 02:47:18 <gmaxwell> You want to _half_ verify it, with the other half burried in your app.
184 2012-11-03 02:48:00 <gmaxwell> And I don't agree with including that because it's feature creepâ put the other half in your app. And because it would be a hazard to everyone else who wouldn't know the safe usage without research.
185 2012-11-03 02:49:07 <Luke-Jr> IMO, the real problem kjj_ is having is that he wants to use a network protocol/server as if it were a library because his programming language of choice has trouble using standard libraries
186 2012-11-03 02:49:33 <kjj_> Luke-Jr: follow that logic another step. why have the RPC API at all?
187 2012-11-03 02:49:42 <Luke-Jr> kjj_: to interact with the wallet.
188 2012-11-03 02:49:47 <Luke-Jr> and the node.
189 2012-11-03 02:49:56 <gmaxwell> And the network.
190 2012-11-03 02:50:56 <kjj_> hmm. should we then rip out the calls that work with no wallet, no node and no network?
191 2012-11-03 02:51:18 <Luke-Jr> maybe.
192 2012-11-03 02:52:14 jurov has joined
193 2012-11-03 02:52:35 <gmaxwell> kjj_: you'd have ... validateaddress.
194 2012-11-03 02:52:48 <gmaxwell> and... createrawtransaction perhaps.
195 2012-11-03 02:53:04 <Luke-Jr> yeah, those shouldn't be there IMO
196 2012-11-03 02:53:09 <gmaxwell> everything else gets information from the wallet/node/network or does something to those things.
197 2012-11-03 02:53:11 <kjj_> verifymessage, signrawtransaction both come to mind
198 2012-11-03 02:53:21 <gmaxwell> No, signrawtransaction needs the wallet.
199 2012-11-03 02:53:23 <Luke-Jr> signrawtransaction at least interacts with the wallet
200 2012-11-03 02:53:34 <gmaxwell> It can be used without one but normally pulls data from the wallet.
201 2012-11-03 02:53:39 <kjj_> it can, but doesn't have to. it would be a LOT simpler if it did
202 2012-11-03 02:53:49 <gmaxwell> If it did what?
203 2012-11-03 02:53:56 <kjj_> did rely on the wallet
204 2012-11-03 02:54:13 <gmaxwell> It ... does. I mean the privkey parameter is totally optional.
205 2012-11-03 02:54:42 <kjj_> the wallet is totally optional there too
206 2012-11-03 02:55:26 <gmaxwell> It really isn't. Beyond irritating me you're losing my respect. It's poor form to make silly arguments just to make a point.
207 2012-11-03 02:55:42 <kjj_> hahahaha. I came to that conclusion a while back
208 2012-11-03 02:56:06 <kjj_> and I'm pretty sure this is like the 20th time you've lost respect for me, and I can live with that. :)
209 2012-11-03 02:56:10 <gmaxwell> Extracting keys to sign is terribly from a security and key management perspective. It absolutely should be there. And I'm not sure why you'd even suggest it shouldn't.
210 2012-11-03 02:56:56 <kjj_> ugh. for the 8th time, I'm NOT suggesting that you remove that. I'm suggesting a different function that returns the address that signed a message when it is unknown
211 2012-11-03 02:57:58 <kjj_> totally different use case. if someone used the wrong method, and an attacker had provided a lookalike address, it could be a problem. but it doesn't automatically blow everything up
212 2012-11-03 02:59:23 <gmaxwell> And I'm telling you that bitcoin's RPC api is not a general all bitcoin stuff library. Its not even close to one. It shouldn't include things that need no interaction with anything except its math library.
213 2012-11-03 02:59:50 <gmaxwell> And certantly not when it would create a trap for bad usage because there is no way to use a proposed function safely without writing addtional code.
214 2012-11-03 03:01:07 dvide has joined
215 2012-11-03 03:01:47 <gmaxwell> (not to mention the API is quite slow... all that json packing and unpacking. I'm almost, but not quite, surprised that it would actually be faster to call it than have a PHP implementation.)
216 2012-11-03 03:03:06 gmaxwell has left ()
217 2012-11-03 03:04:04 <kjj_> I haven't gone in search of a faster EC math library because I trust the one I'm using to work every time.
218 2012-11-03 03:04:26 <kjj_> I know he left, he can read it in the logs if he wants to
219 2012-11-03 03:13:40 graingert has joined
220 2012-11-03 03:16:21 <graingert> is the Bloom Filter randomly seeded?
221 2012-11-03 03:22:08 RainbowDashh has quit (Ping timeout: 248 seconds)
222 2012-11-03 03:22:39 <graingert> otherwise it might be possible to stuff the filter
223 2012-11-03 03:25:35 RainbowDashh has joined
224 2012-11-03 03:29:23 osmosis has quit (Quit: Leaving)
225 2012-11-03 03:29:53 RainbowDashh has quit (Client Quit)
226 2012-11-03 03:41:29 cosmo has joined
227 2012-11-03 03:43:59 zooko has quit (Ping timeout: 260 seconds)
228 2012-11-03 03:45:02 fiesh has quit (Ping timeout: 240 seconds)
229 2012-11-03 03:47:38 <graingert> Luke-Jr: ^
230 2012-11-03 03:47:45 <Luke-Jr> ?
231 2012-11-03 03:48:00 <graingert> the Bloom Filter discussed in https://bitcoinfoundation.org/blog/?p=16
232 2012-11-03 03:48:58 bitcoinz has quit (Remote host closed the connection)
233 2012-11-03 03:49:27 RainbowDashh has joined
234 2012-11-03 03:49:39 fiesh has joined
235 2012-11-03 03:50:00 bitcoinz has joined
236 2012-11-03 03:51:05 <graingert> BlueMatt: ^
237 2012-11-03 03:51:22 <kjj_> Luke-Jr: the patch to allow verifymessage to accept "?" as the address and return the signing address is super simple. works great too
238 2012-11-03 03:54:31 Descry has joined
239 2012-11-03 03:54:41 RainbowDashh has quit (Quit: SLEEP! [15:41:09] <DerpyExpress> RainbowDashh: Pony_ was last seen 1 day, 16 hours ago saying: I'm still alive BTW)
240 2012-11-03 03:57:50 RainbowDashh has joined
241 2012-11-03 04:03:38 etotheipi_ has joined
242 2012-11-03 04:04:20 <etotheipi_> sipa: was there ever any progress on the new wallet format? has anything changed?
243 2012-11-03 04:05:07 <etotheipi_> sipa: a long time ago, I implemented it, and then stashed it because I had other priorities... but I think I will be picking it back up again and would like to maintain compatibility
244 2012-11-03 04:12:04 freakazoid has joined
245 2012-11-03 04:12:23 Arnavion has quit (Quit: Arnavion)
246 2012-11-03 04:12:28 rdponticelli has quit (Remote host closed the connection)
247 2012-11-03 04:12:36 Arnavion has joined
248 2012-11-03 04:13:03 Davincij15 has joined
249 2012-11-03 04:13:45 Z0rZ0rZ0r has joined
250 2012-11-03 04:14:10 rdponticelli has joined
251 2012-11-03 04:15:20 graingert has quit (Read error: Connection reset by peer)
252 2012-11-03 04:16:39 Z0rZ0rZ0r1 has quit (Ping timeout: 260 seconds)
253 2012-11-03 04:19:20 paraipan has quit (Quit: Saliendo)
254 2012-11-03 04:20:29 ThomasV_ has quit (Ping timeout: 276 seconds)
255 2012-11-03 04:25:34 B0g4r7 has quit (Quit: B0g4r7)
256 2012-11-03 04:36:09 Davincij15 has quit (Ping timeout: 252 seconds)
257 2012-11-03 04:39:47 [7] has quit (Disconnected by services)
258 2012-11-03 04:39:56 TheSeven has joined
259 2012-11-03 04:45:12 JDuke128 has quit (Quit: ["Textual IRC Client: www.textualapp.com"])
260 2012-11-03 04:45:20 forsetifox_ has joined
261 2012-11-03 04:46:41 forsetifox has quit (Ping timeout: 256 seconds)
262 2012-11-03 04:57:26 maaku has joined
263 2012-11-03 04:57:32 eb3kk has joined
264 2012-11-03 05:05:14 one_zero has quit (Read error: Connection reset by peer)
265 2012-11-03 05:05:47 one_zero has joined
266 2012-11-03 05:21:21 maaku has quit (Quit: maaku)
267 2012-11-03 05:26:26 deadserious has joined
268 2012-11-03 05:26:53 deadserious is now known as Guest4292
269 2012-11-03 05:30:19 da2ce793 has joined
270 2012-11-03 05:31:15 Guest4292 has quit (Ping timeout: 256 seconds)
271 2012-11-03 05:32:22 gjs278 has quit (Remote host closed the connection)
272 2012-11-03 05:36:54 pnicholson has quit (Quit: pnicholson)
273 2012-11-03 05:39:52 eb3kk has quit (Quit: Textual IRC Client: www.textualapp.com)
274 2012-11-03 05:47:04 RainbowDashh has quit (Ping timeout: 246 seconds)
275 2012-11-03 05:50:48 RainbowDashh has joined
276 2012-11-03 05:50:50 RainbowDashh has quit (Changing host)
277 2012-11-03 05:50:50 RainbowDashh has joined
278 2012-11-03 05:55:10 forsetifox_ is now known as forsetifox
279 2012-11-03 05:57:05 deadserious has joined
280 2012-11-03 05:57:29 deadserious is now known as Guest17444
281 2012-11-03 06:02:01 RainbowDashh has quit (Ping timeout: 252 seconds)
282 2012-11-03 06:05:16 Guest17444 has quit (Ping timeout: 246 seconds)
283 2012-11-03 06:05:51 RainbowDashh has joined
284 2012-11-03 06:08:31 maaku has joined
285 2012-11-03 06:11:02 da2ce793 has quit (Ping timeout: 240 seconds)
286 2012-11-03 06:16:13 Guest29675 has quit (Ping timeout: 255 seconds)
287 2012-11-03 06:20:00 osmosis has joined
288 2012-11-03 06:25:24 brwyatt is now known as brwyatt|Away
289 2012-11-03 06:26:13 optimator has quit (Ping timeout: 252 seconds)
290 2012-11-03 06:26:16 optimator_ has joined
291 2012-11-03 06:39:44 ThomasV_ has joined
292 2012-11-03 06:51:28 osmosis has quit (Quit: Leaving)
293 2012-11-03 06:55:10 maaku has quit (Quit: maaku)
294 2012-11-03 06:57:32 RainbowDashh has quit (Ping timeout: 244 seconds)
295 2012-11-03 06:59:57 RainbowDashh has joined
296 2012-11-03 07:14:09 RainbowDashh has quit (Ping timeout: 265 seconds)
297 2012-11-03 07:16:26 RainbowDashh has joined
298 2012-11-03 07:24:55 RainbowDashh has quit (Ping timeout: 244 seconds)
299 2012-11-03 07:29:10 RainbowDashh has joined
300 2012-11-03 07:35:52 veeminer has joined
301 2012-11-03 07:37:33 toffoo has quit ()
302 2012-11-03 07:39:20 gjs278 has joined
303 2012-11-03 08:14:27 ovidiusoft has joined
304 2012-11-03 08:17:29 kreal has joined
305 2012-11-03 08:19:19 Apexseals has quit (Ping timeout: 260 seconds)
306 2012-11-03 08:19:34 Apexseals has joined
307 2012-11-03 08:36:18 CodesInChaos has joined
308 2012-11-03 08:38:05 freakazoid has quit (Ping timeout: 255 seconds)
309 2012-11-03 08:42:11 Apexseals has quit (Ping timeout: 240 seconds)
310 2012-11-03 08:43:05 Apexseals has joined
311 2012-11-03 08:53:13 Apexseals has quit (Read error: Connection reset by peer)
312 2012-11-03 08:53:28 Apexseals has joined
313 2012-11-03 08:55:35 yellowhat has quit (Quit: yellowhat)
314 2012-11-03 08:58:43 Apexseals has quit (Read error: Connection reset by peer)
315 2012-11-03 08:59:00 Apexseals has joined
316 2012-11-03 09:06:33 Apexseals has quit (Ping timeout: 268 seconds)
317 2012-11-03 09:06:45 Apexseals has joined
318 2012-11-03 09:07:54 ibno has joined
319 2012-11-03 09:12:26 yellowhat has joined
320 2012-11-03 09:26:13 Apexseals has quit (Read error: Connection reset by peer)
321 2012-11-03 09:26:30 Apexseals has joined
322 2012-11-03 09:34:48 BlackPrapor has joined
323 2012-11-03 09:42:19 TD has joined
324 2012-11-03 10:08:45 Apexseals has quit (Read error: Connection reset by peer)
325 2012-11-03 10:09:04 Apexseals has joined
326 2012-11-03 10:20:33 maqr has joined
327 2012-11-03 10:25:02 RazielZ has joined
328 2012-11-03 10:34:00 paraipan has joined
329 2012-11-03 10:45:21 ThomasV_ has quit (Ping timeout: 248 seconds)
330 2012-11-03 10:47:15 rdponticelli has quit (Ping timeout: 276 seconds)
331 2012-11-03 10:50:56 TD has quit (Quit: TD)
332 2012-11-03 10:58:01 rdponticelli has joined
333 2012-11-03 11:04:26 Jack has joined
334 2012-11-03 11:04:35 <Jack> hi all
335 2012-11-03 11:04:50 Jack is now known as Guest24661
336 2012-11-03 11:05:05 <Guest24661> i have question
337 2012-11-03 11:06:32 <Guest24661> i want to develop new bitcoin client, i connect to IRC server and join random #bitcoinXX channel, i try to encode ip and ports, almost all ports are 8333 - thats is ok, but i cant connect to those nodes
338 2012-11-03 11:07:01 <Guest24661> can anyone help me?
339 2012-11-03 11:07:08 <Guest24661> what iam doing wrong
340 2012-11-03 11:07:15 veeminer has quit ()
341 2012-11-03 11:09:00 <Guest24661> so can some one help me?
342 2012-11-03 11:21:34 Apexseals has quit (Ping timeout: 244 seconds)
343 2012-11-03 11:22:22 Apexseals has joined
344 2012-11-03 11:23:17 ThomasV_ has joined
345 2012-11-03 11:23:39 <Guest24661> is there is some one who is online?
346 2012-11-03 11:24:04 <an3k> yes but i think you misunderstood the whole bitcoin & irc #stuff
347 2012-11-03 11:24:51 <an3k> bitcoin has nothing to do with IRC. these channels are for chatting and there are no bitcoin nodes connected
348 2012-11-03 11:28:13 <an3k> Guest18133: you want to check the source of the existing client to see what to do / how to connect -> https://github.com/bitcoin/bitcoin/tarball/v0.7.1
349 2012-11-03 11:34:16 <sipa> an3k: older bitcoin versions used irc channels for bootstrap
350 2012-11-03 11:34:53 <sipa> Guest24661: orc bootstrpping has been disabled by default for some time now
351 2012-11-03 11:35:16 <sipa> you'll likely only find very old clients there
352 2012-11-03 11:36:44 <sipa> etotheipi_: you mean append-only log file format, or bip32?
353 2012-11-03 11:37:06 <Guest24661> i know that no nodes are connected, but i know that nickname in channel #bitcoinXX is encrypted by base58 ip:port
354 2012-11-03 11:37:29 <Guest24661> i have decrypt that ip:port and try to connect to those nodes
355 2012-11-03 11:38:19 <Guest24661> only one i have connected to such node successful
356 2012-11-03 11:38:29 <Guest24661> from many times unsuccessful
357 2012-11-03 11:38:55 <Guest24661> i just what to write irc method for knowing nodes ip:port to connect
358 2012-11-03 11:39:09 <Guest24661> i going to write and dns method
359 2012-11-03 11:40:00 <Guest24661> like i was reading, i need to resolve suck dns like: bitseed.xf2.org, dnsseed.bluematt.me, seed.bitcoin.sipa.be, dnsseed.bitcoin.dashjr.org
360 2012-11-03 11:40:08 <Guest24661> *such
361 2012-11-03 11:41:16 <Guest24661> i am wrong?
362 2012-11-03 11:41:31 <sipa> why dooes that state
363 2012-11-03 11:41:51 <sipa> ment need 'suck' in it?
364 2012-11-03 11:43:26 <sipa> yes, dns seeding has replaced irc seeding
365 2012-11-03 11:44:06 <sipa> a problem maybe: are you decoding the irc ip:port in the right byteorder?
366 2012-11-03 11:44:21 D34TH has joined
367 2012-11-03 11:44:21 D34TH has quit (Changing host)
368 2012-11-03 11:44:21 D34TH has joined
369 2012-11-03 11:44:25 <Guest24661> suck -> such
370 2012-11-03 11:44:36 <sipa> maybe you are, and none of them are actually still reachable
371 2012-11-03 11:44:46 <sipa> ha ok, sorry :)
372 2012-11-03 11:45:41 <Guest24661> i think its right byteorder, cuz port always = 8333
373 2012-11-03 11:45:58 <sipa> ok
374 2012-11-03 11:46:28 <Guest24661> can be such thing that all nodes in irc channels are unreachable?
375 2012-11-03 11:47:05 <Guest24661> can you enter in to some channel and give me list of ip:port?
376 2012-11-03 11:48:44 <sipa> you shouldn't rely on irc bootstrapping at all really
377 2012-11-03 11:48:54 <D34TH> Guest24661: have you checked that you are actually connected to the irc in debug.log?
378 2012-11-03 11:49:08 Joric has joined
379 2012-11-03 11:49:23 <sipa> if he wasn't he wouldn't see ip:8333 pairs
380 2012-11-03 11:49:23 <Guest24661> what debug.log?
381 2012-11-03 11:49:36 <Guest24661> i think so too
382 2012-11-03 11:50:16 <D34TH> sipa: ive had random connections when i wasnt connected to irc
383 2012-11-03 11:50:35 <D34TH> i ended up chalking it to addr.dat
384 2012-11-03 11:50:41 <sipa> ha
385 2012-11-03 11:52:29 <Guest24661> so what shell i do?
386 2012-11-03 11:52:42 <sipa> use dns seeding
387 2012-11-03 11:53:14 <Guest24661> i will, but why i cant use irc seeding for second method?
388 2012-11-03 11:54:16 <sipa> it s
389 2012-11-03 11:54:42 <sipa> it will only get you very old and badly maintained nodes
390 2012-11-03 11:56:36 <Guest24661> to do dns seeding i need just do dns resolve?
391 2012-11-03 11:58:10 Icoin has joined
392 2012-11-03 11:58:24 <sipa> yes
393 2012-11-03 11:58:38 <Joric> omg torvaldss using kde again https://plus.google.com/u/0/+LinusTorvalds/posts/DbmEE8kXLDA users confused
394 2012-11-03 12:00:29 <D34TH> sipa: can you addnode a dnsseed?
395 2012-11-03 12:01:41 <sipa> D34TH: yes
396 2012-11-03 12:02:04 <D34TH> Guest24661, try -addnode=seed.bitcoin.sipa.be
397 2012-11-03 12:02:31 <sipa> D34TH: he is writing his own xlient
398 2012-11-03 12:02:35 <D34TH> oh
399 2012-11-03 12:02:36 <sipa> client
400 2012-11-03 12:02:41 <Guest24661> yes )
401 2012-11-03 12:02:46 <D34TH> did not know
402 2012-11-03 12:02:48 <D34TH> sorry
403 2012-11-03 12:02:55 Icoin has quit (Quit: Icoin)
404 2012-11-03 12:03:44 <Guest24661> sipa - thnks )
405 2012-11-03 12:03:51 <D34TH> bluematt: when you come alive, does your bitcoin-qt build support ipv6?
406 2012-11-03 12:04:03 <D34TH> havent seen any ipv6 connections
407 2012-11-03 12:04:15 <sipa> damn 3.2" touchscreen keyboard is small once you switched to a 4.7" one...
408 2012-11-03 12:04:46 Joric has quit ()
409 2012-11-03 12:08:04 <Guest24661> writing dns seeding - i must resolve dns and i will have some nodes - this nodes are static? (some super-node?) or i need to re-resolve some period this dns?
410 2012-11-03 12:09:25 <D34TH> Guest24661, once those nodes are connected it should connect to other nodes
411 2012-11-03 12:09:31 <D34TH> all it needs is the initial seed
412 2012-11-03 12:09:46 pecket has quit (Ping timeout: 244 seconds)
413 2012-11-03 12:09:48 <D34TH> so if they fall off afterward it shouldn't matter
414 2012-11-03 12:10:15 <Guest24661> but those nodes - are super nodes?
415 2012-11-03 12:10:27 <Guest24661> some server?
416 2012-11-03 12:10:28 <D34TH> no, they were discovered by dnsseed
417 2012-11-03 12:10:30 <D34TH> thats all
418 2012-11-03 12:11:01 rlifchitz has quit (Ping timeout: 246 seconds)
419 2012-11-03 12:11:23 <sipa> Guest24661: nodes exchange ip addresses with eachother
420 2012-11-03 12:11:28 <Guest24661> dns seed can fail?
421 2012-11-03 12:11:35 <sipa> all you need is an entry point
422 2012-11-03 12:11:45 <sipa> the dns seeds help you find one
423 2012-11-03 12:11:49 <Guest24661> i understand that
424 2012-11-03 12:12:28 <sipa> you should also remember a list of addresses you know, in case dns seeding fails
425 2012-11-03 12:12:58 <Guest24661> i must write it ti some local database?
426 2012-11-03 12:13:12 <sipa> but bootstrapping is inherently centralized, so there are risks
427 2012-11-03 12:13:14 <sipa> yes
428 2012-11-03 12:13:54 <sipa> see addrman.h in the bitcoin reference client source code for an (overkill) examplw
429 2012-11-03 12:15:09 datagutt has joined
430 2012-11-03 12:23:22 rlifchitz has joined
431 2012-11-03 12:26:52 <abrkn> man, bitcoind is crashing for me constantly
432 2012-11-03 12:26:57 <abrkn> stops responding to rpc
433 2012-11-03 12:28:12 <abrkn> i thought move, etc would be instant?
434 2012-11-03 12:28:32 <sipa> it is, once it gets processed
435 2012-11-03 12:28:33 <kjj_> what version? there was a bug in move recently
436 2012-11-03 12:28:58 JZavala has quit (Ping timeout: 255 seconds)
437 2012-11-03 12:29:13 <abrkn> Bitcoin version v0.7.1-beta
438 2012-11-03 12:29:51 <kjj_> can you run the getinfo RPC command? I think it is fixed in that one
439 2012-11-03 12:30:12 daybyter has joined
440 2012-11-03 12:30:42 <D34TH> and im just sitting here with my haribo and coffee, running git head of bitcoin-qt
441 2012-11-03 12:31:03 <abrkn> kjj_: https://gist.github.com/4007225
442 2012-11-03 12:31:33 <kjj_> yeah, should be fixed in that one, so you aren't seeing the bug I was seeing before
443 2012-11-03 12:31:59 <abrkn> oops, pasteed my balance. *remove*
444 2012-11-03 12:32:02 <kjj_> can you tail the debug.log?
445 2012-11-03 12:32:22 <abrkn> ok so im unlocking..
446 2012-11-03 12:32:32 <abrkn> then i move 0.01 from one accnt to another
447 2012-11-03 12:32:53 <abrkn> *tap foot*
448 2012-11-03 12:33:36 <sipa> abrkn: does it stop working altogether, or is it just slow?
449 2012-11-03 12:33:38 <abrkn> ok, now it appears to be stuck entirely. is it safe to paste it?
450 2012-11-03 12:33:38 <kjj_> do you have to restart after issuing a move command? or does it just take a while?
451 2012-11-03 12:33:52 <abrkn> or does my log contain anything that could get me robbed
452 2012-11-03 12:34:08 ThomasV_ has quit (Ping timeout: 260 seconds)
453 2012-11-03 12:34:10 <sipa> debug.log doesn't contain passwords or private keys
454 2012-11-03 12:34:13 <kjj_> no, shouldn't be anything unsafe in the logs
455 2012-11-03 12:34:13 <abrkn> ok
456 2012-11-03 12:34:18 <sipa> it may compromise your privacy though
457 2012-11-03 12:34:27 <abrkn> thats fine, i use facebook
458 2012-11-03 12:34:29 <abrkn> :D
459 2012-11-03 12:34:30 <sipa> haha
460 2012-11-03 12:35:25 <abrkn> db run recovery?
461 2012-11-03 12:35:29 <abrkn> happened when i ctrl-c
462 2012-11-03 12:35:53 <abrkn> EnvShutdown exception: DB_RUNRECOVERY: Fatal error, run database recovery (-30974)
463 2012-11-03 12:37:30 bera has joined
464 2012-11-03 12:37:48 D34TH has quit (Read error: No route to host)
465 2012-11-03 12:37:49 D34TH_ has joined
466 2012-11-03 12:38:29 <Guest24661> when dns seeding - what port i must use? 8333?
467 2012-11-03 12:38:57 <sipa> yes
468 2012-11-03 12:39:04 D34TH_ is now known as D34TH
469 2012-11-03 12:39:14 D34TH has quit (Changing host)
470 2012-11-03 12:39:14 D34TH has joined
471 2012-11-03 12:39:17 slush has joined
472 2012-11-03 12:40:55 <abrkn> heres my log
473 2012-11-03 12:40:55 <abrkn> https://gist.github.com/4007235
474 2012-11-03 12:41:40 <abrkn> i unlocked, initiated a move and it's been stuck for 5 min on the rpc call
475 2012-11-03 12:42:10 <sipa> ok, that's a deadlock
476 2012-11-03 12:42:25 <kjj_> is unlock necessary before a move?
477 2012-11-03 12:42:28 <sipa> no
478 2012-11-03 12:42:35 <abrkn> i wouldnt think, but did just in case :)
479 2012-11-03 12:42:40 <Guest24661> great i have connected to some noods )
480 2012-11-03 12:42:59 <Guest24661> thnk you sipa
481 2012-11-03 12:43:09 <abrkn> i run windows 8 rtm x64 btw
482 2012-11-03 12:43:21 <abrkn> i could try another version of bitcoind?
483 2012-11-03 12:43:32 <kjj_> after line 145, did you kill it off?
484 2012-11-03 12:44:02 <abrkn> nope, it's still running both daemon and my rpc call now
485 2012-11-03 12:44:06 <Guest24661> hove many noods i need for work?
486 2012-11-03 12:44:18 <kjj_> Guest24661: at least 1
487 2012-11-03 12:44:29 <Guest24661> and max count?
488 2012-11-03 12:44:32 <Guest24661> some limit
489 2012-11-03 12:44:38 <kjj_> default max is 8
490 2012-11-03 12:44:53 <Guest24661> thnks
491 2012-11-03 12:45:33 <kjj_> that does look exactly like the move bug that I was getting in a previous version, but mine has been totally fine since I upgraded
492 2012-11-03 12:45:38 <abrkn> damn
493 2012-11-03 12:45:51 <sipa> there was never a move bug
494 2012-11-03 12:45:57 <sipa> but we've seen deadlocks before
495 2012-11-03 12:46:12 <abrkn> i wish i could help but i dont have any c experience
496 2012-11-03 12:46:17 <sipa> does the problem persist after restarting the node?
497 2012-11-03 12:46:21 <kjj_> well, there was a bug that got me every time I tried to do a move
498 2012-11-03 12:46:28 <abrkn> yes, have tried 3 times restarting, sipa
499 2012-11-03 12:46:52 <abrkn> ok, downgraded daemon to 7.0 now
500 2012-11-03 12:47:02 <abrkn> it appears to be happy
501 2012-11-03 12:50:20 <abrkn> oh, the coolest shit ever happened to me yesterday. im making a video poker game with btc
502 2012-11-03 12:50:39 <abrkn> after testing play for less than 5 min i drew a royal straight flush =) 1/72000 or something
503 2012-11-03 12:51:27 <kjj_> heh. I would check the random source and the deck code
504 2012-11-03 12:51:47 <abrkn> kjj: thats the thing, it looks fine =)
505 2012-11-03 12:52:00 <abrkn> kjj: each client submits a salt, server has a secret salt. the combo is used to shuffle
506 2012-11-03 12:56:49 Z0rZ0rZ0r1 has joined
507 2012-11-03 12:56:50 Z0rZ0rZ0r has quit (Disconnected by services)
508 2012-11-03 12:58:27 <kjj_> sipa: there was a specific change in one of the pulls for 0.7.1 that fixed the deadlock in move that I was getting, but for the life of me, I can't find it now
509 2012-11-03 13:02:08 MC1984 has quit (Ping timeout: 268 seconds)
510 2012-11-03 13:07:19 <Guest24661> how to calculate checksum in message headers? what is algo?
511 2012-11-03 13:07:50 <kjj_> what do you mean by message headers?
512 2012-11-03 13:08:13 <kjj_> like network protocol messages?
513 2012-11-03 13:08:57 pecket has joined
514 2012-11-03 13:09:10 <sipa> Guest24661: double sha-256, trunctated to 32 bits
515 2012-11-03 13:09:27 pecket has quit (Client Quit)
516 2012-11-03 13:09:34 <Guest24661> sipa - thnks again :)
517 2012-11-03 13:09:45 pecket has joined
518 2012-11-03 13:10:10 <Guest24661> double sha-256 of whole packet, for example - for version packet
519 2012-11-03 13:10:36 <kjj_> just the payload, according to the wiki. https://en.bitcoin.it/wiki/Protocol_specification#Message_structure
520 2012-11-03 13:14:48 MC1984 has joined
521 2012-11-03 13:17:20 one_zero has quit ()
522 2012-11-03 13:22:45 Zarutian has joined
523 2012-11-03 13:31:30 slush has quit (Ping timeout: 252 seconds)
524 2012-11-03 13:43:39 bakh has quit (Quit: Ex-Chat)
525 2012-11-03 13:47:08 <etotheipi_> sipa: talking about the deterministic wallet algorithm
526 2012-11-03 13:47:18 <etotheipi_> sipa: I won't be copying the file format, but I will be using the same algorithm
527 2012-11-03 13:48:51 <sipa> etotheipi_: that's what i expected; they are completely unrelated
528 2012-11-03 13:49:14 Descry has quit (Remote host closed the connection)
529 2012-11-03 13:49:23 <sipa> since i've heard MultiBit and perhaps Electrum are interested in being compatible, i've started looking at it again
530 2012-11-03 13:49:44 <etotheipi_> sipa: so I had previously implemented it and even posted some unit-tests
531 2012-11-03 13:49:53 <sipa> ah, really?
532 2012-11-03 13:50:01 <etotheipi_> it was forever ago
533 2012-11-03 13:50:07 <etotheipi_> I was just wondering if those were still valid
534 2012-11-03 13:50:07 <sipa> apparently i implemented some unit tests as well
535 2012-11-03 13:50:27 <sipa> i don't mind adding yours to the test set, if they match
536 2012-11-03 13:50:37 <etotheipi_> well if they don't match, we need to make them match!
537 2012-11-03 13:50:41 <sipa> agree
538 2012-11-03 13:51:06 <sipa> i was right now actually busy rebasing my old patch onto git head, so i can experiment again
539 2012-11-03 13:51:07 pecket has quit (Read error: Connection reset by peer)
540 2012-11-03 13:51:19 <etotheipi_> so did you ever get feedback on the algorithm?
541 2012-11-03 13:51:29 <sipa> not really
542 2012-11-03 13:51:50 <sipa> someone noticed that if you have a child private key, and a parent extended public key, you can derive the parent private key
543 2012-11-03 13:52:05 <sipa> i don't see how that can be prevented though, but it is certainly worth noting in the text
544 2012-11-03 13:52:45 daybyter has quit (Quit: Konversation terminated!)
545 2012-11-03 13:53:07 <etotheipi_> what was "extended public key" mean, again?
546 2012-11-03 13:53:24 <sipa> pubkey + chain code
547 2012-11-03 13:53:55 <etotheipi_> what is "extended" for?
548 2012-11-03 13:54:02 <etotheipi_> does it just mean the root of the key tree?
549 2012-11-03 13:54:35 <sipa> extended means including the chain code
550 2012-11-03 13:54:40 <etotheipi_> oh, right
551 2012-11-03 13:55:06 <sipa> you even drew a nice diagram for that stuff :)
552 2012-11-03 13:55:42 slush has joined
553 2012-11-03 13:56:00 <etotheipi_> heh, yeah... tell me if you think it needs updating in any way
554 2012-11-03 13:56:15 <etotheipi_> so apparently my last commit to my "newwallet" branch was May 1
555 2012-11-03 13:56:26 <etotheipi_> I didn't realize it was that long ago
556 2012-11-03 13:56:29 <Tykling> when using listtransactions periodically, what should I use to check for "new" transactions since last time I checked ? can I rely on the timestamp always being larger ?
557 2012-11-03 13:57:50 <abrkn> var previouslyKnown = 0; var newToMe = listtransactions previouslyKnown 1000
558 2012-11-03 13:58:05 <abrkn> previouslyKnown += newToMe.length
559 2012-11-03 13:58:08 <abrkn> is how i do it
560 2012-11-03 13:58:18 <Tykling> ok so you just count the number of transactions
561 2012-11-03 13:58:20 <Tykling> ofcourse
562 2012-11-03 13:58:21 <abrkn> yep
563 2012-11-03 13:58:28 <abrkn> and i listen on blockchain.info stream
564 2012-11-03 13:58:32 <Tykling> neato, thanks :)
565 2012-11-03 13:58:44 <Tykling> ok
566 2012-11-03 13:58:45 <abrkn> so when they say something happened to my addresses i just poll my transactions until something shows up
567 2012-11-03 13:58:49 <sipa> etotheipi_: i don't think anything cjanged
568 2012-11-03 13:58:57 <Tykling> ahhh, clever
569 2012-11-03 13:59:33 <Tykling> I was going to listen to the local logfile and see when it logged "flushed wallet.dat" and then check listtransactions when that happens
570 2012-11-03 13:59:37 pecket has joined
571 2012-11-03 14:00:17 <Tykling> not pretty, but hey
572 2012-11-03 14:00:47 <kjj_> in my experience, listtransactions with no qualifiers has always shown the 10 most recent transactions
573 2012-11-03 14:01:19 <kjj_> most recent in the sense of my node learning about them, not necessarily chronological
574 2012-11-03 14:01:29 <Tykling> sure but ideally this should be eventbased so you don't need to poll needlessly
575 2012-11-03 14:01:30 <etotheipi_> sipa: looks like I'm on my way to Armory beta... and I think the wallet format will be the first major upgrade after that
576 2012-11-03 14:01:42 <sipa> etotheipi_: where can i find your unit tests?
577 2012-11-03 14:01:43 <etotheipi_> I've got a couple more days/weeks of testing and polishing
578 2012-11-03 14:01:52 <etotheipi_> sipa: hold on
579 2012-11-03 14:02:09 <kjj_> you could use the blocknotify hook to find out when new blocks come in, and then poll only then.
580 2012-11-03 14:02:12 <bera> who needs
581 2012-11-03 14:02:13 <bera> bitcoins
582 2012-11-03 14:02:53 <Tykling> kjj_: but the blocks only come in when they are found, so that would introduce a significant delay before I "discover" a payment
583 2012-11-03 14:03:08 <Tykling> kjj_: that was my first approach but I abandoned it for the above reason
584 2012-11-03 14:03:25 <kjj_> true. are you planning to do zero-conf acceptance?
585 2012-11-03 14:04:11 <etotheipi_> sipa: it's under the "TestHMAC()" function, which actually tests the BIP 32 implementation, too
586 2012-11-03 14:04:12 <etotheipi_> https://github.com/etotheipi/BitcoinArmory/blob/newwallet/cppForSwig/BlockUtilsTest.cpp#L1119
587 2012-11-03 14:04:22 <Tykling> kjj_: no, I'll wait for a couple of confirmations before actually doing anything, but I'd still like to be able to show the user that thee payment was received
588 2012-11-03 14:04:54 <etotheipi_> sipa: to be clear -- I didn't have "correct" answers for those CKD operations
589 2012-11-03 14:04:58 ThomasV_ has joined
590 2012-11-03 14:05:00 <etotheipi_> so they really just print out the results
591 2012-11-03 14:05:12 <kjj_> etotheipi_: just out of curiosity, how do you know how far down your key chain to go when looking for things? seems to be that in split/offline mode the node handing out pubkeys could run way past the node generating private keys
592 2012-11-03 14:05:40 <etotheipi_> sipa: it does some consistency checks, but otherwise I never had a reference point to compare to
593 2012-11-03 14:06:18 <etotheipi_> kjj_: that is true, and why I'm adding a manual "Extend Keychain" button. But I did program it to extend the keychain every time it signs a transaction
594 2012-11-03 14:06:28 <kjj_> Tykling: with the current setup, I can't think of anything you can do other than polling or an external feed
595 2012-11-03 14:06:45 <etotheipi_> so the keypool starts with 100 keys, and it should try to maintain 100 keys past the last one you signed with
596 2012-11-03 14:06:48 <sipa> etotheipi_: compiling my unit tests now
597 2012-11-03 14:07:16 <Tykling> kjj_: right, logfile tailing it is then :) should be fine
598 2012-11-03 14:07:22 <kjj_> maybe maintain 100 past the last one it sees
599 2012-11-03 14:07:26 <etotheipi_> kjj_: but now that you mention it, I should verify that behavior and fix it (I remember thinking I needed that, but I just realized I'm not sure I ever implemented it)
600 2012-11-03 14:08:01 <etotheipi_> kjj_: I'm going by "signed with" and "seen" as the same thing
601 2012-11-03 14:08:15 <kjj_> as in, if your pubkey node hands out 50 keys, and only the last one is actually used, have the privkey node skip to 50+100
602 2012-11-03 14:08:26 <kjj_> ok. cool
603 2012-11-03 14:08:36 <etotheipi_> kjj_: that was my intention, but I'll make sure it actually does that
604 2012-11-03 14:09:15 <sipa> https://github.com/sipa/bitcoin/commit/edbdc5313c02dc82104cfb6017ce3427bf323071
605 2012-11-03 14:09:17 <kjj_> Tykling: I'd just poll every X seconds into a cache, and then have everything else use that cache
606 2012-11-03 14:11:25 <kjj_> I'm sure that someone could hack up a -transactionnotify= hook just like -blocknotify= but I bet it would crush your server having to call out to external scripts every time a new TX came in
607 2012-11-03 14:12:49 <etotheipi_> kjj_: thanks for bringing this up -- it turns out I only advance the key pool by 1 every time it signs something... it will delay running out of keys, but it will not be long-term sustainable!
608 2012-11-03 14:14:18 bera has left ()
609 2012-11-03 14:15:09 <Tykling> kjj_: it should only notify when there is wallet activity, ie. when sending or receiving coins, the rest is uninteresting
610 2012-11-03 14:15:11 <etotheipi_> kjj_: nevermind... the code actually does what I thought it did... it actually does what it's supposed to... +1
611 2012-11-03 14:15:39 chmod755 has joined
612 2012-11-03 14:16:47 <kjj_> etotheipi_: if it always does +1, how does it keep in sync with the pubkey chain which can hand out keys which will never be used?
613 2012-11-03 14:19:10 <etotheipi_> kjj_: I lied... it does always extend the keypool to lastseen+100
614 2012-11-03 14:19:55 <kjj_> ok, good. that should be safest. I doubt many people will hand out more than 99 unique keys without any of them getting used
615 2012-11-03 14:20:02 <etotheipi_> right
616 2012-11-03 14:20:26 <etotheipi_> although one of my polishing activities before beta will be to add a "key pool" button to the "Expert" interface
617 2012-11-03 14:22:20 <etotheipi_> I've been battling the best way to "recover" a wallet... and I realized that no matter what I do, I only cover like 98% of use cases
618 2012-11-03 14:22:59 <etotheipi_> right now, I have to iteratively search the blockchain using a large keypool, and then extend the keypool each time until it no longer grows any more
619 2012-11-03 14:23:09 <etotheipi_> slow as dirt...
620 2012-11-03 14:23:32 <kjj_> ouch
621 2012-11-03 14:23:47 <sipa> why? later keys can only be used after older keys, right?
622 2012-11-03 14:24:18 <etotheipi_> sipa: mostly correct
623 2012-11-03 14:24:20 <kjj_> just because a key was created later doesn't mean that it was first used later
624 2012-11-03 14:24:46 <etotheipi_> those earlier keys may not have been used at all, and the blockchain is the only evidence I have that it was used
625 2012-11-03 14:26:08 slush has quit (Ping timeout: 252 seconds)
626 2012-11-03 14:26:13 <etotheipi_> so I have to extend the keychain to 300... search the blockchain, and if any keys higher than 200 were used, I extend to 500 and research...
627 2012-11-03 14:26:59 arij has joined
628 2012-11-03 14:27:03 <etotheipi_> rinse and repeat...
629 2012-11-03 14:27:19 <sipa> right, but you can limit that second search to the part of the chain after the extension was found
630 2012-11-03 14:27:21 <etotheipi_> I need to make it exponential though... probably extend keypool by 50% every time or something
631 2012-11-03 14:27:22 arij is now known as Guest3751
632 2012-11-03 14:27:41 <etotheipi_> sipa: that's a good point
633 2012-11-03 14:27:54 <sipa> perhaps with a small overlap
634 2012-11-03 14:27:57 <etotheipi_> not 100% reliable as kjj_ said, but I think reliable enough
635 2012-11-03 14:28:39 <sipa> anything that requires rescanning the entire chain multiple times has a scalability problem, imho
636 2012-11-03 14:28:42 <kjj_> no, I think that what Sipa is saying is that after you've searched on 0...100, you can then search on 101...300 rather than 0...300
637 2012-11-03 14:28:43 <etotheipi_> but it still doesn't solve the problem of someone, say, using a webserver that hands out addresses like candy, and may have 200 empty addresses
638 2012-11-03 14:29:22 <sipa> as long as he respects the rule of not issuing number 200+X before number X was used, there is no problem
639 2012-11-03 14:29:26 <etotheipi_> sipa: I agree, but I also don't really know any other wya to make sure
640 2012-11-03 14:29:52 <etotheipi_> you're recommending partial rescans... which is good, but either way there will still be a lot of scanning
641 2012-11-03 14:30:10 <etotheipi_> so what is he supposed to do when he hits X+200? reuse addresses?
642 2012-11-03 14:30:15 <sipa> ?
643 2012-11-03 14:30:21 <sipa> i don't see the problem
644 2012-11-03 14:30:23 <kjj_> well... how about a RPC call that gives the last keyindex?
645 2012-11-03 14:30:39 <sipa> how can he 'hit' X+200 without having used X?
646 2012-11-03 14:31:01 <sipa> if he needs more than 200 unused addresses in circulation, he needs to increase his key gap
647 2012-11-03 14:31:11 <sipa> and as long as he knows his key gap, there is no problem
648 2012-11-03 14:31:11 <etotheipi_> he may have handed out X, X+1, X+2, etc.... but they were never used in the blockchain
649 2012-11-03 14:31:46 <kjj_> you may run into problems if you use keys for order tracking or something, but I bet you could figure it out from context
650 2012-11-03 14:32:32 <etotheipi_> I hoping to be able to avoid querying the user for this... since it's a rather abstract concept for some folks... but I guess that's why I have an expert interface
651 2012-11-03 14:33:32 <kjj_> I think that the sort of people most likely to have this problem will understand and accept passing the value back to the secure wallet manually
652 2012-11-03 14:33:42 <etotheipi_> yeah...
653 2012-11-03 14:33:45 <kjj_> but I agree, far from ideal
654 2012-11-03 14:34:40 <kjj_> ooh. too bad you can't reserve a control address in the sequence, and give the online wallet a small balance that it can use to send coded amounts to the offline wallet
655 2012-11-03 14:36:37 <sipa> ewww
656 2012-11-03 14:36:53 <kjj_> hey Sipa, do you know the wallet code pretty well?
657 2012-11-03 14:37:04 <sipa> i wrote CWallet :)
658 2012-11-03 14:37:23 <D34TH> thats a definate maybe
659 2012-11-03 14:37:34 <kjj_> if I wanted to add a hook like blocknotify to trigger a script when wallet transactions came in, would AddToWallet be the right place to put it?
660 2012-11-03 14:38:15 <sipa> there actually already is a hook for what you need, i think
661 2012-11-03 14:38:27 <sipa> NotifyTransactionChanged
662 2012-11-03 14:39:02 JDuke128 has joined
663 2012-11-03 14:39:14 <kjj_> ok, cool. that does mean that I'm in the right place.
664 2012-11-03 14:40:03 <kjj_> that looks like a hook for the UI.
665 2012-11-03 14:40:39 <sipa> that's the only thing it is used for right now
666 2012-11-03 14:40:49 <sipa> but that doesn't mean it's the only thing it's useful for
667 2012-11-03 14:43:42 <sipa> etotheipi_: that's how I imagine SPV/Bloom nodes with deterministic wallets will work: request filtered blocks since wallet birth time, with a preinitialized gap, and when transactions are found, increase the keys in the filter
668 2012-11-03 14:44:53 <etotheipi_> what do you mean by "filtered blocks"?
669 2012-11-03 14:45:27 <sipa> it's a proposed extension to let SPV nodes send a bloom filter to their peer
670 2012-11-03 14:45:34 slush has joined
671 2012-11-03 14:45:41 <sipa> which will be used to select interesting transactions for them
672 2012-11-03 14:45:41 <etotheipi_> that's what I thought... I just haven't been following it
673 2012-11-03 14:45:45 <kjj_> sipa: that method appears to be in the QT code. I'd rather not touch it
674 2012-11-03 14:45:49 <sipa> kjj_: huh?
675 2012-11-03 14:45:57 <sipa> kjj_: it's in CWallet
676 2012-11-03 14:46:18 <kjj_> NotifyTransactionChanged appears to be in qt/walletmodel.cpp
677 2012-11-03 14:47:02 <sipa> no that's the method that is hooked into CWallet::NotifyTransactionChanged
678 2012-11-03 14:47:09 <sipa> unfortunate that it has the same name
679 2012-11-03 14:47:15 <sipa> you can hook anything into it
680 2012-11-03 14:48:14 <kjj_> I'm totally not seeing a function body in wallet.cpp or wallet.h
681 2012-11-03 14:48:34 <sipa> you have to write one yourself!
682 2012-11-03 14:48:37 <kjj_> I see the prototype in wallet.h, and 4 calls in wallet.cpp
683 2012-11-03 14:48:43 <kjj_> oooohhhhh. ok.
684 2012-11-03 14:49:03 <sipa> CWallet::NotifyWalletTransaction is not a method, it's a hook
685 2012-11-03 14:49:18 <sipa> you tell it "hey, in the future, when what you refer to happens, call method X!"
686 2012-11-03 14:55:02 <kjj_> for an external notification, the patch is like 5 lines (counting the include, but not counting blanks and { } )
687 2012-11-03 15:02:58 <kjj_> silly git question... when I want to resync my local repo to the master, I "git checkout master" and then "git clone git@github.com:blah/blah" right?
688 2012-11-03 15:03:06 <sipa> no
689 2012-11-03 15:03:09 <sipa> you only clone once
690 2012-11-03 15:03:45 <sipa> "git fetch origin" should bring updated remote branches into scope
691 2012-11-03 15:03:54 <sipa> git pull can be used to merge them into your local branch
692 2012-11-03 15:05:24 <kjj_> ok, so after those two, my local repo is now a copy of the master repo, and I can make a branch and pull request?
693 2012-11-03 15:06:12 <sipa> to do github pull request you already need a fork on github of the project
694 2012-11-03 15:06:28 <sipa> https://bitcointalk.org/index.php?topic=4571.0
695 2012-11-03 15:07:22 <kjj_> yup, I've done a couple of those before. I've just never had to update my local copy to reflect upstream changes yet
696 2012-11-03 15:07:53 <sipa> git fetch upstream && git reset --hard upstream/master, is what i do before starting a pullreq
697 2012-11-03 15:08:12 <sipa> but beware that that literally throws away the changes you made in your branch before
698 2012-11-03 15:08:17 agricocb has quit (Quit: Leaving.)
699 2012-11-03 15:08:44 <kjj_> as long as I switch back to the master branch, and always do my work in other branches, that should be fine, right?
700 2012-11-03 15:08:48 <sipa> yes
701 2012-11-03 15:09:16 <kjj_> honestly, I usually do stuff in the 0.7.1 or whatever directory from the tarball, and then go back and figure out how to git it up
702 2012-11-03 15:09:24 <sipa> haha
703 2012-11-03 15:09:33 <kjj_> but I only do tiny little things, so it works for me
704 2012-11-03 15:11:01 eoss has joined
705 2012-11-03 15:12:10 <kjj_> plus, on the ancient box I use, having to do full recompiles is painful
706 2012-11-03 15:14:14 <kjj_> you want to take a look?
707 2012-11-03 15:14:20 <kjj_> https://github.com/kjj2/bitcoin/commit/93ce4b54b5e35cd3a89685fdeb04f62d0adf3c6d
708 2012-11-03 15:14:34 <kjj_> this is to solve Tykling's problem from earlier
709 2012-11-03 15:15:19 <sipa> add it to init.cpp's help message too
710 2012-11-03 15:15:26 <kjj_> oh, duh. right
711 2012-11-03 15:15:35 <sipa> looks good otherwise
712 2012-11-03 15:16:16 <sipa> TD[gone], BlueMatt: have a look: https://github.com/sipa/bitcoin/commit/e84a8530cafc499008630e726ad8b30416ba623c
713 2012-11-03 15:16:43 <kjj_> now am I right in thinking that it will trigger also on a spend (the CT_UPDATED thing) ?
714 2012-11-03 15:16:45 <sipa> more sanity checks, more tests, guarantees+checks on serialized size, and check that random bit flips break the authentication
715 2012-11-03 15:16:54 <sipa> kjj_: i suppose, yes
716 2012-11-03 15:17:56 slush has quit (Ping timeout: 260 seconds)
717 2012-11-03 15:20:18 JDuke128 has quit (Quit: Computer has gone to sleep.)
718 2012-11-03 15:28:13 edcba__ has joined
719 2012-11-03 15:28:46 edcba has quit (Ping timeout: 246 seconds)
720 2012-11-03 15:32:08 datagutt is now known as javasux
721 2012-11-03 15:32:16 javasux is now known as datagutt
722 2012-11-03 15:32:39 walletbit has joined
723 2012-11-03 15:34:05 Guest24661 has quit (Ping timeout: 245 seconds)
724 2012-11-03 15:36:57 Arnavion has quit (Quit: Arnavion)
725 2012-11-03 15:42:45 walletbit has quit ()
726 2012-11-03 15:42:48 kreal has quit ()
727 2012-11-03 15:45:52 kreal has joined
728 2012-11-03 16:07:07 BlackPrapor has quit (Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/)
729 2012-11-03 16:08:14 DutchBrat_ has quit (Remote host closed the connection)
730 2012-11-03 16:10:32 <abrkn> uhh
731 2012-11-03 16:10:40 <abrkn> why doesnt listtransactions list moves in order?
732 2012-11-03 16:11:10 <abrkn> my app is depending on transactions appearing in descending order of time :-(
733 2012-11-03 16:12:26 brwyatt is now known as Away!~brwyatt@brwyatt.net|brwyatt
734 2012-11-03 16:15:10 m00p has joined
735 2012-11-03 16:18:26 agricocb has joined
736 2012-11-03 16:18:35 da2ce7_d has joined
737 2012-11-03 16:21:16 da2ce7 has quit (Ping timeout: 260 seconds)
738 2012-11-03 16:26:30 <kjj_> change your app
739 2012-11-03 16:30:46 <kreal> add it to array, and sort by timestamp
740 2012-11-03 16:30:54 <kreal> profit??
741 2012-11-03 16:31:49 wizkidO57 has joined
742 2012-11-03 16:31:52 wizkidO57 has quit (Excess Flood)
743 2012-11-03 16:32:08 abrkn has quit (Remote host closed the connection)
744 2012-11-03 16:32:25 wizkidO57 has joined
745 2012-11-03 16:32:57 wizkid057 has quit (Disconnected by services)
746 2012-11-03 16:33:02 wizkidO57 is now known as wizkid057
747 2012-11-03 16:36:54 <helo> in order to get the most full nodes, would it make sense on startup to let users set limits on the resources bitcoin will use?
748 2012-11-03 16:38:08 ovidiusoft has quit (Ping timeout: 252 seconds)
749 2012-11-03 16:38:22 <helo> CPU %, disk idle write %, bandwidth, etc
750 2012-11-03 16:39:15 <sipa> if you can't keep up with cpu to run a full node, you shouldn't run one imho
751 2012-11-03 16:39:20 <helo> or some other heuristic
752 2012-11-03 16:39:36 <sipa> if you can't afford the bandwidth to provide the blockchain to other nodes, you shouldn't
753 2012-11-03 16:39:37 <helo> this would mostly be relevant only during IBD
754 2012-11-03 16:39:47 ovidiusoft has joined
755 2012-11-03 16:39:52 <helo> of course, once you're caught up, stay caught up
756 2012-11-03 16:40:45 <helo> but as bottlenecks get removed in some places, we get close to maxing out different hardware
757 2012-11-03 16:41:48 <helo> e.g. if we used 100% of all available cores for fastest IBD, the system would be completely unusable for anything else
758 2012-11-03 16:42:48 <helo> so someone who wanted to use their computer might not want to run a full node if they need their system to be ~usable
759 2012-11-03 16:43:13 <kjj_> the operating system should handle the multitasking fairly well already
760 2012-11-03 16:44:06 <sipa> maybe reducing priirity of the signature verification threads is usefull
761 2012-11-03 16:44:10 <sipa> priority
762 2012-11-03 16:46:52 <helo> not really a problem right now... almost all of the complaints are about the time required, no system responsiveness during IBD
763 2012-11-03 16:49:37 <sipa> bad responsivelness is almost always due to excessive I/O or ram/swap usage
764 2012-11-03 16:49:42 <sipa> not due to cpu usage
765 2012-11-03 16:53:11 abrkn has joined
766 2012-11-03 16:53:30 <ThomasV_> sipa: so, I wrote a small patch for bitcoind at electrum servers, that adds an optional height parameter to getrawtransaction. should I create a pull request for it, or is to too specific?
767 2012-11-03 16:53:44 <abrkn> kjj: lost my net. anyway, how cshould i change my app? i just need to know about new transactions to update internal balances
768 2012-11-03 16:54:28 <helo> but it could hinder someone's ability to use their computer for some cpu-heavy task... i guess settin proper niceness would handle any cpu problems just fine
769 2012-11-03 16:54:49 maaku has joined
770 2012-11-03 16:55:48 <kjj_> abrkn: keep track of TxIDs and skip over them on subsequent polls
771 2012-11-03 17:00:10 <kjj_> or, if you want are compiling your own bitcoind: https://github.com/bitcoin/bitcoin/pull/1974/files
772 2012-11-03 17:05:02 brwyatt is now known as brwyatt|Away
773 2012-11-03 17:07:18 <abrkn> kjj: but wont that make me do listtransactions and potentially get hundreds or thousands or rows every time to check against my db?
774 2012-11-03 17:07:23 runeks has joined
775 2012-11-03 17:09:42 Motest003 has joined
776 2012-11-03 17:10:09 copumpkin has quit (Ping timeout: 252 seconds)
777 2012-11-03 17:10:20 Motest003 has quit (Client Quit)
778 2012-11-03 17:10:25 edcba__ is now known as edcba
779 2012-11-03 17:13:40 copumpkin has joined
780 2012-11-03 17:14:33 <sipa> ThomasV_: hmm, unsure... i feel that the right solution is providing an index for those who need such functionality, as passing the height along 1) is slower as it reads the whole block 2) is vulnerable to race conditions during reorgs
781 2012-11-03 17:14:41 <kjj_> I don't think so, no. and would it really matter if it did?
782 2012-11-03 17:15:42 daybyter has joined
783 2012-11-03 17:15:49 vampireb has quit (Quit: Lost terminal)
784 2012-11-03 17:18:05 <D34TH> i have a python based BTC addr gen
785 2012-11-03 17:18:06 <D34TH> :D
786 2012-11-03 17:18:19 <D34TH> im so happy it works
787 2012-11-03 17:18:32 <D34TH> now i wonder how quick it generates
788 2012-11-03 17:19:47 <kjj_> where are you getting your random bits from?
789 2012-11-03 17:20:03 <D34TH> ill post my function give me a minute
790 2012-11-03 17:20:11 <D34TH> i want to clean the code
791 2012-11-03 17:20:15 <runeks> D34TH: cool. i had a lot of fun writing such a thing as well
792 2012-11-03 17:20:32 <D34TH> i got alot of the idea from flatfly
793 2012-11-03 17:20:37 <D34TH> im trying to make it multithreaded
794 2012-11-03 17:20:47 <runeks> did you program the EC math yourself?
795 2012-11-03 17:20:53 <D34TH> no
796 2012-11-03 17:20:58 <runeks> me neither
797 2012-11-03 17:21:01 <D34TH> i got that from him
798 2012-11-03 17:21:14 <runeks> i used bitcointalk.org user Lis' ECDSA code
799 2012-11-03 17:21:22 <kjj_> multithreaded? like a vanitygen type finder?
800 2012-11-03 17:21:49 <D34TH> kjj_, yea, and then im looking up the balance
801 2012-11-03 17:21:53 <D34TH> and saving it to a DB
802 2012-11-03 17:22:13 <sipa> how do you lookup the balance?
803 2012-11-03 17:22:18 <D34TH> abe api
804 2012-11-03 17:22:20 <runeks> if you want it to be really fast, leveraging OpenSSL is probably a good idea.
805 2012-11-03 17:22:24 <D34TH> i had a local abe running
806 2012-11-03 17:22:35 <D34TH> but the server is derping right now
807 2012-11-03 17:22:37 <kjj_> are you just starting with one random number, and the chaining EC multiply?
808 2012-11-03 17:24:06 <D34TH> here ill post the addr gen function
809 2012-11-03 17:25:29 <D34TH> http://pastebin.com/cX8xVp4E
810 2012-11-03 17:26:50 <D34TH> i should probably have syntax highlighted that
811 2012-11-03 17:27:09 <D34TH> http://pastebin.com/gLNRuzRn
812 2012-11-03 17:27:24 <runeks> what is the ecdsa library you're using?
813 2012-11-03 17:27:25 <sipa> just adding one to the provate key, and adding g to the public key ineacb iterationwill be a lot faster
814 2012-11-03 17:27:50 <sipa> but if you wanted speed, you wouldn't use php anyway
815 2012-11-03 17:28:05 <runeks> isn't it Python?
816 2012-11-03 17:28:06 <D34TH> python
817 2012-11-03 17:28:17 <runeks> but the same applies I guess :)
818 2012-11-03 17:28:18 <sipa> oh, apologies
819 2012-11-03 17:28:22 <sipa> but indeed
820 2012-11-03 17:29:02 <D34TH> im doing this for fun
821 2012-11-03 17:29:06 <sipa> sure
822 2012-11-03 17:29:15 <sipa> best reason there is
823 2012-11-03 17:29:25 <runeks> I think you can get it up to native speed in Python actually. there are python libs that basically just load the OpenSSL shared libraries and run their functions. I imagine that should be quite fast, if not just as fast as native.
824 2012-11-03 17:30:19 <D34TH> http://github.com/warner/python-ecdsa
825 2012-11-03 17:32:51 rdponticelli has quit (Ping timeout: 276 seconds)
826 2012-11-03 17:33:52 dvide has quit ()
827 2012-11-03 17:36:17 <D34TH> ~25s to generate 128 keys and convert them to addrs
828 2012-11-03 17:36:27 <D34TH> i could cut down on time ALOT
829 2012-11-03 17:37:22 <runeks> D34TH: doesn't the code you posted just print a random number to the console? you don't use addy() anywhere, do you?
830 2012-11-03 17:37:32 <kjj_> I would check my random numbers. I don't think that my box can come up with 128*256 bits of entropy in 25 seconds
831 2012-11-03 17:38:38 <D34TH> runeks, correct thats actually the pkey
832 2012-11-03 17:38:39 <D34TH> whoops
833 2012-11-03 17:39:04 <D34TH> s/int(/addy(int(
834 2012-11-03 17:39:12 <runeks> ah
835 2012-11-03 17:39:41 <D34TH> and an ) on the end
836 2012-11-03 17:39:51 RainbowDashh has quit (Quit: SLEEP! [15:41:09] <DerpyExpress> RainbowDashh: Pony_ was last seen 1 day, 16 hours ago saying: I'm still alive BTW)
837 2012-11-03 17:40:14 BlackPrapor has joined
838 2012-11-03 17:40:42 <runeks> I think you should be using the order of the curve as the maximum number for your private key though. it "only" goes up to 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141
839 2012-11-03 17:41:04 <runeks> although the probability that a random number between 2 and 2^256 is below this number is fairly great
840 2012-11-03 17:42:30 <D34TH> kjj_, http://pastebin.com/NZauQLcD
841 2012-11-03 17:44:00 <kjj_> I have no idea what ecdsa.util.randrange is using for an entropy source. I wouldn't trust a key that came out of this.
842 2012-11-03 17:44:10 <runeks> so I would say you should use ecdsa.util.randrange( secp256k1point.order() ) instead of ecdsa.util.randrange( pow(2,256) )
843 2012-11-03 17:44:13 <kjj_> which is no big deal if this is just a learning toy
844 2012-11-03 17:44:35 <D34TH> its mostly a learning toy
845 2012-11-03 17:46:05 <runeks> kjj_: it seems it uses os.entropy
846 2012-11-03 17:46:37 <kjj_> here is how I do it in PHP: http://pastebin.com/TvTWjAwg
847 2012-11-03 17:46:45 <runeks> which doesn't exist...
848 2012-11-03 17:46:46 <ThomasV_> sipa: race condition, as in the actual height has changed and the height passed as parameter is false?
849 2012-11-03 17:46:46 <kjj_> (on linux)
850 2012-11-03 17:47:09 Arnavion has joined
851 2012-11-03 17:47:31 <runeks> kjj_: but that's really only necessary if he plans on actually sending money to the addresses
852 2012-11-03 17:47:50 <kjj_> runeks: right
853 2012-11-03 17:47:50 <D34TH> runeks, or from
854 2012-11-03 17:48:10 <D34TH> but that would be unethical
855 2012-11-03 17:48:27 denisx has joined
856 2012-11-03 17:48:33 <kjj_> meh. if he finds an address with money in it, he is beyond ethics
857 2012-11-03 17:48:39 <runeks> ah. it uses os.urandom for entropy unless you specify your own entropy function to ecdsa.util.randrange
858 2012-11-03 17:49:08 <runeks> kjj_: I'd say redeeming that transction would be beyond ethics. just finding it isn't...
859 2012-11-03 17:49:08 <D34TH> kjj_, because 2^256?
860 2012-11-03 17:49:30 <kjj_> if you are that lucky, you are godlike, and ethics doesn't apply any more
861 2012-11-03 17:49:39 <runeks> oh, right :)
862 2012-11-03 17:49:54 <D34TH> kjj_, https://bitcointalk.org/index.php?topic=107172.0
863 2012-11-03 17:50:29 <kjj_> yeah, I've seen that. has anyone reporting any earnings from it yet?
864 2012-11-03 17:50:59 <D34TH> no, but i did contribute the abe function which he seems to have implemented incorrectly
865 2012-11-03 17:51:01 <runeks> I got curious at one point about brain wallets, and created 80 million addresses from a dictionary to see if any brainwallets from weak password existed. I didn't finish checking them all because I lost interest, but that's certainly an avenue. which is why I wouldn't recommend brain wallets
866 2012-11-03 17:51:36 <D34TH> runeks generating is easy, checking is the hard part
867 2012-11-03 17:52:04 <runeks> actually, the Armory code can check a lot of addresses fairly quickly.
868 2012-11-03 17:52:09 <kjj_> D34TH: all you need is an alternate index to the transaction set, and then checking becomes easy
869 2012-11-03 17:52:16 <runeks> (after it loads the block chain into memory)
870 2012-11-03 17:52:30 <D34TH> unfortunatly my python is 32 bit
871 2012-11-03 17:52:34 <ThomasV_> armory uses 128 bits of entropy I think
872 2012-11-03 17:52:44 <D34TH> so loading the chain into memory is not an option
873 2012-11-03 17:53:04 <sipa> ThomasV_: as in a reorganisation happened, and the transaction is now at a different height
874 2012-11-03 17:53:04 <D34TH> abe wont load properly
875 2012-11-03 17:53:05 <runeks> I created the address-from-password function in C. got up to about 5000 addresses per second.
876 2012-11-03 17:53:23 <ThomasV_> sipa: yes, that's what I meant :)
877 2012-11-03 17:53:53 <sipa> ThomasV_: it's probably only rarely a problem, but it shows it's not a proper solution :)
878 2012-11-03 17:53:56 <ThomasV_> sipa: I agree that it would be better to have an index :) I did this as a temporary solution
879 2012-11-03 17:54:29 <runeks> D34TH: if you use PAE you can still use more than 4 GB (if you have it available). I was using 4 GB of RAM to begin with and it still worked (until it started swapping)
880 2012-11-03 17:54:48 <D34TH> oh im running a 64bit os
881 2012-11-03 17:54:52 <D34TH> just 32bit python
882 2012-11-03 17:55:17 <sipa> D34TH: only addresses with a nonzero balance interest you - that certainly fits in RAM
883 2012-11-03 17:55:17 <D34TH> because more of the extensions i use are a paint to compile 64bit versions of
884 2012-11-03 17:55:28 <D34TH> sipa: true
885 2012-11-03 17:55:31 <kjj_> ooh. the ECB report on bitcoin just hit /.
886 2012-11-03 17:55:41 <sipa> late as usual :)
887 2012-11-03 17:55:47 CodesInChaos has quit (Ping timeout: 246 seconds)
888 2012-11-03 17:56:14 <kjj_> They're both in the business of creating money out of thin air, so of course they'd see a problem with it.
889 2012-11-03 17:56:24 <kjj_> first +5 comment in the discussion
890 2012-11-03 17:56:43 <sipa> well, it's correct :)
891 2012-11-03 17:57:22 <runeks> I like the highlights I've seen from the report. haven't read it all. but it certainly isn't scare mongering. doesn't fit well with the conspiracy theorists.
892 2012-11-03 17:57:32 <runeks> but maybe that's what they WANT you to think...
893 2012-11-03 17:57:36 <runeks> then BAM!
894 2012-11-03 17:58:10 <runeks> and there's a legally established exchange rate between EUR and BTC
895 2012-11-03 17:59:13 RainbowDashh has joined
896 2012-11-03 17:59:20 <kjj_> heh. how would that work?
897 2012-11-03 18:00:49 <kjj_> the central bank could offer to sell unlimited EUR for BTC at their defined rate, but they can't print BTC, so there would bt no way for them to maintain the other side of that peg
898 2012-11-03 18:02:01 <abrkn> are there any open source java miners out there?
899 2012-11-03 18:02:05 <abrkn> for the browser
900 2012-11-03 18:02:26 <runeks> back in the early days, governments would establish what kind of money were "legal tender" and simlutaneously establish what the "legal" exchange rate between this legal tender and other monies were. so if the legal tender was declared to be gold, then they would say that everyone accepting silver as a payment, must accept gold in the echange rate of, for example, 1:50. this meant that if the market exchange rate was lower than this, for ex
901 2012-11-03 18:02:26 <runeks> ample, 1:30, then people would stop selling things for silver, because they'd lose money when they were forced to accept gold instead (at a lower-than-market exchange rate)
902 2012-11-03 18:02:30 eoss has quit (Read error: Connection reset by peer)
903 2012-11-03 18:02:32 <sipa> abrkn: why would you want that?
904 2012-11-03 18:02:45 <daybyter> java or javascript?
905 2012-11-03 18:02:47 <abrkn> sipa: give users who play my casino game "free money"
906 2012-11-03 18:03:11 <abrkn> daybyter: java (from what i understand, webcl support is not available in many browsers)
907 2012-11-03 18:03:11 <sipa> abrkn: while making their browsers unresponsive, and their electricity bill soar?
908 2012-11-03 18:03:19 <abrkn> sipa: yes
909 2012-11-03 18:03:25 <runeks> kjj_: so it' doesn't relate to printing/producing the money in question, only to - by law - demanding that someone selling items denominated in BTC *must* EUR for that item as well, at some fixed exchange rate
910 2012-11-03 18:03:26 <sipa> for almost no gain
911 2012-11-03 18:03:29 <sipa> sounds like a plan
912 2012-11-03 18:03:56 <abrkn> sipa: it would be very little, but it's nice to atleast be able to start without having any bitcoins, even if just to try
913 2012-11-03 18:03:59 <daybyter> but you need an installed java plugin then...
914 2012-11-03 18:04:06 <kjj_> all that would do would make it impossible to buy BTC with euros
915 2012-11-03 18:04:11 <abrkn> daybyter: many, sadly, do
916 2012-11-03 18:04:13 <kjj_> at least legally
917 2012-11-03 18:04:15 <runeks> 's/*must*/*must* accept'
918 2012-11-03 18:04:24 <abrkn> sipa: better than having people fill surveys and whatnot to get some free money
919 2012-11-03 18:04:24 <daybyter> Javascript would be slower but better in my eyes...
920 2012-11-03 18:04:25 <kjj_> wouldn't do a damn thing about the real cost
921 2012-11-03 18:04:39 <runeks> and make it unprofitable to sell goods for BTC (legally)
922 2012-11-03 18:04:42 <abrkn> sipa: although if you have any better ideas, i'm all ears
923 2012-11-03 18:04:45 <daybyter> javscript + litecoin?
924 2012-11-03 18:04:51 <daybyter> javascript*
925 2012-11-03 18:04:54 maaku has quit (Quit: maaku)
926 2012-11-03 18:05:06 <runeks> I can mine a 250 hashes per second with a Javascript miner I made for fun (Bitcoin)
927 2012-11-03 18:05:08 <abrkn> daybyter: aye, ive considered that one, but i'd have to keep track of rates
928 2012-11-03 18:05:12 <sipa> abrkn: it may make sense inside a game that runs on a GPU
929 2012-11-03 18:05:20 <runeks> not quite ASIC speeds
930 2012-11-03 18:05:23 <abrkn> daybyter: i'd rather not make the currency of my game LTC
931 2012-11-03 18:05:34 <sipa> abrkn: but in a browser it's something between shady and abusive, imho
932 2012-11-03 18:05:45 <abrkn> sipa: it would be optinal, ofcourse
933 2012-11-03 18:06:19 <sipa> ok, that makes it acceptable, but no rational person would choose to do so (except that no human is rational, of course)
934 2012-11-03 18:06:27 <abrkn> sipa: i'd rather have a faucet that gets some of the rake, but im scared of bots
935 2012-11-03 18:06:43 <abrkn> sipa: bots that would just mass reg accounts to get fauceted coins
936 2012-11-03 18:07:24 <runeks> abrkn: with Javascript (doing 250 hashes per sec), it'd take about 13 years to find one share at difficulty 1.
937 2012-11-03 18:07:34 <abrkn> runeks =)
938 2012-11-03 18:07:51 <runeks> but you might be able to cut that down to a single year with Java :)
939 2012-11-03 18:07:53 <sipa> ;;bc,gen 0.25
940 2012-11-03 18:07:54 <gribble> The expected generation output, at 0.25 Khps, given current difficulty of 3304356.3929903 , is 7.6098660447e-08 BTC per day and 3.17077751863e-09 BTC per hour.
941 2012-11-03 18:08:18 <abrkn> what's a sensible way to prove that a user registering on a site is not a bot or human bot (chinese sweatshop)?
942 2012-11-03 18:08:31 <abrkn> been discussing it for like 30 min with some friends and cant seem to come up with anything
943 2012-11-03 18:08:32 <sipa> captcha?
944 2012-11-03 18:08:38 <runeks> make your own custom CAPTCHA and change it frequently
945 2012-11-03 18:08:45 <abrkn> sipa: decaptcher solves them for nearly nothing
946 2012-11-03 18:09:04 Arnavion has quit (Disconnected by services)
947 2012-11-03 18:09:11 <runeks> that's why you have to make your own. something that CAPTCHA solvers won't have seen before.
948 2012-11-03 18:09:13 Arnavion has joined
949 2012-11-03 18:09:21 arij has joined
950 2012-11-03 18:09:41 <abrkn> aye, but i cant think of anything that cant be botted
951 2012-11-03 18:09:45 arij is now known as Guest65981
952 2012-11-03 18:09:49 <abrkn> (aside from photo with shoe on head, obviously)
953 2012-11-03 18:10:42 <runeks> anything can be botted. the question of whether it will be botted, is whether it will be profitable to create a bot that does it or not.
954 2012-11-03 18:10:57 <abrkn> right
955 2012-11-03 18:11:07 <D34TH> wow im getting debug.log spammed, i addnode'ed all the dnsseeds
956 2012-11-03 18:11:10 <D34TH> bad idea
957 2012-11-03 18:11:20 andreas has joined
958 2012-11-03 18:11:20 <abrkn> even registering with FB, which i think many people wouldnt want, would just bring huge FB botnets
959 2012-11-03 18:12:34 <vazakl> ask them to read a short story, then ask a question about the plot or characters
960 2012-11-03 18:12:35 <runeks> abrkn: there is no protection against people profiting from things that are profitable.
961 2012-11-03 18:13:00 <kjj_> runeks: +1
962 2012-11-03 18:13:06 <abrkn> definitely agree
963 2012-11-03 18:13:08 pjorrit has joined
964 2012-11-03 18:13:13 sturles_ has joined
965 2012-11-03 18:13:25 nameless1 has joined
966 2012-11-03 18:13:50 Eliel_ has joined
967 2012-11-03 18:14:11 <runeks> there are even CAPTCHA solver sites that employ human being sitting in front of computers. you then submit the CAPTCHA to their site via an API, and you get a response from some chinese worker sitting in front of his computer solving CAPTCHAs that come in from this service. like an outsourced CAPTCHA solver.
968 2012-11-03 18:14:24 datagutt_ has joined
969 2012-11-03 18:14:46 <runeks> CAPTCHA are only supposed to tell humans and computers apart. and they're pretty good at that - the best ones at least. but this all falls to the floor when you actually hire humans to solve them.
970 2012-11-03 18:15:07 <vazakl> a short one-paragraph story, then ask a question about the character's motivations...
971 2012-11-03 18:15:25 <abrkn> runeks: aye, decaptcher =) i've used it a ton to automate some things
972 2012-11-03 18:15:35 <kjj_> lol. I used to write captcha solvers. if I couldn't break a visual captcha, most humans would have problems with it too
973 2012-11-03 18:16:03 <runeks> vazakl: yeah. and then hire Chinese workers to verify these stories
974 2012-11-03 18:16:05 <abrkn> vazakl: i love that solution, because chinese bots would be terrible at it, but id need a shitton of stories
975 2012-11-03 18:16:10 <abrkn> haha
976 2012-11-03 18:16:17 abracadabopoulos has joined
977 2012-11-03 18:16:53 <runeks> if you pay slightly more for someone to verify these stories than someone else pays to write them, then you win.
978 2012-11-03 18:17:12 Llamab6t has joined
979 2012-11-03 18:17:14 <vazakl> show a picture of a scene, then ask the user to click a certain place ("point at the dog bowl')
980 2012-11-03 18:17:15 midnightmagic_ has joined
981 2012-11-03 18:18:04 <vazakl> or "drag the dog on to the table"
982 2012-11-03 18:18:30 datagutt_ is now known as datagutt
983 2012-11-03 18:18:30 <runeks> I tried cracking PHPCaptcha, and I didn't succeed. and I couldn't find anyone else who had succeeded in cracking it (publicly). so it might be a good place to start.
984 2012-11-03 18:18:30 Llamab6t is now known as BCBot
985 2012-11-03 18:18:37 brwyatt is now known as Away!~brwyatt@brwyatt.net|brwyatt
986 2012-11-03 18:20:42 <vazakl> you can ask basic questions, from google.. "how many legs does a centipede have"
987 2012-11-03 18:20:46 <kjj_> runeks: have a link? that isn't a google-able term
988 2012-11-03 18:21:25 <runeks> it's also called securimage
989 2012-11-03 18:21:33 <runeks> http://www.phpcaptcha.org/
990 2012-11-03 18:22:28 <kjj_> did you try a neural net?
991 2012-11-03 18:23:29 <kjj_> first, despeckle, then block finding, chop into letters, rescale, hit it with the neural net
992 2012-11-03 18:24:12 <kjj_> you could probably take out the stringers too, right after the despeckle
993 2012-11-03 18:24:13 <runeks> not at all. I basically tried to use the fact that the lines are often thinner than the letters. do if you apply a certain algorithm to the pixels in the picture the lines can disappear while a really thin version of the letters remain. then I tried using OCR on that (tesseract) but never got to more than like 5% acceptance rate. then I lost interest in it.
994 2012-11-03 18:24:46 JZavala has joined
995 2012-11-03 18:25:22 <runeks> how would you separate out th letters when there are lines across the entire image?
996 2012-11-03 18:25:33 <kjj_> statistics. :)
997 2012-11-03 18:25:41 <runeks> umm. right :)
998 2012-11-03 18:25:43 <runeks> how? :)
999 2012-11-03 18:25:44 aq83 has quit (Ping timeout: 245 seconds)
1000 2012-11-03 18:26:14 <kjj_> look at each column. count the blackness. the letters are peaks, the spaces are valleys
1001 2012-11-03 18:27:59 <runeks> so that whenever total blackness in a column is less than some number, then we say one letter has ended and a new is beginning?
1002 2012-11-03 18:28:02 <kjj_> that will get it most of the time. if you want to catch the others, you also look at the widths of the peaks and valleys
1003 2012-11-03 18:28:32 <kjj_> yup, but you can do it adaptive. if the blackness goes up for a while, and then comes down, you've found a letter
1004 2012-11-03 18:28:42 <kjj_> rather than just a threshold
1005 2012-11-03 18:28:51 <sipa> i'm sure that a captcha designer van compensate exactly for whatever criteria you come up with to separate characters
1006 2012-11-03 18:28:53 <runeks> oh, right
1007 2012-11-03 18:28:55 <runeks> clever
1008 2012-11-03 18:29:10 <sipa> *can
1009 2012-11-03 18:29:22 <kjj_> sipa: yeah, they can. and they do. but the hard captchas are just as hard for people as they are for programs, which makes them sorta pointless
1010 2012-11-03 18:29:52 <kjj_> I know I've faced captchas that I couldn't figure out, or just barely could
1011 2012-11-03 18:30:00 <runeks> I saw some demo of a program solving reCAPTCHAs. I can't even solve half of those!
1012 2012-11-03 18:30:59 <runeks> but now they've started to include number signs (from buildings from Google street view I think), just to keep the game going.
1013 2012-11-03 18:33:16 <kjj_> my favotire captcha ever: http://pauljadam.com/presentations/accessu2011/img/Craziest_Captchas_18.jpg
1014 2012-11-03 18:34:57 <sipa> by heart: 0.69 something
1015 2012-11-03 18:35:15 Gladamas has quit (Ping timeout: 276 seconds)
1016 2012-11-03 18:35:41 <kjj_> I should make one with the stumper question from that episode of Big Bang Theory
1017 2012-11-03 18:42:33 D34TH has quit (Quit: Leaving)
1018 2012-11-03 18:43:01 rdponticelli has joined
1019 2012-11-03 18:55:35 Apexseals has quit (Read error: Connection reset by peer)
1020 2012-11-03 18:55:52 Apexseals has joined
1021 2012-11-03 18:57:40 <runeks> in GetBlockValue(), is nHeight for the genesis block equal to 0 or 1?
1022 2012-11-03 18:58:14 pnicholson has joined
1023 2012-11-03 18:58:26 <sipa> 0
1024 2012-11-03 18:58:35 <runeks> ok!
1025 2012-11-03 19:02:21 sturles_ is now known as sturles
1026 2012-11-03 19:02:37 sturles has quit (Changing host)
1027 2012-11-03 19:03:07 sturles has joined
1028 2012-11-03 19:06:28 maaku has joined
1029 2012-11-03 19:08:17 molecular has quit (Ping timeout: 244 seconds)
1030 2012-11-03 19:08:43 molecular has joined
1031 2012-11-03 19:18:24 Apexseals has quit (Read error: Connection reset by peer)
1032 2012-11-03 19:18:40 deadserious has joined
1033 2012-11-03 19:18:42 Apexseals has joined
1034 2012-11-03 19:19:04 deadserious is now known as Guest27123
1035 2012-11-03 19:19:31 agricocb has quit (Quit: Leaving.)
1036 2012-11-03 19:21:48 ThomasV_ has quit (Quit: Quitte)
1037 2012-11-03 19:28:09 diki has joined
1038 2012-11-03 19:29:03 <diki> Can someone tell me how an exchange works? I was thinking of writing a simple one in PHP for some testing, but I have no idea how it works(price, fulfilling orders etc). Any tips?
1039 2012-11-03 19:29:46 <andreas> The intersango scripts?
1040 2012-11-03 19:30:32 <diki> Are you telling me to look at them or are you asking if I am talking about them?
1041 2012-11-03 19:32:29 <diki> I'd like to write it from scratch by myself rather than looking at ready scripts.
1042 2012-11-03 19:35:48 <sipa> writing code is easier than reading code
1043 2012-11-03 19:35:56 <sipa> you learn more from the latter, though
1044 2012-11-03 19:36:19 <diki> Ok?
1045 2012-11-03 19:37:02 <diki> However, reading code takes time. I am particularly interesting in what makes the exchange set the buy/sell price.
1046 2012-11-03 19:37:12 <diki> *interested
1047 2012-11-03 19:37:30 <sipa> finding out how an exchange also takes time
1048 2012-11-03 19:37:33 <sipa> *works
1049 2012-11-03 19:38:20 <sipa> depends on your goal though; if your goal is learning, and not building a functional exchange, it's probably easier to build from scratch
1050 2012-11-03 19:38:49 Guest27123 has quit (Remote host closed the connection)
1051 2012-11-03 19:39:20 <andreas> I started a data model for an exchange at some point, since I'm also interested in this stuff.
1052 2012-11-03 19:39:27 <diki> I have been thinking of making a test exchange for some alt-currencies as they likely produce less traffic, but that is of course when I figure out how to write it.
1053 2012-11-03 19:40:25 <andreas> Start with a data model...shouldn't be too hard.
1054 2012-11-03 19:40:32 cheako has joined
1055 2012-11-03 19:40:41 <andreas> What do you need? Users, Orders, Trades...
1056 2012-11-03 19:40:52 <sipa> history
1057 2012-11-03 19:40:57 <diki> History?
1058 2012-11-03 19:41:37 <diki> andreas:And what is exactly a "data model"?
1059 2012-11-03 19:42:29 <andreas> a diagram how to store your data...
1060 2012-11-03 19:42:54 <diki> I use MySQL. As for what the data is, that comes as I go.
1061 2012-11-03 19:43:25 <sipa> maybe you should at least spend some time in advance thinking about what you need
1062 2012-11-03 19:43:29 <andreas> http://www.agiledata.org/images/dm101OrderNormalized.gif
1063 2012-11-03 19:43:42 <andreas> Some diagram like this one...
1064 2012-11-03 19:43:58 <diki> sipa:why? I am a guy that thinks of stuff as he goes, so long as I know what to do.
1065 2012-11-03 19:44:01 <andreas> you could also start with use cases, but I think, they are pretty obvious...
1066 2012-11-03 19:44:55 maaku has quit (Quit: maaku)
1067 2012-11-03 19:45:40 <diki> andreas:So, why not just start to write the code?
1068 2012-11-03 19:46:44 JZavala has quit (Ping timeout: 246 seconds)
1069 2012-11-03 19:46:44 maaku has joined
1070 2012-11-03 19:46:45 <sipa> because you may end up needing something you didn't think of in advance, and be tempted to hack it in, instead of starting with a clear design that allows for that feature from the start
1071 2012-11-03 19:47:14 <diki> sipa:But that happens either way.
1072 2012-11-03 19:47:26 <sipa> sure, it's often inevitable
1073 2012-11-03 19:47:45 <sipa> but with a clean design, its impact is less bad
1074 2012-11-03 19:48:17 <diki> For instance, I wrote an application that utilizes the cgminer API, however now I have started to make it more generalized and not that much target specific.
1075 2012-11-03 19:48:31 <diki> which means, moving code, changing stuff. Hacking as you have already mentioned.
1076 2012-11-03 19:48:39 <andreas> I would start with a diagram. Maybe in ArgoUML.
1077 2012-11-03 19:48:56 maaku has quit (Client Quit)
1078 2012-11-03 19:49:02 <andreas> Then use one of the db models to generate the sql for mysql.
1079 2012-11-03 19:49:38 <andreas> The use one of the RAD tools to generate the php for the default methods. I would use CakePHP.
1080 2012-11-03 19:50:10 <andreas> You could have a running website within a few hours. Not perfect, but working...
1081 2012-11-03 19:50:11 <diki> andreas:Is the use of frameworks a must these days?
1082 2012-11-03 19:50:35 <andreas> It's convenient....I like them...
1083 2012-11-03 19:51:00 <diki> I suppose they are proven to be stable and secure.
1084 2012-11-03 19:51:23 <diki> and probably filter any suspicious get/post requests with weird data.
1085 2012-11-03 19:51:24 _flow_ has quit (Ping timeout: 260 seconds)
1086 2012-11-03 19:51:46 <andreas> It's just annoying to check 20 classes, if you forgot some check for sql injection, or so...
1087 2012-11-03 19:51:54 JDuke128 has joined
1088 2012-11-03 19:52:03 agricocb has joined
1089 2012-11-03 19:52:19 <andreas> I wrote those websites with 10000 lines of php...been there...done that...don't need that anymore..
1090 2012-11-03 19:52:23 <diki> not if you run it through your own function
1091 2012-11-03 19:52:53 <sipa> sql prepared statements!
1092 2012-11-03 19:53:18 <andreas> Yeah...I wrote a couple of database connection managers and stuff...
1093 2012-11-03 19:53:40 <andreas> but now most of the automagic stuff is good enough for me...
1094 2012-11-03 19:56:05 JZavala has joined
1095 2012-11-03 19:59:02 <andreas> http://pastebin.com/KcdUEvTG
1096 2012-11-03 19:59:18 Apexseals has quit (Read error: Connection reset by peer)
1097 2012-11-03 19:59:25 <andreas> I was told, I should use a salt instead of the password...
1098 2012-11-03 19:59:33 <andreas> ...so maybe change that...
1099 2012-11-03 19:59:36 Apexseals has joined
1100 2012-11-03 19:59:37 <diki> definately
1101 2012-11-03 19:59:50 <diki> and encrypted_password VARCHAR(40) is low for a sha256 or sha512 password.
1102 2012-11-03 20:00:06 z310 has joined
1103 2012-11-03 20:00:09 <sipa> it's enough for sha256 in hex
1104 2012-11-03 20:00:17 <diki> oh yeah..32 bytes.
1105 2012-11-03 20:00:23 <sipa> eh
1106 2012-11-03 20:00:36 <diki> sorry, these days it's easy enough for me to confuse the bits vs bytes(sizes and all).
1107 2012-11-03 20:00:37 <andreas> http://pastebin.com/Q52uYupP
1108 2012-11-03 20:00:39 <sipa> sorry, i retract that statement :)
1109 2012-11-03 20:01:18 <sipa> what is a tinyint/bigint?
1110 2012-11-03 20:01:19 <diki> andreas:What scheme will you use for storing the login data?
1111 2012-11-03 20:01:31 <diki> sipa:big integers?
1112 2012-11-03 20:01:35 <diki> and small integers
1113 2012-11-03 20:01:45 maaku has joined
1114 2012-11-03 20:01:48 <andreas> http://pastebin.com/zDuFv5vv
1115 2012-11-03 20:02:26 <diki> andreas:deposit_addr is 32 characters, however some addresses can be larger.
1116 2012-11-03 20:02:31 <andreas> I thought just a session. Cake can do most of this stuff automagically...
1117 2012-11-03 20:02:44 <andreas> yeah..the model is not complete and finished.
1118 2012-11-03 20:02:50 <andreas> it would need some work.
1119 2012-11-03 20:02:53 <sipa> diki: lol, of course... i mean how large are those?
1120 2012-11-03 20:03:08 <andreas> but I think, we need distributed exchanges anyway.
1121 2012-11-03 20:04:17 <diki> andreas:In the old days, I'd store the salted password hash in the cookie, and simply match it later with the one in the database.
1122 2012-11-03 20:04:24 <diki> however, that is out of date today apparently
1123 2012-11-03 20:04:27 JDuke128 has quit (Quit: Computer has gone to sleep.)
1124 2012-11-03 20:05:01 _flow_ has joined
1125 2012-11-03 20:05:29 <andreas> Now, I'm thinking about something different.
1126 2012-11-03 20:05:41 <diki> I am very rusty when it comes to PHP. I've been doing mainly C for the past year, not looking back at php.
1127 2012-11-03 20:05:54 <andreas> I'm working on a trade app, that has an OrderBook anyway.
1128 2012-11-03 20:06:23 <andreas> If 2 users would connect and compare their order books, they might trade directly.
1129 2012-11-03 20:08:17 <diki> I already have a name for that feature of yours
1130 2012-11-03 20:08:21 <diki> Trade2Direct.
1131 2012-11-03 20:11:50 _flow_ has quit (Ping timeout: 272 seconds)
1132 2012-11-03 20:12:11 gmaxwell has joined
1133 2012-11-03 20:13:22 JDuke128 has joined
1134 2012-11-03 20:14:55 <andreas> sounds cool...
1135 2012-11-03 20:15:23 brwyatt is now known as brwyatt|Away
1136 2012-11-03 20:18:44 runeks has quit (Quit: Leaving)
1137 2012-11-03 20:26:24 <JDuke128> hello , is it possible to run DiabloMiner offline ?
1138 2012-11-03 20:28:17 <diki> no?
1139 2012-11-03 20:28:47 <diki> It is possible, but what good would that do?
1140 2012-11-03 20:35:37 <JDuke128> how ?
1141 2012-11-03 20:35:52 <diki> why
1142 2012-11-03 20:36:02 <diki> what are you going to do offline?
1143 2012-11-03 20:37:42 <sipa> how will you know which blocks and transactions to build upon, if you're not connected to the network?
1144 2012-11-03 20:37:56 <sipa> mining is building a chain together with anyone who participates
1145 2012-11-03 20:45:04 andreas has quit (Quit: Konversation terminated!)
1146 2012-11-03 20:55:15 _flow_ has joined
1147 2012-11-03 20:56:56 <JDuke128> diki , i want to make offline mining
1148 2012-11-03 20:57:05 <diki> JDuke128:Not possible.
1149 2012-11-03 20:57:10 <JDuke128> the problem i've is i m on lab
1150 2012-11-03 20:57:20 <JDuke128> our laboratory is closed to internet
1151 2012-11-03 20:57:21 <diki> It's still impossible.
1152 2012-11-03 20:57:25 <diki> you need to be online to do it.
1153 2012-11-03 20:57:32 <JDuke128> can we make pre offline processing?
1154 2012-11-03 20:57:42 <JDuke128> and just connect some pc to net after we get db
1155 2012-11-03 20:58:19 <JDuke128> i will take possible answers to usb disk , then i will connect to internet from a pc
1156 2012-11-03 20:58:21 chmod755 has quit (Quit: chmod755)
1157 2012-11-03 20:58:26 <JDuke128> that i got results from lab
1158 2012-11-03 20:58:29 <JDuke128> then check all
1159 2012-11-03 20:58:32 <JDuke128> impossible?
1160 2012-11-03 20:58:35 <sipa> JDuke128: if you can connect to the network every ten minutes, you will reduce effectiveness of mining by 50%
1161 2012-11-03 20:58:37 <gmaxwell> JDuke128: What you're asking for isn't really possible. Also, do you have authorization to use that equipment for mining? If soâ get it extended to allow you to connect to the internet, if not then you should not mine on it.
1162 2012-11-03 20:58:42 <sipa> any more, and it increases significantly
1163 2012-11-03 20:59:08 <sipa> most miners make sure they don't have a latency of over a few seconds
1164 2012-11-03 20:59:33 brwyatt is now known as Away!~brwyatt@brwyatt.net|brwyatt
1165 2012-11-03 20:59:54 <sipa> also, don't abuse your lab
1166 2012-11-03 21:00:43 gritball has joined
1167 2012-11-03 21:01:23 <sipa> and unless your lab has high-end AMD graphic cards, or a cluster of FPGA's, it isn't going to gain you much
1168 2012-11-03 21:01:24 _flow_ has quit (Ping timeout: 260 seconds)
1169 2012-11-03 21:02:01 <JDuke128> its super computer can run OpenCL
1170 2012-11-03 21:02:17 <JDuke128> but it has no internet connection at ALL ;(
1171 2012-11-03 21:02:18 <MC1984> someones gonna get fired
1172 2012-11-03 21:02:31 <sipa> JDuke128: and rightfully so
1173 2012-11-03 21:02:46 copumpkin is now known as notjoe
1174 2012-11-03 21:02:55 <sipa> JDuke128: even with OpenCL it isn't going to be fast for integer operations, unless it's using high-end AMD GPU's
1175 2012-11-03 21:02:57 <MC1984> i remember reading about the first people to get fired for running seti@home in work back in the day
1176 2012-11-03 21:02:59 <MC1984> lold
1177 2012-11-03 21:03:26 <JDuke128> whats seti@home
1178 2012-11-03 21:03:33 <sipa> giyf
1179 2012-11-03 21:03:53 <MC1984> similar excpet instead of printing money you look for aliens
1180 2012-11-03 21:05:25 maaku has quit (Quit: maaku)
1181 2012-11-03 21:08:19 <MC1984> i think its very telling that being able to print money quickly sucked up more processing power combined than say helping to cure devastating diseases or finding out if were are along in this cold and dark universe
1182 2012-11-03 21:09:21 <MC1984> fermi paradox indeed, if they are out there maybe there is a reason they dont talk to us
1183 2012-11-03 21:09:29 <gritball> cls
1184 2012-11-03 21:09:39 <gritball> ?
1185 2012-11-03 21:23:20 <sipa> cls?
1186 2012-11-03 21:24:49 maaku has joined
1187 2012-11-03 21:30:02 <BlueMatt> ;;later tell graingert I changed that yesterday
1188 2012-11-03 21:30:02 <gribble> The operation succeeded.
1189 2012-11-03 21:30:21 <BlueMatt> ;;later tell D34TH I dont see why it wouldnt, it should afaik
1190 2012-11-03 21:30:22 <gribble> The operation succeeded.
1191 2012-11-03 21:32:00 <sipa> BlueMatt: see my partialmerkle branch; i think i'm more or less done
1192 2012-11-03 21:32:17 <BlueMatt> sipa: are you gonna rebase CPartialMerkleTree on my bloom branch, or should I cherry-pick it and merge it in?
1193 2012-11-03 21:32:47 <sipa> haven't looked at the bloom branch code yet; feel free to cherry-pick
1194 2012-11-03 21:33:16 <sipa> i'll help writing some description for it in the BIP
1195 2012-11-03 21:33:19 <BlueMatt> ok, Ill look into that later today or tomorrow
1196 2012-11-03 21:34:15 <BlueMatt> alright, afaik the only copy of the bip is just on the wiki, so you can edit it there
1197 2012-11-03 21:34:30 <JDuke128> pls someone help , i ail donate with bitcoin
1198 2012-11-03 21:34:37 maaku has quit (Quit: maaku)
1199 2012-11-03 21:35:10 <sipa> JDuke128: do you have permission to run bitcoin in your lab?
1200 2012-11-03 21:35:20 <JDuke128> yes i ve
1201 2012-11-03 21:35:23 <JDuke128> of course
1202 2012-11-03 21:35:43 <sipa> then getting internet access on it shouldn't be a problem
1203 2012-11-03 21:35:59 <JDuke128> okay but i ve another problem
1204 2012-11-03 21:36:17 <JDuke128> i ve installed bitcoind with p2pool
1205 2012-11-03 21:36:38 <JDuke128> i ve connected some clients to p2pool on my local server
1206 2012-11-03 21:36:49 <JDuke128> but the problem is although i got accepts on local clients
1207 2012-11-03 21:36:53 <JDuke128> i got 0 bit coin when i look on server
1208 2012-11-03 21:37:17 <forsetifox> Heh.
1209 2012-11-03 21:37:41 <JDuke128> bitcoind getbalance
1210 2012-11-03 21:37:41 <JDuke128> 0.00000000
1211 2012-11-03 21:37:45 <JDuke128> i got 0 bitcoin
1212 2012-11-03 21:37:47 <sipa> how long has it been running?
1213 2012-11-03 21:37:54 <JDuke128> 24 hours
1214 2012-11-03 21:38:00 <kjj_> and are you actually hitting p2pool?
1215 2012-11-03 21:38:06 <forsetifox> It's been running 24 hours without a internet connection?
1216 2012-11-03 21:38:16 <JDuke128> no i ve internet connection
1217 2012-11-03 21:38:26 <sipa> how much MH/s ?
1218 2012-11-03 21:38:33 toffoo has joined
1219 2012-11-03 21:38:47 <JDuke128> 200mhash
1220 2012-11-03 21:38:56 <sipa> how many shares does p2pool report?
1221 2012-11-03 21:41:21 <JDuke128> http://pastebin.com/AQLy8DyQ
1222 2012-11-03 21:41:37 <JDuke128> sips , this one i got on p2pool logs
1223 2012-11-03 21:41:40 <JDuke128> sipa , this one i got on p2pool logs
1224 2012-11-03 21:41:48 <forsetifox> "local dead on arrival".
1225 2012-11-03 21:42:38 <JDuke128> what do you mean?
1226 2012-11-03 21:42:58 <JDuke128> how can i fix issue ?
1227 2012-11-03 21:43:14 <sipa> JDuke128: p2pool does not see any mining
1228 2012-11-03 21:43:21 <sipa> seems your miner is not pointed to it
1229 2012-11-03 21:45:01 <JDuke128> can you test please ? DiabloMiner.exe game.l2wolf.com 9332
1230 2012-11-03 21:46:03 <sipa> what does your miner report?
1231 2012-11-03 21:46:25 <JDuke128> accept 158
1232 2012-11-03 21:46:29 <JDuke128> reject 3
1233 2012-11-03 21:47:03 <JDuke128> hw error 0
1234 2012-11-03 21:47:53 <JDuke128> can you look here ?
1235 2012-11-03 21:47:54 <JDuke128> http://game.l2wolf.com:9332
1236 2012-11-03 21:48:10 <forsetifox> Can you paste your miner config line?
1237 2012-11-03 21:48:30 <JDuke128> p2pool or bitcoind ?
1238 2012-11-03 21:48:48 <forsetifox> Do both.
1239 2012-11-03 21:49:40 <sipa> JDuke128: does it report any shares now?
1240 2012-11-03 21:49:46 <sipa> or any hashes at least
1241 2012-11-03 21:49:47 <kjj_> check your graphs
1242 2012-11-03 21:50:04 <kjj_> you had some activity some hours ago, but none sense
1243 2012-11-03 21:50:17 <JDuke128> i m too new , how can i get report ? on client i ve 160 accepts now
1244 2012-11-03 21:50:27 <sipa> in p2pool logs
1245 2012-11-03 21:50:45 conman has left ("Leaving")
1246 2012-11-03 21:51:05 <JDuke128> http://pastebin.com/VPSeQD9y
1247 2012-11-03 21:51:10 <JDuke128> this is my bitcoin.conf file
1248 2012-11-03 21:51:33 <sipa> http://game.l2wolf.com:9332/static/graphs.html?Day
1249 2012-11-03 21:51:38 <sipa> that are your graphs
1250 2012-11-03 21:52:03 <sipa> around 3am you had some MH/s
1251 2012-11-03 21:52:13 <sipa> but you never found a share
1252 2012-11-03 21:52:48 <JDuke128> so if i run all clients i got share %100 ?
1253 2012-11-03 21:53:04 <JDuke128> i ve 22 clients more but i do tests now
1254 2012-11-03 21:53:47 <JDuke128> i was getting money quickly on deepbit.net , i don't see any good point on p2pool now...
1255 2012-11-03 21:54:11 <sipa> you'll get more on p2pool
1256 2012-11-03 21:54:16 <sipa> (very slightly more)
1257 2012-11-03 21:54:22 <sipa> but with more variation, and it takes longer
1258 2012-11-03 21:54:52 <JDuke128> so , my config seems fine ?
1259 2012-11-03 21:55:01 <sipa> http://game.l2wolf.com:9332/static/graphs.html?Hour
1260 2012-11-03 21:55:16 <sipa> that peak to 1 GH/s is me
1261 2012-11-03 21:55:59 <sipa> you'll see one p2pool share on average every 4 hours
1262 2012-11-03 21:56:17 <sipa> p2pool itself finds a block around twice a day
1263 2012-11-03 21:56:31 <JDuke128> so i need to wake clients
1264 2012-11-03 21:56:34 <JDuke128> all day
1265 2012-11-03 21:56:44 <sipa> so after a few days you should see some income
1266 2012-11-03 21:57:09 <JDuke128> so my all configs seems ok
1267 2012-11-03 21:57:11 <JDuke128> right ?
1268 2012-11-03 21:57:12 <sipa> yes
1269 2012-11-03 21:57:17 <JDuke128> thans alot
1270 2012-11-03 21:57:21 <sipa> also, i'm not sure you want your p2pool graphs openly visible to the world
1271 2012-11-03 21:57:26 <JDuke128> whats your bit coin address
1272 2012-11-03 21:57:27 <JDuke128> i will donate u
1273 2012-11-03 21:57:32 <sipa> no need
1274 2012-11-03 21:57:51 <phantomcircuit> lol
1275 2012-11-03 21:58:02 <JDuke128> ;)
1276 2012-11-03 21:58:04 <phantomcircuit> downloading the blockchain over tor is really slow
1277 2012-11-03 21:58:07 <JDuke128> thnx alot
1278 2012-11-03 21:58:13 <phantomcircuit> this is taking about 3 hours/day of block chain
1279 2012-11-03 21:59:30 <kjj_> doh. why are you doing that to the poor guys running tor nodes?
1280 2012-11-03 21:59:53 <phantomcircuit> i got the first 193000 blocks using the torrent
1281 2012-11-03 22:01:25 jgarzik has quit (Read error: Connection timed out)
1282 2012-11-03 22:02:01 jgarzik has joined
1283 2012-11-03 22:02:26 jgarzik is now known as Guest50199
1284 2012-11-03 22:02:36 darkee has quit (Ping timeout: 276 seconds)
1285 2012-11-03 22:04:20 darkee has joined
1286 2012-11-03 22:13:08 JDuke128 has quit (Quit: ["Textual IRC Client: www.textualapp.com"])
1287 2012-11-03 22:14:00 JDuke128 has joined
1288 2012-11-03 22:15:32 spaola has joined
1289 2012-11-03 22:18:37 tucenaber has quit (Read error: Operation timed out)
1290 2012-11-03 22:19:05 tucenaber has joined
1291 2012-11-03 22:24:13 Guest65981 has quit (Changing host)
1292 2012-11-03 22:24:13 Guest65981 has joined
1293 2012-11-03 22:24:17 Guest65981 is now known as arij
1294 2012-11-03 22:26:41 notjoe is now known as copumpkin
1295 2012-11-03 22:33:32 tucenaber has quit (Ping timeout: 256 seconds)
1296 2012-11-03 22:44:11 JDuke128 has quit (Ping timeout: 246 seconds)
1297 2012-11-03 22:46:10 maaku has joined
1298 2012-11-03 22:47:39 Cory has quit (Read error: Operation timed out)
1299 2012-11-03 22:48:23 JDuke128 has joined
1300 2012-11-03 22:50:45 Cory has joined
1301 2012-11-03 22:52:29 <Luke-Jr> gmaxwell: bah! slush's mining.get_transactions *doesn't work*
1302 2012-11-03 22:53:26 <gmaxwell> Luke-Jr: Why?
1303 2012-11-03 22:54:01 <sipa> my mining node just died, presumably with:
1304 2012-11-03 22:54:03 <sipa> bitcoind: main.cpp:1541: bool CBlock::ConnectBlock(CBlockIndex*, CCoinsViewCache&, bool): Assertion `pindex->pprev == view.GetBestBlock()' failed.
1305 2012-11-03 22:54:16 <sipa> more interesting, after restarting i got:
1306 2012-11-03 22:54:24 <Luke-Jr> gmaxwell: looks like some kind of write buffer bug
1307 2012-11-03 22:54:31 <sipa> CDB() : can't open database file wallet.dat, error -30973
1308 2012-11-03 22:54:36 <Luke-Jr> gmaxwell: it starts sending the response, but then the connection just sits idle
1309 2012-11-03 22:54:43 toffoo has quit ()
1310 2012-11-03 22:56:48 <gmaxwell> sipa: I (thought) I fixed an instance of that assert previously.
1311 2012-11-03 22:56:52 <sipa> so did i
1312 2012-11-03 22:57:21 <gmaxwell> I don't believe I went and checked for other ConnectBlock paths for similar problems.
1313 2012-11-03 22:58:08 Cory has quit (Ping timeout: 256 seconds)
1314 2012-11-03 22:58:14 <sipa> there are no others
1315 2012-11-03 22:58:22 <sipa> only in SetBestChain and in CheckBlock
1316 2012-11-03 22:58:41 <sipa> the first wasn't the problem here, as the last line in debug.log referred to CreateBlock
1317 2012-11-03 22:59:04 Apexseals has quit (Ping timeout: 265 seconds)
1318 2012-11-03 22:59:48 Apexseals has joined
1319 2012-11-03 23:00:26 <sipa> so that means the problem would be pindexBest got changed without locking cs_main
1320 2012-11-03 23:01:45 <sipa> and it only gets changed in SetBestChain (and LoadBlockIndex)
1321 2012-11-03 23:02:26 <sipa> doesn't make sense
1322 2012-11-03 23:02:56 <sipa> i find it worrying that simply a crashed node is enough to corrupt a wallet
1323 2012-11-03 23:03:22 <sipa> nodes shouldn't crash, but this is clearly a case where BDB shouldn't corrupt
1324 2012-11-03 23:03:27 Cory has joined
1325 2012-11-03 23:04:10 BlackPrapor has quit (Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/)
1326 2012-11-03 23:05:41 abracadabopoulos is now known as abracadabra
1327 2012-11-03 23:05:58 abracadabra has quit (Changing host)
1328 2012-11-03 23:05:58 abracadabra has joined
1329 2012-11-03 23:11:49 d4de_ has joined
1330 2012-11-03 23:12:53 JDuke128 has quit (Read error: Connection reset by peer)
1331 2012-11-03 23:13:07 d4de has quit (Ping timeout: 260 seconds)
1332 2012-11-03 23:19:22 kreal has quit ()
1333 2012-11-03 23:21:27 _flow_ has joined
1334 2012-11-03 23:22:01 optimator has joined
1335 2012-11-03 23:22:02 optimator has quit (Changing host)
1336 2012-11-03 23:22:02 optimator has joined
1337 2012-11-03 23:23:46 optimator_ has quit (Ping timeout: 248 seconds)
1338 2012-11-03 23:25:17 optimator_ has joined
1339 2012-11-03 23:25:50 enmaku has quit (Read error: Connection reset by peer)
1340 2012-11-03 23:26:26 _flow_ has quit (Excess Flood)
1341 2012-11-03 23:26:27 optimator has quit (Ping timeout: 264 seconds)
1342 2012-11-03 23:28:03 enmaku has joined
1343 2012-11-03 23:31:20 JZavala has quit (Ping timeout: 272 seconds)
1344 2012-11-03 23:39:09 ibno has quit (Quit: Lämnar)
1345 2012-11-03 23:39:56 maaku has quit (Quit: maaku)
1346 2012-11-03 23:41:34 optimator has joined
1347 2012-11-03 23:41:34 optimator has quit (Changing host)
1348 2012-11-03 23:41:34 optimator has joined
1349 2012-11-03 23:42:26 optimator_ has quit (Ping timeout: 248 seconds)
1350 2012-11-03 23:43:01 maaku has joined
1351 2012-11-03 23:44:00 vampireb has joined
1352 2012-11-03 23:46:29 RazielZ has quit (Ping timeout: 246 seconds)
1353 2012-11-03 23:51:31 maaku has quit (Quit: maaku)
1354 2012-11-03 23:52:52 maaku has joined
1355 2012-11-03 23:54:29 maaku has quit (Client Quit)