Summary of Bug
If we look at this code
|
for _, addr := range jailAllowedAddrs { |
|
_, err := sdk.ValAddressFromBech32(addr) |
|
if err != nil { |
|
log.Fatal(err) |
|
} |
and
we can see the invocation of log.Fatal which will immediately terminate the program having invoked os.Exit, not allowing for any deferred cleanups. Even more, the code all around it uses panic(err)
