Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion database/json_file_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (s *JSONFileStorage) write(relayerID common.Hash, v interface{}) error {
}

// Write marshaled data to the temp file.
// If the write fails, the original file is not affected.
// If the write fails, the original file is not affected.
// Set file permissions to 0644 so only the owner can read and write.
// Everyone else can only read. No one can execute the file.
if err := os.WriteFile(tmpPath, b, 0644); err != nil {
Expand Down
8 changes: 4 additions & 4 deletions tests/allowed_addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ const numKeys = 4
// Tests allowed source and destination address functionality.
// First, relays messages using distinct relayer instances that all write to the same database.
// The instances are configured to:
// - Deliver from any source address to any destination address
// - Deliver from a specific source address to any destination address
// - Deliver from any source address to a specific destination address
// - Deliver from a specific source address to a specific destination address
// - Deliver from any source address to any destination address
// - Deliver from a specific source address to any destination address
// - Deliver from any source address to a specific destination address
// - Deliver from a specific source address to a specific destination address
// Then, checks that each relayer instance is able to properly catch up on missed messages that
// match its particular configuration.
func AllowedAddresses(network *network.LocalNetwork, teleporter utils.TeleporterTestInfo) {
Expand Down