Commit Graph

91 Commits

Author SHA1 Message Date
Luke Dashjr
498221e0b1 Bugfix: blkmk_append_coinbase_safe: Check for an incomplete generation transaction 2016-08-15 21:58:14 +00:00
Luke Dashjr
07ce01f57a test: Check blkmk_init_generation 2016-08-13 08:35:37 +00:00
Luke Dashjr
6c56da6a04 Bugfix: blkmk_append_coinbase_safe2: Check for unexpected larger values before subtracting (in sigop checks) 2016-08-13 08:26:46 +00:00
Luke Dashjr
f333f3c662 Merge branch '0.5.x' 2016-08-13 08:26:34 +00:00
Luke Dashjr
ea800f8be1 Merge branch '0.4.x' into 0.5.x 2016-08-13 08:26:02 +00:00
Luke Dashjr
9cfdca809c Bugfix: blkmk_append_coinbase_safe2: Check for unexpected larger values before subtracting 2016-08-13 08:24:59 +00:00
Luke Dashjr
a9b3541a60 Merge branch '0.5.x' 2016-08-12 01:04:23 +00:00
Luke Dashjr
3d482768d6 Merge branch '0.4.x' into 0.5.x 2016-08-12 01:03:36 +00:00
Luke Dashjr
37cd25dfc1 Merge commit '5a88bc5' into 0.4.x 2016-08-12 01:03:06 +00:00
Luke Dashjr
5a88bc541a Allocate heap space for hashes, rather than use the (potentially too small) stack 2016-08-12 01:02:08 +00:00
Luke Dashjr
896dc34d47 Merge branch 'bugfix_sizelimit' into 0.5.x 2016-08-11 23:37:14 +00:00
Luke Dashjr
981b1dc4fe Bugfix: Include block header and transaction count in sizelimit checks 2016-08-11 23:37:00 +00:00
Luke Dashjr
aaaa53e7d9 Merge branch '0.5.x' 2016-08-11 07:43:42 +00:00
Luke Dashjr
b2ff42e8b7 Merge branch '0.4.x' into 0.5.x 2016-08-11 07:43:37 +00:00
Luke Dashjr
128458fbd0 Merge branch 'bugfix_sizelimit' into 0.5.x 2016-08-11 07:39:45 +00:00
Luke Dashjr
ce5125dc90 Merge commit '15745d4' into 0.4.x 2016-08-11 07:38:58 +00:00
Luke Dashjr
328300edbe Merge commit '4a01674' into 0.4.x 2016-08-11 07:38:45 +00:00
Luke Dashjr
1783777646 Merge commit 'ebd42b2' into 0.4.x 2016-08-11 07:38:31 +00:00
Luke Dashjr
7b1113110a Bugfix: Correct return type for blkmk_append_coinbase_safe2 hitting sizelimit 2016-08-11 07:37:57 +00:00
Luke Dashjr
15745d4a5f Bugfix: Ensure coinbase is always at least 4 bytes long 2016-08-11 07:34:34 +00:00
Luke Dashjr
4a01674cd0 Bugfix: blkmk_get_mdata must fail if we cannot append the coinbase 2016-08-11 07:29:31 +00:00
Luke Dashjr
ebd42b2461 Bugfix: Correct blkmk_work_left for single-work templates that have been used 2016-08-11 07:29:01 +00:00
Luke Dashjr
e1a1b1bd07 assemble_submission: Avoid magic number constants for sizes 2016-07-26 23:56:13 +00:00
Luke Dashjr
c524b0160d Merge branch '0.5.x' 2016-07-26 23:51:21 +00:00
Luke Dashjr
87ccb59726 Merge branch 'bip9' into 0.5.x 2016-07-26 23:50:26 +00:00
Luke Dashjr
1799d18d55 Merge commit '6002cb9' into 0.5.x (removing a line) 2016-07-26 23:49:42 +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
871871ddd5 Merge branch 'sigoplimit' 2016-07-26 04:22:24 +00:00
Luke Dashjr
80c85d212a When possible, check sigoplimit before appending to the coinbase 2016-07-26 04:07:09 +00:00
Luke Dashjr
72d0d641b4 Merge branch 'bip9' 2016-07-26 03:21:43 +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
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
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
676d9ab5eb Merge branch 'bip9_0.4.x' into bip9 2016-05-25 03:54:21 +00:00
Luke Dashjr
f658eabf5e "csv" deployment requires no particular changes, so add it to supported rules 2016-05-25 03:51:52 +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
c94e438c91 Bugfix: Always avoid data/mdata size conflict in blkmk_append_coinbase_safe2 since nothing else checks merkle_only (nor has it available to check) 2016-01-26 04:47:25 +00:00
Luke Dashjr
58aa6a3573 Refactor to eliminate blkmk_assemble_submission_ wrapper 2016-01-26 04:41:16 +00:00
Luke Dashjr
e3465d35aa Refactor blkmk_assemble_submission2_ to work with either extranonce/mdata or dataid/data 2016-01-26 04:35:10 +00:00
Luke Dashjr
a22129364a Refactor construction of block submissions to allow for results from get_mdata 2016-01-26 04:26:02 +00:00
Luke Dashjr
24aabb0e55 Bugfix: Allocate temporary space on the heap rather than the stack, and use the actual transaction data size for the buffer 2016-01-26 04:13:43 +00:00
Luke Dashjr
f1ede0aec7 Bugfix: Check full block size against limit when creating/appending the coinbase 2016-01-26 04:13:43 +00:00
Luke Dashjr
ef78f03a58 Make an abstract size variable for libblkmaker_coinbase_size_limit 2016-01-26 04:13:43 +00:00
Luke Dashjr
a336d9a70c Move varintEncode earlier in file 2016-01-09 21:13:44 +00:00
Luke Dashjr
41af7e2b7b Remove unused blktemplate_t fields (breaks ABI) 2014-09-02 17:06:01 +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
20ba4ab64a Merge branch 'proposals' 2014-09-01 20:51:33 +00:00