Bugfix: Allocate temporary space on the heap rather than the stack, and use the actual transaction data size for the buffer

This commit is contained in:
Luke Dashjr
2016-01-26 00:36:01 +00:00
parent 2763aba114
commit 24aabb0e55
2 changed files with 27 additions and 4 deletions

View File

@@ -24,6 +24,8 @@ typedef uint32_t blktime_t;
typedef int16_t blktime_diff_t;
typedef uint32_t blknonce_t;
#define libblkmaker_blkheader_size (80)
struct blktxn_t {
unsigned char *data;
size_t datasz;