1 2018-05-31 12:26:34 <keymone> if i'm getting a message about corrupted db - can i tell bitcoind to reindex only last X blocks?
2 2018-05-31 18:04:58 <SeaDiver> Hello.
3 2018-05-31 18:05:33 <SeaDiver> Hello?
4 2018-05-31 18:06:05 <arubi> are you looking for any of your employees SeaDiver ?
5 2018-05-31 18:06:38 <SeaDiver> No
6 2018-05-31 18:06:43 <arubi> so why do you assume any of us would be on call?
7 2018-05-31 18:07:05 <SeaDiver> I thought this was a general development chat
8 2018-05-31 18:07:14 <arubi> it is
9 2018-05-31 18:07:37 <SeaDiver> Apparently not
10 2018-05-31 18:07:48 <arubi> generally folks ask questions, sometimes they get answered. the trick is asking first
11 2018-05-31 18:07:48 <SeaDiver> Ghost town with rude users.
12 2018-05-31 18:07:53 <arubi> meh, alright
13 2018-05-31 18:10:16 <SeaDiver> https://dev.visucore.com/bitcoin/doxygen/index.html contains no documentation on the files themselves only what method/function calls what.
14 2018-05-31 18:11:02 <SeaDiver> Nor what each function's use is.
15 2018-05-31 18:11:23 <SeaDiver> Only where it's defined and a caller graph.
16 2018-05-31 18:13:01 <SeaDiver> Anyone alive in this ghosttown?
17 2018-05-31 18:14:07 <arubi> keymone, not really.. you can issue a rescan from starting height to stop height, but not reindex. you should probably just let it go through everything by issuing -reindex to bitcoind
18 2018-05-31 18:14:22 <arubi> SeaDiver, you still haven't asked a question
19 2018-05-31 18:14:45 <keymone> arubi: takes awfully long on rpi :)
20 2018-05-31 18:15:09 <arubi> yea I can imagine, but not much you could do if it's corrupt :(
21 2018-05-31 18:16:28 <arubi> keymone, you can move the files to some pc with proper hardware, reindex there and all, then move the proper chain back to the pi
22 2018-05-31 18:17:18 <arubi> so pretty much move everything under your datadir to a pc, fix the db, then move it all back. don't forget to backup the wallet file first
23 2018-05-31 18:17:41 <keymone> yeah, i'll probably do that
24 2018-05-31 18:17:44 <keymone> thanks
25 2018-05-31 18:17:47 <arubi> yw
26 2018-05-31 18:21:36 <SeaDiver> arubi: Is there an actual documentation on bitcoin core other than https://dev.visucore.com/bitcoin/doxygen/files.html?
27 2018-05-31 18:24:12 <arubi> SeaDiver, interesting stuff is documented within the code itself
28 2018-05-31 18:27:09 <SeaDiver_> There are thousands of source files that have seemingly no relation.
29 2018-05-31 18:27:34 <buZz> whats a visucore
30 2018-05-31 18:27:48 <arubi> I don't know if thousands is right, but yes, there is no end to reading docs wrt bitcoin
31 2018-05-31 18:28:08 <buZz> i like https://bitcoin.org/en/developer-documentation
32 2018-05-31 18:28:14 <buZz> but no document is the end-all
33 2018-05-31 18:28:41 <SeaDiver_> Thats not a documentation on the source code
34 2018-05-31 18:28:51 <SeaDiver_> Thats for things like interfacing with the rpc
35 2018-05-31 18:29:03 <SeaDiver_> And transaction semantics
36 2018-05-31 18:29:32 <buZz> i have no clue what you want to read
37 2018-05-31 18:29:38 <buZz> i'm just saying i like it ;)
38 2018-05-31 18:30:07 <SeaDiver_> Say I'm a c++ developer that wants to add a feature to bitcoin
39 2018-05-31 18:30:25 <SeaDiver_> "look at the source" is hardly helpful as there are hundreds if not thousands of source files
40 2018-05-31 18:30:36 <buZz> ok, what feature?
41 2018-05-31 18:30:40 <SeaDiver_> I need a documentation on the source to understand what is doing what and where.
42 2018-05-31 18:31:51 <SeaDiver_> feature does not matter
43 2018-05-31 18:31:53 <buZz> ok
44 2018-05-31 18:31:59 <buZz> then it doesnt matter, does it?
45 2018-05-31 18:32:03 <SeaDiver_> yes
46 2018-05-31 18:32:09 <SeaDiver_> I'm saying 'what feature' does not matter
47 2018-05-31 18:32:13 <SeaDiver_> it could be any feature
48 2018-05-31 18:32:24 <buZz> you cant go to a car and say 'i want to add something but nobody is telling me what each screw does'
49 2018-05-31 18:32:24 <SeaDiver_> how would the common c++ developer know how to contribute to bitcoin
50 2018-05-31 18:32:30 <SeaDiver_> if theres no documentation
51 2018-05-31 18:32:39 <buZz> they will just laugh at you and say you have no business doing car 'upgrades'
52 2018-05-31 18:33:00 <buZz> no offense
53 2018-05-31 18:33:00 <SeaDiver_> you're making a straw-man argument
54 2018-05-31 18:33:14 <SeaDiver_> that's nothing but a fallacy
55 2018-05-31 18:33:23 <buZz> no , i'm saying that the basis of adding a feature would depend on understanding all the workings of the features prior
56 2018-05-31 18:33:30 <SeaDiver_> right
57 2018-05-31 18:33:37 <buZz> so, read the code
58 2018-05-31 18:34:04 <buZz> and you can make a call graph yourself locally if you need
59 2018-05-31 18:34:06 <buZz> A call graph (also known as a call multigraph[1]) is a control flow graph,[2] which represents calling relationships between subroutines in a computer program. Each node represents a procedure and each edge (f, g) indicates that procedure f calls procedure g. Thus, a cycle in the graph indicates recursive procedure calls.
60 2018-05-31 18:34:12 <SeaDiver_> read the code, there are thousands of files some of which have 0 relation to eachother
61 2018-05-31 18:34:28 <buZz> yes, this is realworld code, nobody is going to hand explain each line :P
62 2018-05-31 18:34:57 <SeaDiver_> not even the lines, an explanation of what even each file is for is non existant
63 2018-05-31 18:35:00 <buZz> check https://en.wikipedia.org/wiki/Call_graph , you can make visual learner representations of code with it, if you cant read the code
64 2018-05-31 18:35:20 <SeaDiver_> A call graph isn't much use at all
65 2018-05-31 18:35:32 <SeaDiver_> I can find that out by reading the code
66 2018-05-31 18:35:37 <buZz> it would show that there's relation between the files, which you claim there is none
67 2018-05-31 18:36:02 <SeaDiver_> there obviously is relation between the files lmao
68 2018-05-31 18:36:04 <buZz> fyi, there's whole mountains of 'how to fork bitcoin to your new alt' if thats your motivation
69 2018-05-31 18:36:12 <SeaDiver_> no lol
70 2018-05-31 18:36:17 <buZz> ok :) just saying
71 2018-05-31 18:36:45 <SeaDiver_> So you're telling me there is no documentation on bitcoin core other than generated call graphs?
72 2018-05-31 18:37:13 <buZz> on each seperate function? lol no
73 2018-05-31 18:37:39 <SeaDiver_> of any kind
74 2018-05-31 18:37:52 <buZz> doxygen exists, its code driven documentation
75 2018-05-31 18:37:53 <SeaDiver_> even what each file or folder is for
76 2018-05-31 18:38:06 <buZz> there's whole mountains of discussion on all the code that went into bitcoin over last 10 years
77 2018-05-31 18:38:10 <buZz> check the ML
78 2018-05-31 18:38:14 <SeaDiver_> ML?
79 2018-05-31 18:38:29 <buZz> SeaDiver_: such documenation would only make sense if its a static code, its not, it changes a lot and often
80 2018-05-31 18:38:40 <buZz> non codedriven documentation is written by humans
81 2018-05-31 18:38:50 <buZz> humans dont have time to keep writing that stuff
82 2018-05-31 18:39:07 <buZz> ML = mailinglist
83 2018-05-31 18:39:13 <SeaDiver_> theres not even one per file though
84 2018-05-31 18:39:21 <buZz> where most new code first gets discussed -way- before a pull request
85 2018-05-31 18:39:35 <buZz> yes, because it changes often and fast
86 2018-05-31 18:40:05 <SeaDiver_> doxygen only really shows code relation
87 2018-05-31 18:40:07 <SeaDiver_> nothing more
88 2018-05-31 18:40:26 <buZz> maybe just ask specific questions then ;)
89 2018-05-31 18:41:09 <buZz> http://catb.org/~esr/faqs/smart-questions.html <----
90 2018-05-31 18:41:12 <buZz> ;)
91 2018-05-31 18:41:18 <arubi> +1 :)
92 2018-05-31 18:41:53 <arubi> that document, and the "XY problem" one are two of the best writeups on the net
93 2018-05-31 18:42:05 <buZz> i never found any knowledge around bitcoin's code or functioning in -any- way hard to find
94 2018-05-31 18:42:14 <buZz> once i verbally started to question for it
95 2018-05-31 18:42:48 <SeaDiver_> Alright.
96 2018-05-31 18:42:51 <SeaDiver_> First off then.
97 2018-05-31 18:42:54 <SeaDiver_> Whats this /test folder for?
98 2018-05-31 18:43:26 <buZz> ask a c++ developer about test-driven developement :)
99 2018-05-31 18:43:43 <SeaDiver_> What are you?
100 2018-05-31 18:43:46 <buZz> https://en.wikipedia.org/wiki/Test-driven_development
101 2018-05-31 18:44:06 <buZz> if i had to pick a dev title it would be a perl developer
102 2018-05-31 18:44:12 <buZz> so nobody will ask me to code shit for them
103 2018-05-31 18:44:13 <buZz> \o/
104 2018-05-31 18:44:45 <arubi> perl - the write-only language
105 2018-05-31 18:45:16 <SeaDiver_> What is the bench folder for?
106 2018-05-31 18:45:30 <buZz> benchmarks
107 2018-05-31 18:45:47 <SeaDiver_> benchmarks as in statistics or load testing the bitcoin network or?
108 2018-05-31 18:46:07 <buZz> as in benchmarking performance of the code
109 2018-05-31 18:46:14 <buZz> to itself, not to network, i think?
110 2018-05-31 18:46:33 <SeaDiver_> What is compact for
111 2018-05-31 18:46:42 <SeaDiver_> looks like memory related things in here
112 2018-05-31 18:47:08 <buZz> hmhm memory usage affects performance greatly
113 2018-05-31 18:47:26 <SeaDiver_> right but what is /compact for?
114 2018-05-31 18:47:40 <arubi> SeaDiver_, imo you're trying to get into this completely the wrong way. did you ever try to send bitcoin somewhere?
115 2018-05-31 18:47:48 <buZz> SeaDiver_: please read
116 2018-05-31 18:47:55 <arubi> are you aware that there is a testnet, a network for testing out bitcoin?
117 2018-05-31 18:48:00 <buZz> its not /compact
118 2018-05-31 18:48:09 <SeaDiver_> lmao arubi very funny
119 2018-05-31 18:48:20 <arubi> I'm not trying to be funny
120 2018-05-31 18:48:20 <SeaDiver_> ah its compat buZz
121 2018-05-31 18:48:22 <SeaDiver_> didn't see that
122 2018-05-31 18:48:30 <buZz> right
123 2018-05-31 18:48:42 <SeaDiver_> is it for compatibility purposes cross platform?
124 2018-05-31 18:48:43 <buZz> arubi: i think he's mostly motivated by learning , but kinda weird method yeah
125 2018-05-31 18:48:50 <arubi> very weird
126 2018-05-31 18:48:55 <buZz> SeaDiver_: yes
127 2018-05-31 18:49:09 <buZz> like different C library versions etc
128 2018-05-31 18:49:17 <SeaDiver_> ah ok
129 2018-05-31 18:49:21 <buZz> SeaDiver_: did you work in programming prior?
130 2018-05-31 18:49:30 <arubi> I mean, I'm all for learning and more development, but trying to figure out bitcoin as if it's just another program is.. not going to end well
131 2018-05-31 18:49:38 <SeaDiver_> Over a decade, yes.
132 2018-05-31 18:49:42 <SeaDiver_> anyhow
133 2018-05-31 18:49:46 <buZz> SeaDiver_: nothing big then?
134 2018-05-31 18:50:11 <SeaDiver_> buZz: nothing big with this much lack of documentation
135 2018-05-31 18:50:29 <buZz> hehe yeah , commercial projects are quite different from FOSS developement
136 2018-05-31 18:50:37 <buZz> you're always welcome to write new documentation though
137 2018-05-31 18:50:38 <SeaDiver_> >_>
138 2018-05-31 18:50:45 <buZz> just remember , it'll be outdated soon
139 2018-05-31 18:50:51 <SeaDiver_> haha
140 2018-05-31 18:51:01 <buZz> :)
141 2018-05-31 18:51:12 <SeaDiver_> maybe if people updated docs per commit
142 2018-05-31 18:51:15 <SeaDiver_> wouldn't be a hassle
143 2018-05-31 18:51:19 <buZz> lol yr
144 2018-05-31 18:51:35 <buZz> lets spend double the time we do on development \o/
145 2018-05-31 18:51:52 <SeaDiver_> developers these days are lazy
146 2018-05-31 18:51:57 <SeaDiver_> anyways
147 2018-05-31 18:52:00 <buZz> you can pay them to be less lazy
148 2018-05-31 18:52:04 <buZz> just pay em x2
149 2018-05-31 18:52:37 <buZz> SeaDiver_: btw; you made a funny
150 2018-05-31 18:52:42 <buZz> 20:29:42 < SeaDiver_> Thats not a documentation on the source code
151 2018-05-31 18:52:45 <buZz> 20:52:52 < SeaDiver_> developers these days are lazy
152 2018-05-31 18:52:47 <buZz> :D :D
153 2018-05-31 18:52:54 <SeaDiver_> ?
154 2018-05-31 18:53:01 <buZz> you just called yourself lazy ;)
155 2018-05-31 18:53:10 <SeaDiver_> in what manner?
156 2018-05-31 18:53:28 <buZz> in unwillingness to read all code , but demanding to 'know it all , right nao'
157 2018-05-31 18:53:31 <buZz> :D
158 2018-05-31 18:53:45 <SeaDiver_> Its unplausible to go through hundreds of thousands of lines of code
159 2018-05-31 18:54:07 <SeaDiver_> implausible*
160 2018-05-31 18:54:08 <buZz> its equally unplausible you're going to 'add features' without knowing the code by heart prior
161 2018-05-31 18:54:13 <buZz> so , thats equal terms
162 2018-05-31 18:54:31 <arubi> knowing "how bitcoin works
163 2018-05-31 18:54:39 <arubi> is not an easy thing to document
164 2018-05-31 18:54:41 <buZz> well yeh, bare minimum
165 2018-05-31 18:55:06 <SeaDiver_> Says you guys, I have a quite different opinion.
166 2018-05-31 18:55:09 <arubi> best thing is just to experiment with it, try to break it, see how you fail, see what annoys you, and fix it
167 2018-05-31 18:55:50 <SeaDiver_> What is /policy for?
168 2018-05-31 18:56:54 <SeaDiver_> You guys have a bottom up approach, I have a top down one.
169 2018-05-31 18:56:58 <SeaDiver_> Much more efficient.
170 2018-05-31 18:57:02 <arubi> it's hard to explain policy without context for what consensus is, then what soft forks are
171 2018-05-31 18:57:12 <arubi> policy is pretty much the strongest of the three
172 2018-05-31 18:57:12 <buZz> SeaDiver_: nobody likes managers
173 2018-05-31 18:57:27 <SeaDiver_> I have a general understanding of both arubi
174 2018-05-31 18:57:43 <arubi> well, policy is the most constricting
175 2018-05-31 18:58:09 <SeaDiver_> how do you mean?
176 2018-05-31 18:58:30 <SeaDiver_> What qualifies as a block or transaction or?
177 2018-05-31 18:58:34 <buZz> as in, rejecting bad/unwanted transactions
178 2018-05-31 18:58:43 <buZz> or blocks i guess?
179 2018-05-31 18:58:44 <buZz> hmm
180 2018-05-31 18:58:45 <arubi> no, what qualifies as a transaction that gets relayed
181 2018-05-31 18:59:09 <SeaDiver_> Looks like its mostly based on transaction fees
182 2018-05-31 18:59:30 <arubi> not only, standard-ness wrt script is important too
183 2018-05-31 19:00:05 <SeaDiver_> So it makes sure transactions are up to par with standards?
184 2018-05-31 19:00:24 <arubi> not with standards, but with policy which is more constricting
185 2018-05-31 19:00:51 <buZz> some policies are per-node even i think? like mintxrelay etc
186 2018-05-31 19:00:57 <arubi> yep
187 2018-05-31 19:01:32 <SeaDiver_> so policy is restriction check on how transactions get be formed and relayed
188 2018-05-31 19:02:17 <arubi> it's mostly about acceptance to the node's mempool. if it gets accepted, it will probably get relayed by that node, but again not all nodes will agree on the same policy
189 2018-05-31 19:02:49 <buZz> SeaDiver_:
190 2018-05-31 19:02:54 <buZz> SeaDiver_: 'the ML' btw is ; https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
191 2018-05-31 19:02:55 <arubi> but all nodes will agree on consensus, so once a tx is in a block, policy doesn't matter
192 2018-05-31 19:03:00 <arubi> (if the block is valid)
193 2018-05-31 19:03:13 <SeaDiver_> So policy dictates what transactions get added to a node's mempool?
194 2018-05-31 19:03:21 <SeaDiver_> Thanks for the bl buzz
195 2018-05-31 19:03:22 <arubi> yes
196 2018-05-31 19:03:25 <SeaDiver_> ml*
197 2018-05-31 19:03:41 <SeaDiver_> Buzz said before something about relaying iirc arubi ?
198 2018-05-31 19:03:55 <SeaDiver_> Is it only local mempool or relaying to other nodes as well
199 2018-05-31 19:03:57 <buZz> yeah nothing outside of a node's mempool gets relayed
200 2018-05-31 19:04:03 <buZz> mempool is always only local
201 2018-05-31 19:04:07 <arubi> if it gets in your mempool, you'll probably be relaying it
202 2018-05-31 19:04:18 <arubi> but your peers might not accept it to their own mempool
203 2018-05-31 19:04:23 <arubi> so they might won't relay it further
204 2018-05-31 19:05:34 <SeaDiver_> ah so if your policy allows a transaction into your mempool; when you relay it; another node's policy may block it from being accetped into it's mempool?
205 2018-05-31 19:05:44 <arubi> yes
206 2018-05-31 19:05:57 <SeaDiver_> <3 arbui
207 2018-05-31 19:05:58 <arubi> that's what mintxfee for example is about, like buZz said
208 2018-05-31 19:06:42 <SeaDiver_> oh that would make sense for massive miners
209 2018-05-31 19:06:53 <SeaDiver_> having their nodes only accept transaction with x fee or higher
210 2018-05-31 19:07:03 <arubi> also anti DoS. nobody wants a billion 0 fee txs in their mempool
211 2018-05-31 19:07:09 <SeaDiver_> and it would help the network from being dossed with 0
212 2018-05-31 19:07:10 <SeaDiver_> yep
213 2018-05-31 19:07:13 <SeaDiver_> you typed it faster ;(
214 2018-05-31 19:07:16 <buZz> most nodes arent run by miners
215 2018-05-31 19:07:34 <SeaDiver_> awesome.
216 2018-05-31 19:07:40 <buZz> this isnt BCH :P
217 2018-05-31 19:07:45 <arubi> :)
218 2018-05-31 19:07:46 <SeaDiver_> LOL
219 2018-05-31 19:08:37 <SeaDiver_> https://github.com/bitcoin/bitcoin/tree/master/src/interfaces
220 2018-05-31 19:08:42 <SeaDiver_> some of the interfaces are 404ing
221 2018-05-31 19:08:51 <SeaDiver_> removed and readme not updated?
222 2018-05-31 19:09:00 <buZz> some of what?
223 2018-05-31 19:09:05 <buZz> the files are right there
224 2018-05-31 19:09:17 <SeaDiver_> Talking about the read me
225 2018-05-31 19:09:33 <buZz> the readme is also right there?
226 2018-05-31 19:09:39 <buZz> you're talking about the -links- inside the readme?
227 2018-05-31 19:09:39 <SeaDiver_> Right.
228 2018-05-31 19:09:45 <SeaDiver_> yes haha
229 2018-05-31 19:10:00 <buZz> maybe some functions moved to other files, and be more eloquent in stating whats troubling you
230 2018-05-31 19:10:30 <SeaDiver_> gotcha
231 2018-05-31 19:10:40 <SeaDiver_> so its just lack of readme updating?
232 2018-05-31 19:10:54 <buZz> probably , you're welcome to update it though
233 2018-05-31 19:11:07 <SeaDiver_> no idea where those things are at or I would instantly
234 2018-05-31 19:11:37 <SeaDiver_> If something like that is moved why would they not update such things
235 2018-05-31 19:11:38 <buZz> i bet 'init' got renamed and moved
236 2018-05-31 19:11:43 <buZz> that name is way too general
237 2018-05-31 19:12:10 <buZz> SeaDiver_: maybe because its a billion dollar network that needs to function well, and not a educational project ;)
238 2018-05-31 19:12:29 <buZz> lol, that -endlessly- long main.cpp :D
239 2018-05-31 19:12:42 <buZz> what third ring of hell that was :P
240 2018-05-31 19:12:47 <SeaDiver_> a billion dollar network should be more up to date than an average c++ proj
241 2018-05-31 19:12:51 <SeaDiver_> smh
242 2018-05-31 19:12:53 <arubi> :D now it's almost all become validation.cpp but yea, an endless scroll
243 2018-05-31 19:12:56 <SeaDiver_> especially doc wise
244 2018-05-31 19:13:06 <SeaDiver_> validation.cpp sounds fun
245 2018-05-31 19:13:12 <arubi> really, lots of the code is well documented
246 2018-05-31 19:13:13 <buZz> SeaDiver_: cool, post me where this documentation for linux is
247 2018-05-31 19:13:23 <SeaDiver_> buZz: man pages
248 2018-05-31 19:13:24 <arubi> but you actually have to view the source code files to see it
249 2018-05-31 19:13:25 <SeaDiver_> :>>>.
250 2018-05-31 19:13:27 <buZz> SeaDiver_: HAHAHAHAHA
251 2018-05-31 19:13:33 <SeaDiver_> am joking
252 2018-05-31 19:13:35 <buZz> you're delusional or trolling
253 2018-05-31 19:14:00 <buZz> if you talk about 'average c++ project' what do you mean then
254 2018-05-31 19:14:03 <buZz> kicad?
255 2018-05-31 19:14:08 <buZz> not linux, clearly
256 2018-05-31 19:14:11 <SeaDiver_> Saying someone else didn't do it doesn't vindicate you not doing something.
257 2018-05-31 19:14:13 <buZz> inkscape?
258 2018-05-31 19:14:15 <SeaDiver_> lol
259 2018-05-31 19:14:18 <buZz> gimp?
260 2018-05-31 19:14:22 <buZz> no seriously, tell me
261 2018-05-31 19:14:40 <buZz> whats this magically well documented foss c++ project you talk about
262 2018-05-31 19:14:40 <SeaDiver_> I have no examples off the top of my head
263 2018-05-31 19:14:58 <buZz> ok, what was the last c++ project you looked at with good documentation then
264 2018-05-31 19:15:38 <SeaDiver_> I'm not a c++ dev lmao
265 2018-05-31 19:15:54 <buZz> ok, so your basing on your assumption of a sample size of zero
266 2018-05-31 19:16:02 <buZz> on*
267 2018-05-31 19:16:09 <SeaDiver_> language shouldn't matter
268 2018-05-31 19:16:26 <SeaDiver_> maintaining a code base of such massive size should always be heavily documented
269 2018-05-31 19:16:32 <SeaDiver_> always
270 2018-05-31 19:16:33 <buZz> ok, what was any project in any language you most recently looked at where they explained each file and each function to you?
271 2018-05-31 19:18:34 <buZz> not saying it doesnt exist, but i sure havent seen any
272 2018-05-31 19:19:02 <buZz> and your amazement at bitcoin's lack there, suggests you have loads of experience with projects that -do- have it, right?
273 2018-05-31 19:19:27 <SeaDiver_> defensive?
274 2018-05-31 19:19:50 <buZz> i'm just curious to what you're comparing bitcoin
275 2018-05-31 19:20:12 <SeaDiver_> look at any language documentation to see more of what I'm expecting
276 2018-05-31 19:20:31 <buZz> you expect bitcoin's source documentation to match GCC's documentation? :O
277 2018-05-31 19:20:39 <SeaDiver_> yerp
278 2018-05-31 19:20:44 <buZz> holy
279 2018-05-31 19:20:51 <buZz> SeaDiver_: well you better start writing then :D
280 2018-05-31 19:21:00 <SeaDiver_> LOL
281 2018-05-31 19:21:06 <buZz> ^_^
282 2018-05-31 19:21:13 <buZz> and i'm not defensive, its not my code :P
283 2018-05-31 19:21:21 <buZz> ~i'm a innocent bystander
284 2018-05-31 19:24:01 <SeaDiver_> ah
285 2018-05-31 19:24:06 <SeaDiver_> rather a fan of the ISO myself
286 2018-05-31 19:24:13 <buZz> https://gcc.gnu.org/onlinedocs/gcc-8.1.0/gcc.pdf <-- lol
287 2018-05-31 19:24:17 <SeaDiver_> yes
288 2018-05-31 19:24:19 <SeaDiver_> I bave a copy
289 2018-05-31 19:24:22 <buZz> 958 pages :D
290 2018-05-31 19:24:26 <SeaDiver_> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n4713.pdf
291 2018-05-31 19:24:28 <SeaDiver_> something like this
292 2018-05-31 19:24:30 <SeaDiver_> also really nice
293 2018-05-31 19:25:01 <buZz> yeah awesome for students
294 2018-05-31 19:25:08 <buZz> not really useful for doing actual work
295 2018-05-31 19:25:49 <SeaDiver_> 4 General principles [intro] 4.1 Implementation compliance [intro.compliance]
296 2018-05-31 19:25:53 <SeaDiver_> just beautiful
297 2018-05-31 19:26:02 <SeaDiver_> anyway back on track
298 2018-05-31 19:26:21 <SeaDiver_> what is this /primitives for?
299 2018-05-31 19:26:40 <SeaDiver_> depreciated block and transaction type or what
300 2018-05-31 19:27:13 <buZz> when is your report due?
301 2018-05-31 19:27:21 <SeaDiver_> haha
302 2018-05-31 19:27:38 <SeaDiver_> are these used for building blocks and transactions?
303 2018-05-31 19:28:36 <SeaDiver_> buZz: ?
304 2018-05-31 19:28:37 <buZz> dataformats etc
305 2018-05-31 19:28:44 <buZz> is all i see in there
306 2018-05-31 19:28:51 <buZz> you have the files right there
307 2018-05-31 19:28:53 <buZz> just read em :)
308 2018-05-31 19:28:53 <SeaDiver_> so they're used in the actual implementation
309 2018-05-31 19:29:23 <buZz> yes not in the fake one
310 2018-05-31 19:29:35 <SeaDiver_> well you have /test lmao
311 2018-05-31 19:29:40 <SeaDiver_> that's not used when compiling bitcoin core
312 2018-05-31 19:29:46 <buZz> which tests the actual implementation, yes
313 2018-05-31 19:29:51 <buZz> yes it is
314 2018-05-31 19:30:00 <buZz> all bitcoin compilations run all the tests
315 2018-05-31 19:30:10 <buZz> unless specifically disabled, but thats highly inadviced
316 2018-05-31 19:30:45 <SeaDiver_> so tests checks things before compiling?
317 2018-05-31 19:30:48 <buZz> you never compiled bitcoin?
318 2018-05-31 19:30:53 <SeaDiver_> ofc I have
319 2018-05-31 19:30:54 <buZz> after compiling
320 2018-05-31 19:31:00 <buZz> then you know it runs tests
321 2018-05-31 19:31:04 <buZz> because you love to read
322 2018-05-31 19:31:11 <SeaDiver_> ah ok
323 2018-05-31 19:31:12 <buZz> thus , read the output of compilation, right?
324 2018-05-31 19:31:30 <SeaDiver_> output is a bin?
325 2018-05-31 19:31:36 <buZz> lol
326 2018-05-31 19:31:36 <SeaDiver_> you compile, you get a bin?
327 2018-05-31 19:31:42 <buZz> ok , so you didnt compile bitcoin
328 2018-05-31 19:31:47 <buZz> its fine, dont lie :P
329 2018-05-31 19:31:55 <SeaDiver_> I've compiled bitcoin core lmao
330 2018-05-31 19:32:05 <buZz> it outputs MOUNTAINS of text
331 2018-05-31 19:32:05 <SeaDiver_> got bitcoitd and bitcoinqt
332 2018-05-31 19:32:12 <buZz> -during- compilation
333 2018-05-31 19:32:13 <SeaDiver_> during compilation
334 2018-05-31 19:32:17 <SeaDiver_> ^
335 2018-05-31 19:32:22 <buZz> right?
336 2018-05-31 19:32:22 <buZz> yes, which you read
337 2018-05-31 19:32:27 <SeaDiver_> LOL
338 2018-05-31 19:32:27 <SeaDiver_> no
339 2018-05-31 19:32:33 <buZz> why not?
340 2018-05-31 19:32:39 <SeaDiver_> mostly just checks and what not
341 2018-05-31 19:32:43 <SeaDiver_> if theres an error it'll stop
342 2018-05-31 19:32:44 <SeaDiver_> and ill read that
343 2018-05-31 19:32:50 <SeaDiver_> thats all /tests?
344 2018-05-31 19:32:58 <buZz> you want to know what the code does, and what its for, but dont read the output of compiler
345 2018-05-31 19:33:05 <buZz> its just really weird dude
346 2018-05-31 19:33:27 <buZz> and you dont want to fork , and 'haha' my when report is due question , and 'am not a C++ dev'
347 2018-05-31 19:33:30 <buZz> so, what are you doing
348 2018-05-31 19:33:58 <SeaDiver_> learning, you?
349 2018-05-31 19:34:02 <bugs_> trolling without mom's permission again
350 2018-05-31 19:34:03 <buZz> be to the point, i'm not gonna hold your hand while you tippy toe through magic code land
351 2018-05-31 19:34:18 <buZz> SeaDiver_: whats the -endgoal-
352 2018-05-31 19:34:37 <buZz> you learn ALL THE SKILL, and then? what will you do with it
353 2018-05-31 19:35:03 <SeaDiver_> modify the code
354 2018-05-31 19:35:05 <SeaDiver_> ?
355 2018-05-31 19:35:14 <SeaDiver_> or just know
356 2018-05-31 19:35:17 <SeaDiver_> nice to know
357 2018-05-31 19:35:26 <SeaDiver_> but probably modify the code
358 2018-05-31 19:35:34 <buZz> echo 'it does stuff' > THISISWHATEACHCODELINEDOES
359 2018-05-31 19:35:42 <buZz> done
360 2018-05-31 19:35:46 <buZz> :)
361 2018-05-31 19:36:25 <SeaDiver_> say I wanted to add multi threaded leveldb loading because I notice it was currently loading using a single thread
362 2018-05-31 19:36:40 <SeaDiver_> how in the world would I know where to find where leveldb loading is implemented
363 2018-05-31 19:36:55 <SeaDiver_> ?
364 2018-05-31 19:36:55 <SeaDiver_> with all these random files and folders vaguely names and thrown together
365 2018-05-31 19:37:06 <buZz> ctrl-f leveldb
366 2018-05-31 19:37:37 <buZz> SeaDiver_: maybe first learn to code, then learn to read bitcoin's code?
367 2018-05-31 19:37:59 <SeaDiver_> thats completely implausible
368 2018-05-31 19:38:21 <SeaDiver_> you're really set on that bottom up approach
369 2018-05-31 19:38:37 <buZz> you think all bitcoin devs just jumped right into it by reading code and then 'modifying some stuff here and there'
370 2018-05-31 19:38:41 <buZz> ?
371 2018-05-31 19:38:51 <buZz> 'i dno what this C++ stuff is , but this is fun!'
372 2018-05-31 19:38:52 <buZz> :)
373 2018-05-31 19:38:57 <SeaDiver_> LLO
374 2018-05-31 19:39:18 <buZz> not like half the higher up committers to bitcoin ever went to school or something ;)
375 2018-05-31 19:39:20 <SeaDiver_> I'm saying you need at least a general understanding before you go code digging and modifying things
376 2018-05-31 19:39:39 <buZz> yes, of -BOTH- the language -and- the preexisting code
377 2018-05-31 19:39:46 <SeaDiver_> You can't just say, "code is there go read it" to learn about it.
378 2018-05-31 19:40:02 <SeaDiver_> completely implausible
379 2018-05-31 19:40:07 <buZz> if that second interpretation for you requires a pre-chewed document to handhold you through all of it, you're not a valued contributer
380 2018-05-31 19:40:12 <buZz> and that IS reality
381 2018-05-31 19:41:25 <SeaDiver_> you are bottom up and I'm top down, we each have our reasons, why argue about it?
382 2018-05-31 19:41:38 <buZz> because all managers are pointless
383 2018-05-31 19:41:53 <buZz> its what you become when you suck so much at your job that you cant produce anything
384 2018-05-31 19:42:08 <SeaDiver_> um ok
385 2018-05-31 19:44:29 <SeaDiver_> https://github.com/bitcoin/bitcoin/blob/master/src/index/txindex.h
386 2018-05-31 19:44:36 <SeaDiver_> See
387 2018-05-31 19:45:27 <SeaDiver_> look at that nice commenting
388 2018-05-31 19:47:00 <buZz> wow you opened a sourcefile
389 2018-05-31 19:47:04 <buZz> now do all the others
390 2018-05-31 19:47:07 <buZz> and read
391 2018-05-31 19:47:14 <SeaDiver_> no look at the documentation inside
392 2018-05-31 19:47:28 <buZz> no, i'm not you
393 2018-05-31 19:47:48 <SeaDiver_> That type of documentation
394 2018-05-31 19:47:50 <SeaDiver_> should be in every file
395 2018-05-31 19:47:54 <buZz> do it then
396 2018-05-31 19:48:40 <SeaDiver_> I can't I need to know it before I can write it or I would.
397 2018-05-31 19:49:12 <buZz> also, odds your documenation would be valid are low, as you dont know C++
398 2018-05-31 19:49:33 <buZz> nor even want to learn C++ :)
399 2018-05-31 19:49:43 <SeaDiver_> https://github.com/google/leveldb/blob/master/doc/index.md
400 2018-05-31 19:49:49 <SeaDiver_> see heres a documentation on leveldb
401 2018-05-31 19:49:55 <SeaDiver_> you asked for an example
402 2018-05-31 19:49:57 <SeaDiver_> theres a rather nice one
403 2018-05-31 19:50:01 <buZz> i'm glad you are helping yourself
404 2018-05-31 19:50:16 <buZz> now repeat that for a month , then maybe you'll figure it out :)
405 2018-05-31 19:50:27 <SeaDiver_> I cant repeat that for a month
406 2018-05-31 19:50:33 <buZz> ah, report due prior?
407 2018-05-31 19:50:40 <SeaDiver_> the leveldb is a good example of having a good documentation
408 2018-05-31 19:50:49 <SeaDiver_> each bitcoin folder does not have such documentation
409 2018-05-31 19:50:55 <buZz> yes, cool story
410 2018-05-31 19:50:55 <SeaDiver_> which is the problem
411 2018-05-31 19:51:03 <buZz> a problem you can fix
412 2018-05-31 19:51:08 <buZz> and seem highly motivated to fix
413 2018-05-31 19:51:10 <buZz> so , have at it
414 2018-05-31 19:51:13 <SeaDiver_> no I cannot
415 2018-05-31 19:51:17 <buZz> yes you can
416 2018-05-31 19:51:30 <SeaDiver_> I cannot write what I don't know?
417 2018-05-31 19:51:36 <buZz> can you read?
418 2018-05-31 19:51:44 <SeaDiver_> read what, the code?
419 2018-05-31 19:51:46 <buZz> then you'll get far
420 2018-05-31 19:51:52 <SeaDiver_> implausible
421 2018-05-31 19:52:12 <SeaDiver_> When you write code you have to document it
422 2018-05-31 19:52:14 <buZz> ah, you dont believe in yourself, thats a different problem then
423 2018-05-31 19:52:18 <buZz> says who?
424 2018-05-31 19:52:23 <SeaDiver_> -__-
425 2018-05-31 19:54:16 <buZz> your teachers? :D
426 2018-05-31 19:54:35 <SeaDiver_> Says any competent developer.
427 2018-05-31 19:54:56 <buZz> you're calling me incompetent? :D
428 2018-05-31 19:55:17 <buZz> where is your github account SeaDiver_ ? :P
429 2018-05-31 19:55:25 <buZz> i'd love to see your documentation on your own code
430 2018-05-31 19:55:37 <SeaDiver_> Quite sassy you are.
431 2018-05-31 19:55:50 <buZz> i know :)
432 2018-05-31 19:56:02 <buZz> lemme answer it for you < SeaDiver_> i dont have a github account
433 2018-05-31 19:56:28 <SeaDiver_> I'm sorry if you don't feel the need to document your code since you're the only one who ever sees it and you'll never forget anything in there.
434 2018-05-31 19:56:51 <buZz> you're sorry my brain has memory? ok, thanks?
435 2018-05-31 19:57:08 <SeaDiver_> I have a github account I just have no interest of getting into a pissing match with you
436 2018-05-31 19:57:29 <buZz> cause it has no documentation ;) right?
437 2018-05-31 19:57:46 <buZz> you could just say 'i'm not a competent developer' :P
438 2018-05-31 19:57:54 <SeaDiver_> your ideology is clearly flawed and you appear to love instigating
439 2018-05-31 19:58:06 <buZz> thanks :)
440 2018-05-31 19:58:24 <SeaDiver_> you can be the most competent developer
441 2018-05-31 19:58:32 <SeaDiver_> but its incredibly bad practice to not document your code
442 2018-05-31 19:58:57 <buZz> you just linked to bitcoin's sourcecode for an example of good documentation
443 2018-05-31 19:59:01 <buZz> so, yeah .. :P
444 2018-05-31 19:59:10 <SeaDiver_> right in one folder
445 2018-05-31 19:59:16 <SeaDiver_> now how about every other folder
446 2018-05-31 19:59:18 <SeaDiver_> where its not there
447 2018-05-31 19:59:28 <buZz> well sucks to be you i guess :D
448 2018-05-31 19:59:32 <SeaDiver_> LOL
449 2018-05-31 19:59:41 <buZz> gee , wonder what isDust() does
450 2018-05-31 19:59:49 <buZz> WHY IS THERE NO DOCUMENTATION FOR THIS
451 2018-05-31 20:00:35 <SeaDiver_> quite a euphemism
452 2018-05-31 20:17:41 <buZz> well, that was entertaining :P
453 2018-05-31 20:27:18 <arubi> lol
454 2018-05-31 20:30:34 <buZz> i'm not sure what his actual motive was
455 2018-05-31 20:30:45 <buZz> i think i hit a soft spot when i asked when his report was due
456 2018-05-31 20:34:25 <molz> buZz, u bad boy, you destroyed his dream to fork bitcoin!
457 2018-05-31 20:34:53 <buZz> gee, i hope so molz !
458 2018-05-31 20:44:33 <molz> :D