Additional require to avoid spamming
This commit is contained in:
parent
848df580f7
commit
b5514ec437
|
@ -84,6 +84,8 @@ contract MessageTribute is Controlled {
|
|||
{
|
||||
Fee memory f = getFee(_from);
|
||||
require(f.amount <= balances[msg.sender]);
|
||||
require(audienceRequested[_from][msg.sender].blockNum == 0);
|
||||
|
||||
AudienceRequested(_from, msg.sender);
|
||||
audienceRequested[_from][msg.sender] = Audience(block.number, f);
|
||||
balances[msg.sender] -= f.amount;
|
||||
|
|
Loading…
Reference in New Issue