I have the following contract:
contract Contract{
address minter;
uint gid;
//...
//constructor
function Contract(){
minter=msg.sender;
gid=0;
}
function kill(){
if (msg.sender == minter){
suicide(minter);
}
}
function createAgreement(string name){
//blah, blah
//...
gid++; //what happens here?!
}
What happens if 100 users all call createAgreement(...)
at the same time (i.e. on the same eth.blockNumber
)? Do EVM nodes compete with each other?
I need gid
to be unique for each of these 100 users!
Will gid
be unique? Or do I need to do something different?