Browse Source

Cope with empty transactions in json encoding

master
Con Kolivas 11 years ago
parent
commit
1682d8e0f3
  1. 3
      src/stratifier.c

3
src/stratifier.c

@ -516,7 +516,8 @@ static void update_base(ckpool_t *ckp)
if (wb->transactions) {
json_strdup(&wb->txn_data, val, "txn_data");
json_strdup(&wb->txn_hashes, val, "txn_hashes");
}
} else
wb->txn_hashes = ckzalloc(1);
json_intcpy(&wb->merkles, val, "merkles");
wb->merkle_array = json_array();
if (wb->merkles) {

Loading…
Cancel
Save