|
|
@ -6319,8 +6319,10 @@ static void add_node_txns(sdata_t *sdata, const json_t *val) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
HASH_FIND_STR(sdata->txns, hash, txn); |
|
|
|
HASH_FIND_STR(sdata->txns, hash, txn); |
|
|
|
if (txn) |
|
|
|
if (txn) { |
|
|
|
|
|
|
|
txn->refcount++; |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
txn = ckzalloc(sizeof(txntable_t)); |
|
|
|
txn = ckzalloc(sizeof(txntable_t)); |
|
|
|
memcpy(txn->hash, hash, 65); |
|
|
|
memcpy(txn->hash, hash, 65); |
|
|
|
txn->data = strdup(data); |
|
|
|
txn->data = strdup(data); |
|
|
|