harmony-one / harmony

The core protocol of harmony
https://harmony.one
GNU Lesser General Public License v3.0
1.47k stars 289 forks source link

Fix Check for Existence of `allowedtxs.txt` File Before Applying Logic #4731

Closed GheisMohammadi closed 2 months ago

GheisMohammadi commented 2 months ago

Issue

This PR resolves the issue where an error occurs if the allowedtxs.txt file is not present in the .hmy directory. Previously, the absence of this file would result in an error:

AllowedTxs setup error: open ./.hmy/allowedtxs.txt: no such file or directory

The fix involves adding a check to verify the existence of the allowedtxs.txt file before proceeding with the setup logic.