version 0.0.0
Blockchain B1(Consensus, Root) {
this.consensus = Consensus.POW;
func Create(Config i, Status s){
log("created...");
return True;
}
func testFunc(Block b){
Nonce answer = b.nonce;
return answer;
}
func OnNewBlock(Block b, Hash h){
log("i wrote a new block: "+b.id+" : "+h);
Int number_result = testFunc(b);
log(number_result);
}
}