362 Commits

Author SHA1 Message Date
Luke Dashjr
1799d18d55 Merge commit '6002cb9' into 0.5.x (removing a line) 2016-07-26 23:49:42 +00:00
Luke Dashjr
99e710cb7f Merge commit '2eb3265' into 0.5.x 2016-07-26 23:48:49 +00:00
Luke Dashjr
6002cb96a0 assemble_submission: Include extranoncesz in buffer allocation
Missing this would result in a buffer overrun, except the varint is allocated 9 bytes, extranonce is rarely more than 4 or 5, and the varint itself can't realistically be more than 3 today
2016-07-26 23:44:17 +00:00
Luke Dashjr
2e0cc834fe Bugfix: blktxn_init: Initialise txid and weight 2016-07-26 23:30:31 +00:00
Luke Dashjr
28a2bb7f6b Add segwit commitment at the end, rather than the start of the output list 2016-07-26 17:20:55 +00:00
Luke Dashjr
5307b027f6 Implement weightlimit 2016-07-26 04:36:22 +00:00
Luke Dashjr
b5c6d97be7 Use new sigop counting (ie, quadrupled) when "segwit" in rules list 2016-07-26 04:24:46 +00:00
Luke Dashjr
048483d97c Parse template block version, rules, and mutations before time limits, transactions, and aux data 2016-07-26 04:24:30 +00:00
Luke Dashjr
1250b472f0 Merge branch 'master' into segwit 2016-07-26 04:23:36 +00:00
Luke Dashjr
871871ddd5 Merge branch 'sigoplimit' 2016-07-26 04:22:24 +00:00
Luke Dashjr
8f8110a7e4 Bugfix: Remove duplicate sigop tallying 2016-07-26 04:22:11 +00:00
Luke Dashjr
80c85d212a When possible, check sigoplimit before appending to the coinbase 2016-07-26 04:07:09 +00:00
Luke Dashjr
016aa307f5 Merge commit '2eb3265' 2016-07-26 03:43:17 +00:00
Luke Dashjr
2eb326525d Bugfix: Reject invalid coinbaseaux data 2016-07-26 03:42:54 +00:00
Luke Dashjr
1ba845f671 Merge commit '861bd06' 2016-07-26 03:33:05 +00:00
Luke Dashjr
861bd066fe Bugfix: Restore calloc despite blktxn_init; if we fail before completing parsing the transaction, we need to avoid uncleared pointers 2016-07-26 03:33:00 +00:00
Luke Dashjr
5ee6256cb4 Merge branch 'master' into segwit 2016-07-26 03:23:53 +00:00
Luke Dashjr
aef9cbc5a5 Merge branch 'master' (early part) into segwit 2016-07-26 03:22:35 +00:00
Luke Dashjr
5875a41d34 Merge branch 'bip9_0.4.x' into 0.4.x 2016-07-26 03:22:05 +00:00
Luke Dashjr
72d0d641b4 Merge branch 'bip9' 2016-07-26 03:21:43 +00:00
Luke Dashjr
c651bc036f Merge: Optionally build example.c with "make example" 2016-07-26 03:20:28 +00:00
Luke Dashjr
2d822c6bbc Minor fixups for "make example" 2016-07-26 03:20:08 +00:00
Luke Dashjr
651323c7c1 Merge branch 'master' into segwit 2016-07-26 03:13:43 +00:00
Luke Dashjr
7364be59db Merge branch 'master' (early part) into segwit 2016-07-26 03:13:18 +00:00
Luke Dashjr
4a1dcb5cb6 Merge branch 'sigoplimit' 2016-07-26 03:12:26 +00:00
Luke Dashjr
df9c3e9303 blkmk_init_generation*: If possible, check we are not overflowing sigoplimit 2016-07-26 03:11:46 +00:00
Luke Dashjr
3c7889fa23 Keep a tally of total sigops in blktmpl_t->txns (if known) 2016-07-26 03:11:18 +00:00
Luke Dashjr
e37ae9022b Implement blkmk_count_sigops 2016-07-26 03:11:18 +00:00
Luke Dashjr
1cf20a8348 Merge integer unpacking code 2016-07-26 02:51:12 +00:00
Luke Dashjr
1a3cdfd792 Merge branch 'master' into segwit 2016-07-26 02:32:36 +00:00
Luke Dashjr
cd1ae36d0d Merge branch 'populate_txn' 2016-07-26 02:30:48 +00:00
Luke Dashjr
56187b6710 Parse transaction sigops 2016-07-26 02:19:00 +00:00
Luke Dashjr
ba398a34e7 Parse transaction required-flag 2016-07-26 02:19:00 +00:00
Luke Dashjr
b05c2c50de Parse transaction fee 2016-07-26 02:19:00 +00:00
Luke Dashjr
4babc68a5f Parse transaction depends list 2016-07-26 02:19:00 +00:00
Luke Dashjr
12db22114d API break: Represent unknown txn {dependscount,fee_,sigops_} as -1 instead of 0
Also renamed the fields to break code relying on old interpretation
2016-07-26 02:18:37 +00:00
Luke Dashjr
7e7f376aa3 Merge branch '0.4.x' 2016-07-26 02:18:13 +00:00
Luke Dashjr
8f11886982 Null-Merge branch '0.4.x' (early part) 2016-07-26 02:18:05 +00:00
Luke Dashjr
89c06f9a31 Merge branch '0.4.x' (early part) 2016-07-26 02:17:55 +00:00
Luke Dashjr
9f58bcb4aa Bugfix: Check range of number values
Ensure they survive the round-trip from double to their native type and (implicitly) back
2016-07-26 02:17:05 +00:00
Luke Dashjr
5016f8d86a Parse transaction weights into blktxn_t structure
ABI break: sizeof(blktxn_t) has been increased, so accesses to blktmpl_t->txns[>0] use a different offset (aside, hash_ and txid are moved)
New ABI supports up to 512 MB transactions (with a max weight-per-bytes of 4), and library gracefully interprets larger weight values as -1 (unknown)
2016-07-23 21:25:38 +00:00
Luke Dashjr
3be2fadaca AUTHORS: Add Cory Fields 2016-07-23 21:08:17 +00:00
Luke Dashjr
7e0d27119c Merge tag 'v0.5.3' into segwit
libblkmaker 0.5.3
2016-07-23 20:26:07 +00:00
Luke Dashjr
d5a43949b1 Merge bugfix_sizelimit into segwit 2016-07-23 20:25:32 +00:00
Luke Dashjr
382e864589 Merge into segwit 2016-07-23 20:10:39 +00:00
Geremia
d0a9367017 "make example" builds example.c if libgcrypt present
using AM_PATH_LIBGCRYPT to check for libgcrypt

removed AC_MSG_RESULT in configure.ac; added phony "example" target in Makefile.am if libcrypt not found
2016-06-22 13:03:18 -07:00
Luke Dashjr
cc07c06238 jansson: Read time header mutation parameters 2016-05-27 17:24:47 +00:00
Luke Dashjr
24633a987f Bugfix: Use json_number_value in case jansson decided to parse numbers as a "real" 2016-05-27 17:23:30 +00:00
Luke Dashjr
0d8212c1dc Make new BIP 9 features public 2016-05-25 03:55:31 +00:00
Luke Dashjr
676d9ab5eb Merge branch 'bip9_0.4.x' into bip9 2016-05-25 03:54:21 +00:00