From 7102bf56bf45f20967a7d42c6e9069fbd4784e39 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 16 Jun 2017 14:25:19 +1000 Subject: [PATCH] All updated txns from rebuild_txns are remote. --- src/stratifier.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 972da8e6..6d624cb7 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1557,7 +1557,8 @@ static void request_txns(ckpool_t *ckp, sdata_t *sdata, json_t *txns) } } -/* Rebuilds transactions from txnhashes to be able to construct wb_merkle_bins */ +/* Rebuilds transactions from txnhashes to be able to construct wb_merkle_bins + * on remote workbases */ static bool rebuild_txns(ckpool_t *ckp, sdata_t *sdata, workbase_t *wb) { const char *hashes = wb->txn_hashes; @@ -1644,7 +1645,7 @@ static bool rebuild_txns(ckpool_t *ckp, sdata_t *sdata, workbase_t *wb) dealloc(wb->txn_hashes); txns = wb_merkle_bin_txns(ckp, sdata, wb, txn_array, false); if (likely(txns)) - update_txns(ckp, sdata, txns, true); + update_txns(ckp, sdata, txns, false); } else { if (!sdata->wbincomplete) { sdata->wbincomplete = true;