Move sync message file to tmp directory

This commit is contained in:
joeuhren
2020-12-05 18:21:21 -07:00
parent 57ad06bf7f
commit 1ad61a58da
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -400,7 +400,7 @@ if (database == 'peers') {
function check_show_sync_message(blocks_to_sync) {
var retVal = false;
var filePath = './show_sync_message.tmp';
var filePath = './tmp/show_sync_message.tmp';
// Check if there are more than 1000 blocks to index
if (blocks_to_sync > 1000) {
// Check if the show sync stub file already exists
@@ -416,7 +416,7 @@ function check_show_sync_message(blocks_to_sync) {
}
function remove_sync_message() {
var filePath = './show_sync_message.tmp';
var filePath = './tmp/show_sync_message.tmp';
// Check if the show sync stub file exists
if (fs.existsSync(filePath)) {
// File exists, so delete it now