1 2017-11-04 01:35:11 <emers2n> Hey
 2 2017-11-04 01:37:13 <emers2n> Does the channel include web apps?
 3 2017-11-04 03:28:34 <nicedice> hello! what do you guys think about hashgraph? This technology is proprietary, but the description is publicly available. Is this agreement protocol as good as its creators advertise? are there any flaws?
 4 2017-11-04 14:12:09 <nicedice> hello! what do you guys think about hashgraph? This technology is proprietary, but the description is publicly available. Is this consensus protocol as good as its creators advertise? are there any flaws? (asking here because hashgraph devlopers loudly proclaim that, basically, the PoW protocol is dead (which isn't believable).
 5 2017-11-04 14:13:29 <paulo_> hello
 6 2017-11-04 14:13:34 <nicedice> hello
 7 2017-11-04 14:13:35 <paulo_> in the source code, what is cs_main?
 8 2017-11-04 14:14:10 <nicedice> oh, i'm here to ask questions myself ))
 9 2017-11-04 14:14:17 <nicedice> I donno
10 2017-11-04 14:14:34 <paulo_> https://github.com/bitcoin/bitcoin/blob/master/src/net_processing.cpp#L1257
11 2017-11-04 14:19:35 <nicedice> you have to look for explanation in the code under #include's
12 2017-11-04 14:19:47 <nicedice> as it seems to me
13 2017-11-04 14:24:55 <RafieMY> hello
14 2017-11-04 14:26:00 <RafieMY> i had problem using Nicehash Miner, i cant finish benchmark cuz it always failed. Do u know how to fix it
15 2017-11-04 14:27:00 <paulo_> hi
16 2017-11-04 14:27:57 <RafieMY> hi
17 2017-11-04 14:28:07 <paulo_> "There is no from address" - what does that mean?
18 2017-11-04 14:29:29 <arubi> paulo_, it's an answer to the question "how do I know which address sent me the coins"
19 2017-11-04 14:30:43 <paulo_> why can't we? isn't a transaction signed, therefore the public keys are the from addresses?
20 2017-11-04 14:35:20 <arubi> a public key and signature on stack in the funding transaction doesn't tell you what the scriptpubkey was in the funding transaction.  most of the times you can guess
21 2017-11-04 14:36:19 <arubi> s/funding/current
22 2017-11-04 14:36:32 <arubi> and some transactions don't show the pubkeys at all, say p2pk or multisig
23 2017-11-04 14:37:03 <paulo_> what are the advanta
24 2017-11-04 14:37:37 <paulo_> what are the advantages of tracking unspent transactions instead of keeping a database of address balances?
25 2017-11-04 14:38:20 <paulo_> let's say we transactions actually have from addresses and to addresses.
26 2017-11-04 14:38:40 <paulo_> *let's say transactions
27 2017-11-04 14:40:34 <arubi> well it doesn't sound like your database supports just arbitrary scripts, only defined scripts like ones that have addresses
28 2017-11-04 14:41:21 <paulo_> ahh that's true.
29 2017-11-04 14:44:12 <RafieMY> why my miner doesnt detect my graphic card ?
30 2017-11-04 14:47:22 <RafieMY> babi babun bontot besa, taik hijau, muke mintak kaki, kaki kipas, muke taik
31 2017-11-04 14:47:36 <RafieMY> tetek gleber
32 2017-11-04 15:00:05 <RafieMY> FREE Bitcoin --> https://plu.sh/3kg7v
33 2017-11-04 15:00:36 <paulo_> ugh.
34 2017-11-04 15:02:30 <RafieMY> see you got urself
35 2017-11-04 15:38:00 <paulo_> hello
36 2017-11-04 15:38:08 <paulo_> would you know where ProcessNewBlockHeaders is defined?
37 2017-11-04 16:15:46 <achow101> paulo_: validation.cpp
38 2017-11-04 16:15:51 <achow101> paulo_: use grep
39 2017-11-04 17:18:59 <paulo_> is the block height encoded in the header?
40 2017-11-04 17:20:00 <arubi> that would've been so much better
41 2017-11-04 17:20:09 <arubi> but no
42 2017-11-04 17:57:49 <paulo_> how is work defined again? the sum of the hashes?
43 2017-11-04 17:58:06 <paulo_> or the sum of the targets?
44 2017-11-04 17:59:58 <esotericnonsense> targets
45 2017-11-04 18:00:04 <paulo_> s/defined/calculated
46 2017-11-04 18:01:36 <paulo_> https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp#L104
47 2017-11-04 18:01:56 <paulo_> I don't think the targets can sum to such a low hash...
48 2017-11-04 18:03:57 <paulo_> oh wait, i think i got something wrong
49 2017-11-04 18:21:13 <paulo_> it looks life a block's work is defined as 2^256/target. why is that?
50 2017-11-04 18:21:31 <paulo_> *like
51 2017-11-04 18:22:02 <eck> to make the target fit into 256 bits
52 2017-11-04 18:22:15 <eck> how woudl you define it?
53 2017-11-04 18:27:47 <paulo_> I think I understand now, it calculates the number of hashes (on average) required to calculate a hash lower than the target
54 2017-11-04 18:27:54 <paulo_> hence, it's called work
55 2017-11-04 18:29:12 <paulo_> yay math
56 2017-11-04 18:35:04 <Sentineo> what is the base of that number here? consensus.nMinimumChainWork = uint256S("0x000000000000000000000000000000000000000000723d3581fe1bd55373540a");
57 2017-11-04 18:35:19 <Sentineo> on that line paulo_ pasted here?
58 2017-11-04 18:36:46 <paulo_> Sentineo: it's hexadecimal
59 2017-11-04 18:37:05 <paulo_> the work is calculated here: https://github.com/bitcoin/bitcoin/blob/master/src/chain.cpp#L120
60 2017-11-04 18:37:20 <paulo_> the work is summed here: https://github.com/bitcoin/bitcoin/blob/master/src/validation.cpp#L2671
61 2017-11-04 18:39:14 <arubi> ;;calc log([base 16 10 000000000000000000000000000000000000000000723d3581fe1bd55373540a])/log(2)
62 2017-11-04 18:39:15 <gribble> 86.8359126796
63 2017-11-04 18:43:37 <Sentineo> I meant why that number, not base as mathematical base :D
64 2017-11-04 18:44:51 <arubi> it's how much work was done to mine the chain up to that point
65 2017-11-04 18:45:22 <arubi> more or less how many bitcoin hashes, hash256, were done by miners
66 2017-11-04 18:49:48 <arubi> Sentineo, if you follow debug.log, you can see log2_work increasing each time a block arrives.  it's just counting that same number and displays the log2 of it like ^
67 2017-11-04 18:50:22 <Sentineo> yeah I saw that
68 2017-11-04 18:50:37 <arubi> not sure how accurate it it really is when we know asicboost was used, miners re-using work and all :)
69 2017-11-04 18:50:56 <Sentineo> ok so it seems that snippet of code is for some softfork activation, so making sure it has at least as much work as a the moment of definition makes sense
70 2017-11-04 18:51:33 <arubi> it makes sense because it's reality right, not technical
71 2017-11-04 18:51:44 <Sentineo> yep
72 2017-11-04 18:52:13 <Sentineo> first I though it is some technical - math thing ... than the question of course was why that number? :)
73 2017-11-04 18:53:24 <arubi> yea, chain work is pretty much the only thing that can't change even if reorgs are made, so we don't have to point at a block
74 2017-11-04 18:53:41 <arubi> just say, it's been this much work before this event.  we all know it, it's obvious
75 2017-11-04 18:53:56 <Sentineo> yeah ... easy, compact, robust