Browse Source

Check and submit transactions only remote transactions.

master
Con Kolivas 8 years ago
parent
commit
dd512e674a
  1. 5
      src/stratifier.c

5
src/stratifier.c

@ -1101,6 +1101,9 @@ static bool add_txn(ckpool_t *ckp, sdata_t *sdata, txntable_t **txns, const char
txn = ckzalloc(sizeof(txntable_t));
memcpy(txn->hash, hash, 65);
if (local)
txn->data = strdup(data);
else {
/* Get the data from our local bitcoind as a way of confirming it
* already knows about this transaction. */
txn->data = generator_get_txn(ckp, hash);
@ -1110,6 +1113,8 @@ static bool add_txn(ckpool_t *ckp, sdata_t *sdata, txntable_t **txns, const char
submit_transaction(ckp, data);
txn->data = strdup(data);
}
}
if (!local || ckp->node)
txn->refcount = REFCOUNT_REMOTE;
else

Loading…
Cancel
Save