summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/fastd.c b/src/fastd.c
index 2649ef2..b6dabf1 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -476,14 +476,6 @@ static void handle_handshake_queue(void) {
fastd_resolve_peer(peer, peer->next_remote);
}
-static void enable_temporaries(void) {
- size_t i;
- for (i = 0; i < VECTOR_LEN(ctx.peers_temp); i++)
- fastd_peer_enable_temporary(VECTOR_INDEX(ctx.peers_temp, i));
-
- VECTOR_RESIZE(ctx.peers_temp, 0);
-}
-
static bool maintain_peer(fastd_peer_t *peer) {
if (fastd_peer_is_temporary(peer) || fastd_peer_is_established(peer)) {
/* check for peer timeout */
@@ -854,7 +846,6 @@ int main(int argc, char *argv[]) {
VECTOR_ALLOC(ctx.eth_addrs, 0);
VECTOR_ALLOC(ctx.peers, 0);
- VECTOR_ALLOC(ctx.peers_temp, 0);
fastd_peer_hashtable_init();
@@ -865,8 +856,6 @@ int main(int argc, char *argv[]) {
fastd_poll_handle();
- enable_temporaries();
-
if (fastd_timed_out(&ctx.next_maintenance))
maintenance();
@@ -907,7 +896,6 @@ int main(int argc, char *argv[]) {
fastd_peer_hashtable_free();
- VECTOR_FREE(ctx.peers_temp);
VECTOR_FREE(ctx.peers);
VECTOR_FREE(ctx.eth_addrs);