Additional require to avoid spamming

This commit is contained in:
Richard Ramos 2018-03-16 15:28:35 -04:00
parent 848df580f7
commit b5514ec437
1 changed files with 2 additions and 0 deletions

View File

@ -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;