geth account new
geth -identity 9873 init \path_to_project_folder\genesis.json -datadir \path_to_your_data_directory\BlockChainVoteService
geth --rpc --rpcport "8008" --rpccorsdomain "*" --datadir \path_to_your_data_directory\BlockChainVoteService --networkid 9877
geth attach ipc:\\.\pipe\geth.ipc
pragma solidity ^0.4.11;
contract voteContract {
string public vote;
// the function with the same name as the class is a constructor
function voteContract(string _vote) {
vote = _vote;
}
function getVote() constant returns (string) {
return vote;
}
}
miner.start();
miner.stop();
eth.accounts