Commit Graph

45 Commits

Author SHA1 Message Date
Luke Dashjr
147e86b466 Merge branch 'master' into segwit 2016-08-12 01:06:33 +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
ce5125dc90 Merge commit '15745d4' into 0.4.x 2016-08-11 07:38:58 +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
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
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
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
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
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 libblkmaker 0.5.3
-----BEGIN PGP SIGNATURE-----
 Version: GnuPG v2
 
 iQQcBAABCAAGBQJW9YUnAAoJEL0ClCQh9IifGT0f/0YM3IfoeFFc2cNX/tJvyAeM
 MTmgne3rhzqo9sMI8XXZTL7G5zKIst2MtlVS/pGJ0RbbvG/SaoZruIf/mGE6fDxX
 R/E00EoSnVPZXPPYmAWyP6Ya2pLkSzYpvpJ301avLJXC/ICNDa9Xcnd8/e9emHxE
 0WQvu45OFBZKjn5nwgsZnuwneCHGSGYvkvmYVnhfyBHS+gHHspv0gp/046KklD3o
 CJOWWTQYubGXp26cZ6bZbHW+SybixMwo59uRKLOCU9dgMwxtUDYinVEBUDua+2W+
 /faMu9tGr9Dah4v7AHOyn6kcU444kfg5U8wBcQaITPDAdexq5yJTbr56CeX1R8uq
 aw71OApIDEwUAjq6wwTixe7or6ZyXePIrJc4oMMm43pia5gM1ZjPeylrt03FLhux
 +FHZPqDHRHe/cQsRB6kENr91tdS7CiehgtJPzQRvsDLCSyO3PPb600NfcGNOOILp
 De9cQGN3RHOcq+4PcwB878CYXao8QC+DOiodOA+XAP4s64E1fOtXNnQzCWPKwF/n
 asLSqg7kEbOhX36IGzZaBLbRsyJOKHWbAPHFr52sFWXkje1yq9PrBR6IieuMJtqS
 IOGkvflkYkxJJ/xEbhaiy+4R7IVlVH32puj2xswKtvMOcm7KcL614RzwRRTmT9EQ
 mWYGZrypsG6XHMLFLKE9wooCZ5hd1tZm2zpIPSPKVFV7lXWzC4hWSsCjpynJj9FQ
 zLY4xQRcgnKlnx5Lz5nwuuymQoCJ09xxCm/YvLtuO9e4N4FlPUY3XegRRAh4g2Cy
 nsw+szmpxS6JrXmNwa0DSgvLj7YG/sednCqW5eGemnDeBpjiwjx6T9KasTU1EEs5
 GGyro8dFFak3s9Mdy2eTe6dPXxN4X4egk+ai+FEIMY0HmrrPHSdGzEiQZmw5ov/Z
 uVmAZJpxp48m1Ho/XU4QoUuEnGqa9JO6RZnUcefeznlgvlIVypuTqM9OI2vMPQ0t
 gtAb0YCVN5g6ISffip3VEgx4gHAbhOvpy8tcWUhuhz5+nkT6M7srzyoiIhw3d13E
 vtzNLNyUOztzrf+yZGSwOK9Urf3+krvN2C65g4I0RbTedmzManGuUvKwg2oo8B75
 lPoy612CrMv+2SBPSUipe+XEWBbtghf0mDPqmm886BM3ZMDO6HCW0DqcnkHcELzA
 bea5Qb7VIX0K568OknmUMi0Omozk0r2Minxr/QHcw7M/z58h3PvpB7O009NEi3o/
 iDC0IZbM+Hl01s//cOcDeQxnSlrik8gbKQUeQsmBakz5zQtwDR4et9P+nG4Pgx8C
 hHUwxY3NDvMRTP72JUQyHT9Iommh8jomaCikJlqj3xOxSdN3AftAmuLQ7pwuML4=
 =P5YU
 -----END PGP SIGNATURE-----

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
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
2772cd22cc Update copyrights 2016-03-25 18:28:37 +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
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
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
f58db44275 Read tmpl->target as an optional hash (breaks ABI) 2014-09-02 17:14:32 +00:00
Luke Dashjr
41af7e2b7b Remove unused blktemplate_t fields (breaks ABI) 2014-09-02 17:06:01 +00:00
Luke Dashjr
902492eccb Merge commit 'e86fe28' 2014-09-02 16:55:23 +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
e86fe28fa0 blktemplate.h: Add warning against allocating blktemplate_t 2014-09-02 16:39:10 +00:00
Luke Dashjr
09921dee12 Merge branch '0.3.x' into 0.4.x 2014-09-02 16:37:18 +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
5d14babebc Parse and use coinbaseaux 2014-09-01 19:53:15 +00:00
Luke Dashjr
a7cff7ff18 Include extern "C" wrapper in headers so they can be used from C++ code 2014-08-22 18:36:07 +00:00
Luke Dashjr
83daccfeef Optimise merkle root creation by reusing a merkle branch 2014-02-27 16:58:57 +00:00
Luke Dashjr
b9572db7d5 Bugfix: Provide correctly-ordered transaction hash (using new key hash_ for backward compatibility) 2014-02-24 06:32:22 +00:00
Luke Dashjr
8b57005cf1 Add missing copyright headers 2013-06-13 07:26:54 +00:00
Luke Dashjr
905105615f Export BIP 22 long polling information (and accept lpid to make requests) 2012-09-15 03:07:23 +00:00
Luke Dashjr
26d76947f6 Support for extranonce using BIP 23 coinbase/append mutation 2012-09-11 15:07:54 +00:00
Luke Dashjr
75656b568c Support for BIP 23 submit/coinbase and submit/truncate abbreviations 2012-09-11 13:59:06 +00:00
Luke Dashjr
6477e13920 Add usage of "maxversion" request, and update capability enum for version/* mutations 2012-09-05 03:01:49 +00:00
Luke Dashjr
51d1469cd1 Initial import 2012-09-04 04:46:34 +00:00