Slight changes, I forgot

master
Arinerron 2018-09-24 21:16:51 -07:00
parent 6e55636e78
commit d7392213cb
2 changed files with 6 additions and 1 deletions

View File

@ -34,6 +34,7 @@ soft-reset:
reset:
@echo "Hard-resetting Onionr..."
rm -rf onionr/data/ | true > /dev/null 2>&1
cd onionr/static-data/www/ui/; rm -rf ./dist; python compile.py
#@./RUN-LINUX.sh version | grep -v "Failed" --color=always
plugins-reset:

View File

@ -188,7 +188,11 @@ class Block:
return True
except Exception as e:
logger.error('Failed to update block data.', error = e, timestamp = False)
logger.error('Failed to parse block %s.' % self.getHash(), error = e, timestamp = False)
# if block can't be parsed, it's a waste of precious space. Throw it away.
if not self.delete():
logger.error('Failed to delete invalid block %s.' % self.getHash(), error = e)
self.valid = False
return False