Skip to content

Commit c8601fb

Browse files
committed
fee_estimates: clean up usage
1 parent 3b1c7cd commit c8601fb

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

contrib/nginx-sync.conf.in

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,10 @@ location = /{NGINX_PATH}_sync/mempool {
99
}
1010
}
1111

12-
# Dump the current mempool and return it
13-
location = /{NGINX_PATH}_sync/fee_estimates {
14-
auth_basic "private";
15-
auth_basic_user_file /srv/explorer/htpasswd;
16-
17-
content_by_lua_block {
18-
os.execute("/usr/bin/cli savefeeestimates");
19-
ngx.exec("/{NGINX_PATH}_sync/fee_estimates.dat");
20-
}
21-
}
22-
2312
# Return mempool.dat without dumping it first, used as an internal redirect
2413
# from the location block above
2514
location = /{NGINX_PATH}_sync/mempool.dat {
2615
auth_basic "private";
2716
auth_basic_user_file /srv/explorer/htpasswd;
2817
alias {DAEMON_DIR}/mempool.dat;
29-
}
30-
31-
# Return fee_estimates.dat without dumping it first, used as an internal redirect
32-
# from the location block above
33-
location = /{NGINX_PATH}_sync/fee_estimates.dat {
34-
auth_basic "private";
35-
auth_basic_user_file /srv/explorer/htpasswd;
36-
alias {DAEMON_DIR}/fee_estimates.dat;
37-
}
18+
}

run.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,7 @@ if [ -n "$SYNC_SOURCE" ]; then
298298
sleep 2 # without this, the download below would occasionally start while the terminating bitcoind is still flushing its mempool.dat
299299
# then fetch a recent mempool.dat,
300300
curl -v -u sync:$SYNC_SECRET -o $DAEMON_DIR/mempool.dat $SYNC_SOURCE/mempool || true
301-
curl -v -u sync:$SYNC_SECRET -o $DAEMON_DIR/fee_estimates.dat $SYNC_SOURCE/fee_estimates || true
302-
ls -l $DAEMON_DIR/{mempool,fee_estimates}.dat || true
301+
ls -l $DAEMON_DIR/{mempool}.dat || true
303302
# and let the runit services take over
304303
fi
305304

0 commit comments

Comments
 (0)