Commit Graph

93 Commits

Author SHA1 Message Date
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
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
72d0d641b4 Merge branch 'bip9' 2016-07-26 03:21:43 +00:00
Luke Dashjr
651323c7c1 Merge branch 'master' into segwit 2016-07-26 03:13:43 +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
1a3cdfd792 Merge branch 'master' into segwit 2016-07-26 02:32:36 +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
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
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
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
Luke Dashjr
ae7055df8b Parse BIP 9 template fields, and implement handling of unrecognised rules 2016-05-25 03:51:52 +00:00
Luke Dashjr
1e49556078 Implement BIP 9 template request "rules" parameter 2016-05-25 03:49:05 +00:00
Luke Dashjr
2772cd22cc Update copyrights 2016-03-25 18:28:37 +00:00
Luke Dashjr
d9a0755029 Merge branch 'bugfix_sizelimit' 2016-01-27 07:14:07 +00:00
Luke Dashjr
5f16acdcc4 Merge branch '0.4.x' 2016-01-27 07:13:20 +00:00
Luke Dashjr
4bebe501ad Update for current feature test macros 2016-01-27 07:13:14 +00:00
Luke Dashjr
7bf7e80a6a Bugfix: Expose blkmk_submitm_jansson for submitting results for blkmk_get_mdata 2016-01-26 04:41:39 +00:00
Luke Dashjr
58aa6a3573 Refactor to eliminate blkmk_assemble_submission_ wrapper 2016-01-26 04:41:16 +00:00
Luke Dashjr
2763aba114 Keep a count of total size of all non-generation transactions in templates 2016-01-26 00:23:30 +00:00
Luke Dashjr
29f6df9585 Support for segregated witness commitments when server provides "txid" that does not match "hash" 2016-01-09 21:21:08 +00:00
Luke Dashjr
9315e34959 Merge branch '0.4.x'
Conflicts:
	blkmaker.h
2015-02-08 05:45:52 +00:00
Luke Dashjr
54cab99423 Support for BIP66 version 3 blocks 2015-02-08 05:45:04 +00:00
Luke Dashjr
47fa1ce9fb jansson: Read time header mutation parameters 2014-09-02 17:17:52 +00:00
Luke Dashjr
f58db44275 Read tmpl->target as an optional hash (breaks ABI) 2014-09-02 17:14:32 +00:00
Luke Dashjr
62e2f6178b Keep correct ordered hash in txn->hash[1] for use internally while remaining ABI-safe 2014-09-02 16:53:02 +00:00
Luke Dashjr
adb6106f89 Merge branch '0.2.x' into 0.3.x 2014-09-02 16:37:06 +00:00
Luke Dashjr
7ad8147482 Merge branch '0.1.x' into 0.2.x 2014-09-02 16:36:54 +00:00
Luke Dashjr
5f463594b1 Revert "Bugfix: Provide correctly-ordered transaction hash (using new key hash_ for backward compatibility)" (broke ABI)
This reverts commit b9572db7d5.
2014-09-02 16:36:32 +00:00
Luke Dashjr
4fe973a101 Bugfix: enum types are not guaranteed to be large enough for a bitmask, so explicitly use uint32_t for gbt_capabilities_t/blkmutations_t bitmasks (this breaks ABI) 2014-09-02 16:20:23 +00:00
Luke Dashjr
20ba4ab64a Merge branch 'proposals' 2014-09-01 20:51:33 +00:00