-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(relay): check account balance is greater than a configured amount (
#194) * feat(relay): check account balance is greater than a configurable amount, rather than just >0 Right now, we relay messages for accouts with any balance. This fails to sybil-protect the relay system as an attacker could send 1 wei to hundreds of accounts. This commit adds a field to the relay server configuration specifying the minimum balance an account must have to get its messages relayed. * refactor(relay): edit minAccountBalance help message for consistency * feat(relay): make minAccountBalance an uint64 instead of an int64 Co-authored-by: authcall <authcall@proton.me>
- Loading branch information
1 parent
f230887
commit 1cbbd5b
Showing
3 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters