Skip to content

Instantly share code, notes, and snippets.

@morrigan
Created April 25, 2019 08:46
Show Gist options
  • Save morrigan/7d4430dc0ee6fd08e568e2bad9eb523b to your computer and use it in GitHub Desktop.
Save morrigan/7d4430dc0ee6fd08e568e2bad9eb523b to your computer and use it in GitHub Desktop.
Vulnerability monitor example
pragma solidity 0.4.24;
contract DosOneFunc {
address[] listAddresses;
function ifillArray() public returns (bool){
if(listAddresses.length<1500) {
for(uint i=0;i<350;i++) {
listAddresses.push(msg.sender);
}
return true;
} else {
listAddresses = new address[](0);
return false;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment