1 2017-06-02 02:31:21 <suryab> when the core code attempts to do something like this: size_t nLimitAncestors = GetArg("-limitancestorcount", DEFAULT_ANCESTOR_LIMIT);
2 2017-06-02 02:31:47 <suryab> is the `-limitancestorcount` parameter something I have to pass in when running bitcoind or with my call to bitcoin-cli?
3 2017-06-02 02:32:14 <suryab> when trying with bitcoind it fails, so I assume that it's with bitcoin-cli but I may be doing something wrong
4 2017-06-02 08:48:54 <wumpus> they are bitcoind arguments, which can be provided on the bitcoind command line or in bitcoin.conf
5 2017-06-02 10:38:58 <jeremias> bitcoin-cli getbalance "*" N is returning negative values when N is high, for example 5
6 2017-06-02 10:40:00 <jeremias> and the more negative the higher number of confirmations required...
7 2017-06-02 11:46:26 <instagibbs> dont use getbalance with accounts :)
8 2017-06-02 17:48:57 <sunnyveil> hi, i would like to know how you interpret the data that you get from "bitcoind getblocktemplate" a big part of that json i am getting there is an array of transactions each with a 'data'-entry. what kind of format is that data-entry is it just a hex-encoded RawTransaction?
9 2017-06-02 17:50:46 <sunnyveil> with raw transaction i mean this format https://bitcoin.org/en/developer-reference#raw-transaction-format
10 2017-06-02 17:52:58 <arubi> sunnyveil, are you actually running "bitcoind getblocktemplate" ?
11 2017-06-02 17:53:35 <sunnyveil> yes
12 2017-06-02 17:53:49 <arubi> what software is this?
13 2017-06-02 17:53:54 <sunnyveil> bitcoind
14 2017-06-02 17:53:59 <arubi> what coin?
15 2017-06-02 17:54:04 <sunnyveil> bitcoin ?
16 2017-06-02 17:54:10 <arubi> what version..?
17 2017-06-02 17:54:39 <sunnyveil> 0.14.1
18 2017-06-02 17:54:47 <arubi> bitcoin-cli does getblocktemplate..
19 2017-06-02 17:54:55 <sunnyveil> ah sorry you are right
20 2017-06-02 17:55:11 <sunnyveil> bitcoin-cli you are completely right there, i am using bitcoind -u first to start it
21 2017-06-02 17:55:14 <sunnyveil> got confused there
22 2017-06-02 17:55:50 <arubi> okay, so you're getting an array of transaction IDs?
23 2017-06-02 17:55:59 <arubi> is that what you're asking about?
24 2017-06-02 17:56:24 <sunnyveil> well i am asking about the response of "bitcoin-cli.exe getblocktemplate"
25 2017-06-02 17:56:52 <sunnyveil> it returns a roughly 2mb json with a bunch of transactions, who each have a data-element and i am wondering what the format of that data-element is
26 2017-06-02 17:57:28 <arubi> actually this is new
27 2017-06-02 17:58:09 <arubi> so yes these are raw transactions like in the link you posted
28 2017-06-02 17:58:17 <sunnyveil> wonderful
29 2017-06-02 17:59:14 <sunnyveil> so that is all i need to mine a block, i can ignore all the other parts of that transaction-entry "txid" "hash" "depends" "fee" "sigops" "weight"
30 2017-06-02 17:59:31 <arubi> you should look at the txid and hash really
31 2017-06-02 17:59:39 <sunnyveil> hm look for what?
32 2017-06-02 17:59:44 <arubi> why bother with the raw tx if it's validated and set up for you?
33 2017-06-02 18:00:07 <arubi> well, look at the "txid" and "hash" fields for actual block header construction
34 2017-06-02 18:00:42 <sunnyveil> hm i dont understand
35 2017-06-02 18:01:06 <sunnyveil> oh nvm i understand
36 2017-06-02 18:01:10 <arubi> oh :)
37 2017-06-02 18:02:02 <sunnyveil> the hash-entry is the sha256(sha256()) of the data-entry?
38 2017-06-02 18:02:41 <arubi> yes, but "txid" is too. these are calculated differently for segwit and non segwit transactions
39 2017-06-02 18:02:55 <arubi> for non-segwit, hash == txid, but not the case for segwit
40 2017-06-02 18:03:03 <sunnyveil> oh okay, i dont even know what segwit transactions are
41 2017-06-02 18:03:17 <arubi> well
42 2017-06-02 18:03:23 <arubi> what are you trying to do?
43 2017-06-02 18:03:28 <sunnyveil> i want to mine a block
44 2017-06-02 18:03:48 <sunnyveil> or rather i am developing a miner, for educational purpose not real usage
45 2017-06-02 18:04:13 <arubi> okay, did you look at mining code in bitcoin core, or on bfgminer for example?
46 2017-06-02 18:04:44 <sunnyveil> i tried to of bitcoin core, but it is rather hard to understand
47 2017-06-02 18:04:58 <arubi> you should start with trying to mine "empty" blocks (with only the generation transaction), then move on to adding a segwit part to that
48 2017-06-02 18:05:07 <arubi> then one transaction, then the whole tree :)
49 2017-06-02 18:06:13 <sunnyveil> okay, can you point me somewhere to read about "segwit" when i google "bitcoin segwit" i only get news and adapation-articles, not really describing what i means
50 2017-06-02 18:06:23 <arubi> google 'segwit bip141'
51 2017-06-02 18:06:42 <sunnyveil> merci :)
52 2017-06-02 18:06:49 <arubi> cheers
53 2017-06-02 18:06:54 <sunnyveil> thanks a lot arubi you helped me a great deal :D
54 2017-06-02 18:07:02 <arubi> no problem sunnyveil
55 2017-06-02 20:07:34 <Michail1> Anyone have a good read for Lightning they could link me to?