Browse Source

Add correct string to txn table

master
ckolivas 9 years ago
parent
commit
3c64adfb00
  1. 2
      src/stratifier.c

2
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 */ /* Propagate transaction here */
/* Move to the sdata transaction table */ /* Move to the sdata transaction table */
HASH_DEL(txns, tmp); 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 /* Empty data once used to not dereference since the json structure
* will be destroyed. */ * will be destroyed. */
tmp->data = NULL; tmp->data = NULL;

Loading…
Cancel
Save