Commit Graph

362 Commits

Author SHA1 Message Date
Luke Dashjr
5a6bc0caec Initial unit tests covering template and parsing 2016-08-13 08:27:39 +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
5889aeab25 Merge commit '130cfbd' 2016-08-13 08:22:57 +00:00
Luke Dashjr
130cfbdb3e Bugfix: example: Deal with build and portability issues 2016-08-13 08:22:47 +00:00
Luke Dashjr
711b938fb8 gitignore: Various development-related files 2016-08-12 04:55:56 +00:00
Luke Dashjr
65b9f2dcd0 Document uselessness and future removal of blktemplate_t.{min,max}nonce 2016-08-12 03:38:02 +00:00
Luke Dashjr
963262af08 _blkmk_calculate_witness_mrklroot: Allocate heap space for hashes, rather than use the (potentially too small) stack 2016-08-12 01:20:46 +00:00
Luke Dashjr
147e86b466 Merge branch 'master' into segwit 2016-08-12 01:06:33 +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
aa74130c59 Bugfix: Handle unknown transaction weight by either calculating it (generation only) or ignoring the weightlimit 2016-08-11 22:10:53 +00:00
Luke Dashjr
28f39f440c Bugfix: Initialise weightlimit to INT64_MAX 2016-08-11 22:10:52 +00:00
Luke Dashjr
3280aab174 ABI break: Remove blktemplate_t.{min,max}nonce, since it was never supported and is unlikely to ever be useful 2016-08-11 09:12:35 +00:00
Luke Dashjr
f692fddffa ABI break: Return uint32_t from blktmpl_getcapability since "time" yields a combination of gbt_capabilities_t 2016-08-11 07:49:24 +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
6c1b8b2cba Merge commit '81f7ae1' into 0.5.x 2016-08-11 07:41:30 +00:00
Luke Dashjr
81f7ae1d1a jansson: When parsing, ignore fractional parts of times 2016-08-11 07:41:01 +00:00
Luke Dashjr
b41a0f11ee Merge commit '339f436' into 0.5.x 2016-08-11 07:40:13 +00:00
Luke Dashjr
128458fbd0 Merge branch 'bugfix_sizelimit' into 0.5.x 2016-08-11 07:39:45 +00:00
Luke Dashjr
33ce817739 Merge branch 'bip9_0.4.x' into 0.4.x 2016-08-11 07:39:22 +00:00
Luke Dashjr
acc9266d63 Merge commit '2cad5fd' into 0.4.x 2016-08-11 07:39:09 +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
4be60421c8 Bugfix: Refuse to accept an unparsable vbrequired 2016-08-11 07:36:42 +00:00
Luke Dashjr
2cad5fdadb Bugfix: Refuse to accept a template with neither coinbasetxn nor coinbasevalue 2016-08-11 07:35:41 +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
339f436170 Bugfix: Close memory leak in blktmpl_propose_jansson 2016-08-11 07:28:04 +00:00
Luke Dashjr
d594808495 Merge commit '723a7e5' into 0.4.x 2016-08-10 22:04:58 +00:00
Luke Dashjr
723a7e543b Bugfix: Correctly parse "generation" and "time" mutations 2016-08-10 22:04:41 +00:00
Luke Dashjr
1ff98a1199 gitignore autotools compile wrapper 2016-07-30 22:19:35 +00:00
Luke Dashjr
c9030312dc Revert Segnet support 2016-07-28 03:51:06 +00:00
Luke Dashjr
e1a1b1bd07 assemble_submission: Avoid magic number constants for sizes 2016-07-26 23:56:13 +00:00
Luke Dashjr
3ff3604939 Add "segwit" to supported rule list 2016-07-26 23:54:37 +00:00
Luke Dashjr
86c6f760bf Bugfix: assemble_submission: Enlarge block buffer for witness commitment 2016-07-26 23:54:14 +00:00
Luke Dashjr
7e10567263 Merge branch 'master' into segwit 2016-07-26 23:51:47 +00:00
Luke Dashjr
c524b0160d Merge branch '0.5.x' 2016-07-26 23:51:21 +00:00
Luke Dashjr
a697e39f43 Tree-Merge branch '0.4.x' into 0.5.x 2016-07-26 23:50:30 +00:00
Luke Dashjr
87ccb59726 Merge branch 'bip9' into 0.5.x 2016-07-26 23:50:26 +00:00