File tree Expand file tree Collapse file tree 2 files changed +2
-22
lines changed Expand file tree Collapse file tree 2 files changed +2
-22
lines changed Original file line number Diff line number Diff 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
2514location = /{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+ }
Original file line number Diff line number Diff 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
304303fi
305304
You can’t perform that action at this time.
0 commit comments