Browse Source

Clear_workbase on failed rebuild_txns in proxy mode instead of just freeing the wb memory.

master
Con Kolivas 8 years ago
parent
commit
649d5ff022
  1. 2
      src/stratifier.c

2
src/stratifier.c

@ -1899,7 +1899,7 @@ static void add_node_base(ckpool_t *ckp, json_t *val, bool trusted, int64_t clie
wb->incomplete = true; wb->incomplete = true;
} else { } else {
if (!rebuild_txns(ckp, sdata, wb)) { if (!rebuild_txns(ckp, sdata, wb)) {
free(wb); clear_workbase(wb);
return; return;
} }
} }

Loading…
Cancel
Save