1 2017-11-26 01:41:45 <garit> If bitcoin will continue to grow in price, it will continue to be more expensive in terms of energy. Currently it takes about 225 kwh per transaction. I realise that this is more of a market issue, not technical, but still, is there a way to fix this?
 2 2017-11-26 01:46:48 <cncr04s> 225kwh per transaction?
 3 2017-11-26 01:47:00 <cncr04s> I don't even have that much power
 4 2017-11-26 01:47:05 <cncr04s> so I doubt thats true
 5 2017-11-26 01:47:13 <cncr04s> per block mabye..
 6 2017-11-26 01:50:22 <garit> Current power is 343 megawatts, or 57 Mwh per block
 7 2017-11-26 01:50:54 <garit> cncr04s: this is based on miner expenses, not user expenses
 8 2017-11-26 03:05:51 <eck> https://en.bitcoin.it/wiki/Protocol_documentation#Network_address when it says time is not present in version messages, does that mean time should be zeroed, or omitted entirely?
 9 2017-11-26 06:55:07 <jonasschnelli> eck: the version message contains two addr's, those don't have a time field.
10 2017-11-26 06:55:25 <jonasschnelli> (not null, it's omitted)
11 2017-11-26 10:10:38 <_flow_> I'm playing around with testnet3 and generate(toaddress) in an attempt to (cpu) mine a testnet block. I issue "generate 6000" which causes a few "CreateNewBlock()" log messages followed by "keypool return". Did I mine a block, or did something go wrong, or did I something wrong?
12 2017-11-26 13:18:44 <hkjn0> @mlz: sorry for lack of reply yesterday, but reason I'm setting -reindex is because bitcoind doesn't start otherwise, with message 'You need to rebuild the database using -reindex to change -txindex'
13 2017-11-26 13:19:29 <hkjn0> I'm doing IBD again now with txindex=1 set and clean data directory, but would like to understand why blocks seem to need to be downloaded again with -reindex
14 2017-11-26 13:59:27 <buZz> because you deleted data directory?
15 2017-11-26 14:36:13 <tlim> Hi, this is my first time on bitcoin-dev and I have a few questions regarding collecting stats of transaction fees. Would someone be free to answer them?
16 2017-11-26 15:33:48 <aFeijo> hi guys! Anyone use the bitfinex api? I cant find one function from their API that return all altcoins rates. It wouldnt be a good idea to call the API for each coin
17 2017-11-26 15:56:58 <hkjn0> buZz: I moved away the old data directory *after* finding that my node started syncing down all blocks when running with -reindex. I do realize that without a data directory, the node needs to sync down the blockchain :)
18 2017-11-26 15:57:27 <buZz> heh ok
19 2017-11-26 15:57:43 <buZz> reindexing with a nonpruned blockchain doesnt download anything, afaik
20 2017-11-26 16:20:47 <hkjn0> right, thus my confusion.. oh well, can maybe dig into the code to try to figure it out later, for now I'll just redownload with txindex=1
21 2017-11-26 18:31:46 <johnnylulz> hi. hav downloaded bitcoin source. found a genesis block with GenesisBlockZero within 2 hours. edited chainparams.cpp. compiled bitcoin. bitcoind starts successfully. run cpuminer for 1 day and no new block found. what am I doing wrong?
22 2017-11-26 18:33:26 <garit> johnnylulz: can you check the complexity of mining in your system?
23 2017-11-26 18:33:54 <garit> it looks like you try to make a new blockchain , and you expect to see low complexity, and something isnt right
24 2017-11-26 18:35:33 <johnnylulz> yes, i need a new blockchain for tests
25 2017-11-26 18:35:52 <johnnylulz> how to check complexity?
26 2017-11-26 18:38:26 <garit> I don't know, sorry
27 2017-11-26 18:38:40 <johnnylulz> ok thx
28 2017-11-26 18:59:47 <garit> What algorithm is in bitcoin private address key? (key that allows to spend btc)
29 2017-11-26 19:00:30 <arubi> what do you mean?
30 2017-11-26 19:01:52 <garit> When i send money from address X i also add some crypto thing to show others that i poses the right to use address X, right?
31 2017-11-26 19:02:24 <arubi> the second part is right.  you never send from an address
32 2017-11-26 19:02:51 <arubi> you do add signatures to some already predetermined script, and if that turns out to result to true then your spend of the coins is valid
33 2017-11-26 19:03:15 <garit> What signature algorithm is used that verifies the ownership of an adress?
34 2017-11-26 19:03:22 <arubi> ECDSA
35 2017-11-26 19:03:43 <arubi> specifically, secp256k1 is the curve
36 2017-11-26 19:04:18 <garit> Thanks
37 2017-11-26 19:04:24 <arubi> cheers
38 2017-11-26 19:12:08 <garit> Lets assume fake transaction and valid block attack. A miner adds fake transaction from address X that he has no key to so he adds random data instead. But apart from this the block is valid. Will other miners check every transaction in a block? What if miner adds fake transaction into block 1 and mines second valid block on top? Will miners just check the top block, or all the chain?
39 2017-11-26 19:13:33 <arubi> the block can't be valid with an invalid transaction in it
40 2017-11-26 19:13:49 <arubi> it might have valid proof of work, but that doesn't make a difference
41 2017-11-26 19:14:43 <garit> Question is will miners accept this block in case if a valid block is added on top? By the same miner for example
42 2017-11-26 19:14:55 <arubi> why would they accept it if it's invalid?
43 2017-11-26 19:15:21 <arubi> you don't just skip validation.  you validate everything
44 2017-11-26 19:15:50 <arubi> if one block is invalid, then the whole chain from that point on is invalid, it's that simple
45 2017-11-26 19:16:45 <garit> Okay, thanks, i wanted to ensure that miners check every block
46 2017-11-26 19:16:55 <arubi> hopefully!
47 2017-11-26 19:17:26 <arubi> if you just check the proof of work, you could get fooled, but the other party just wasted a bunch of resources to mine an invalid block
48 2017-11-26 19:21:02 <txter> garit: You might like the book 'Mastering bitcoin', it will answer many of these questions in more detail
49 2017-11-26 19:24:40 <puchu> hi
50 2017-11-26 19:25:10 <puchu> how long does a tx stay unconfirmed in the mempool when it's not rebroadcasted?
51 2017-11-26 19:27:28 <arubi> puchu, if it's in your wallet, it's there forever
52 2017-11-26 19:28:09 <arubi> what do you really want to do?
53 2017-11-26 19:28:20 <mlz> arubi, it's supposed to be dropped after two weeks
54 2017-11-26 19:29:01 <arubi> just the odd transaction, sure.  but if it's the wallet's transaction, it's in the wallet forever and it'll be retried every time
55 2017-11-26 19:29:17 <mlz> ah yes
56 2017-11-26 19:29:50 <arubi> maybe some difference in if it's received or sent..  actually I don't know.  I hope not :)
57 2017-11-26 19:30:18 <puchu> i have a stuck transaction pedning for 3 days. i just payed the minimum fee
58 2017-11-26 19:30:49 <arubi> is that fee enough to get it through right now?  can you tell the fee?
59 2017-11-26 19:37:10 <puchu> i don't tihnk so. it's 192sat
60 2017-11-26 19:37:32 <puchu> arubi:
61 2017-11-26 19:37:53 <arubi> that doesn't tell me much.  what's the fee, and how many bytes is the transaction?
62 2017-11-26 19:38:15 <arubi> is it your transaction?  or did someone send it to you?
63 2017-11-26 19:39:06 <arubi> if it's yours, are you sending to yourself?
64 2017-11-26 19:39:47 <arubi> it's important because even though it's unconfirmed, it's still valid and the recipient can use it at any point.  so I'm trying to figure our what your end goal is
65 2017-11-26 19:40:21 <arubi> also I'm about to be afk, so if you're here later on we could continue then :)
66 2017-11-26 19:42:54 <puchu> 1.005 sat/B - size 191 (bytes)
67 2017-11-26 19:43:06 <puchu> Fee 0.00000192 BTC
68 2017-11-26 19:44:55 <garit> puchu: what is your goal? Delete the transaction? You could edit the wallet manually. Make this transaction happen? probably could send a second transaction from an end address but with a higher fee. Or delete + send again with higher fee
69 2017-11-26 19:45:59 <arubi> no need to edit manually, it's possible to discard it from mempool with commands, but it really doesn't do anything if you already relayed it
70 2017-11-26 19:46:16 <arubi> the other person could just cpfp and get the money at some point
71 2017-11-26 19:50:15 <garit> arubi: he can sent this coins elsewhere and then receiver wont be able to spend them
72 2017-11-26 19:50:40 <arubi> right!  double spend, but it's hard to do when it's still in the node's mempool and not abandoned from the wallet :)
73 2017-11-26 19:50:53 <arubi> /dinner
74 2017-11-26 19:55:15 <garit> You could try to flood low fee transactions to clear the mempool (i doubt they store 2 weeks. More likely X megabytes of data)
75 2017-11-26 19:56:47 <mlz> wat
76 2017-11-26 19:57:48 <garit> mlz: do you expect nodes to have u limited storage for mempool?
77 2017-11-26 19:57:57 <garit> Unlimited*
78 2017-11-26 19:58:22 <mlz> what do you mean?
79 2017-11-26 19:58:54 <puchu> the mempool is a fifo when it runs full
80 2017-11-26 19:59:12 <puchu> or better the lowest fee leaves at first :)
81 2017-11-26 19:59:33 <garit> mlz: what should mempool do in case of flood?
82 2017-11-26 19:59:48 <mlz> nothing?
83 2017-11-26 20:01:05 <mlz> puchu, you can try CPFP like arubi said, or the receiver can try it
84 2017-11-26 20:02:06 <garit> mlz: keep recording gigabytes of data? delete old entries? Ignore neW entries?
85 2017-11-26 20:06:12 <esotericnonsense> as far as i'm aware it's trimmed to a fee level
86 2017-11-26 20:06:29 <esotericnonsense> txmempool.cpp has a TrimToSize function that looks to do that
87 2017-11-26 20:07:14 <garit> So in order to flush transaction X from a mempool you need to flood it with lots of transactions with a bit higher fee
88 2017-11-26 20:07:48 <esotericnonsense> very much a lot, the standard mempool size iirc is 300MiB usage which is about 100MiB tx
89 2017-11-26 20:09:24 <garit> Figuring out what is a current composition of mempool would help too (may be your tx isnt even included)
90 2017-11-26 20:11:38 <esotericnonsense> it depends on the node but it probably is
91 2017-11-26 20:11:53 <esotericnonsense> https://esotericnonsense.com/ i have less than 75MiB for the last week
92 2017-11-26 20:12:06 <mlz> there're always nodes that run with 0 fee relay