From 3c64adfb001e5d6b266da525ccc56151b74a561d Mon Sep 17 00:00:00 2001 From: ckolivas Date: Wed, 3 Feb 2016 16:52:53 +1100 Subject: [PATCH] Add correct string to txn table --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index ce32f6e4..e740c972 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1242,7 +1242,7 @@ static void wb_merkle_bins(sdata_t *sdata, workbase_t *wb, json_t *txn_array) /* Propagate transaction here */ /* Move to the sdata transaction table */ HASH_DEL(txns, tmp); - HASH_ADD_STR(sdata->txns, data, tmp); + HASH_ADD_STR(sdata->txns, hash, tmp); /* Empty data once used to not dereference since the json structure * will be destroyed. */ tmp->data = NULL;