Skip to content

Commit 1b6145f

Browse files
committed
- Minor bugfixes.
1 parent 5c57af8 commit 1b6145f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pseudo_node.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,8 +1289,9 @@ static void refetch_data(struct table *table)
12891289
}
12901290
warning("refetching stalled data " HASH_FORMAT_SHORT,
12911291
HASH_SHORT(curr->hash));
1292-
fetch_data(table, NULL, curr->type, curr->hash, curr->sync,
1293-
get_vote(table, curr->hash));
1292+
uint64_t mask = (curr->sync? get_vote(table, curr->hash):
1293+
UINT64_MAX);
1294+
fetch_data(table, NULL, curr->type, curr->hash, curr->sync, mask);
12941295
curr->ttl--;
12951296
if (curr->ttl <= 0)
12961297
{
@@ -2079,6 +2080,7 @@ static bool handle_notfound(struct peer *peer, struct table *table,
20792080
uint256_t hsh = pop(in, uint256_t);
20802081

20812082
struct delay *delays = get_delays(table, hsh);
2083+
delete(table, hsh);
20822084
if (delays == NULL)
20832085
continue;
20842086
struct buf *out = alloc_buf(NULL);

0 commit comments

Comments
 (0)