Test Ethers needed

Hello All,

I have started a Geth node and would like to get some contracts going - albeit on the test network. I have been mining, but my hashrate is 75K

I will be really helpful if someone can spare some test ethers or point me to a facuet where I can get some.

Regards,
Neo

Comments

  • StephanTualStephanTual London, EnglandMember, Moderator Posts: 1,282 mod
    The current 'testnet' is Olympic - that chain is humongous and present little interest unless you have some interest in core optimisation work at this point in time. Start a private network instead, then mine, and you'll have billions of test ether in no time.
  • meetreksmeetreks Member Posts: 59
    Many thanks Stephan.

    I started the private network like this.

    geth --genesis example_genesis.json console

    But since I was running geth already it failed. I tried changing the port using

    geth --genedid example_genesis.json --port=35555 console but got the following error.
    Fatal: String Error connecting IPC: Access denied.

    Eventually I closed the mainnet and started only the private network.

    I started the mining and stopped after some time. I now have got 1605 ethers, so will work with this until it gets over.

    Any way one can work on both networks at the same time?

    Neo
  • StephanTualStephanTual London, EnglandMember, Moderator Posts: 1,282 mod
    @meetreks good question. Let me check for you.
  • meetreksmeetreks Member Posts: 59
    One more question STephan.

    When I deployed the contract, it mentioned that "waiting to me mined"

    Since I am using a private network, should I start miner.start() and let it run so that it comes around to mine this block?

    Please advise.

    Neo
  • StephanTualStephanTual London, EnglandMember, Moderator Posts: 1,282 mod
    edited August 2015
    @meetreks you need to change datadirs to run parallel instances of private nets - geth places the IPC endpoint into your datadir. And to paraphrase Péter Szilágyi who kindly helped me figuring this out, you could change --ipcpath, but I can't really imagine a use case where you'd want to completely different geth instances mucking around in the same database.
  • StephanTualStephanTual London, EnglandMember, Moderator Posts: 1,282 mod
    @meetreks regarding your second question, of course, if you are the only miner on a private chain, then for anything to take place it will require you to mine at all times
  • meetreksmeetreks Member Posts: 59
    @StephanTual, I tried as suggested using --datadir "some location" and --port=12345 but got message Error String IPC: Access Denied
  • StephanTualStephanTual London, EnglandMember, Moderator Posts: 1,282 mod
    You did make sure you have a different dir and port for each yes? If so please raise as an issue on https://github.com/ethereum/go-ethereum/issues, thank you.
  • meetreksmeetreks Member Posts: 59
    @StephanTual , issue raised as advised. Will await feedback from the team.

    Cheers,
    Neo
  • meetreksmeetreks Member Posts: 59
    @StephanTual , any contract I am deploying returns the message "waiting to be mined". What is the correct way I need to follow so that as soon as I deploy the contract in my private network it gets mined?
  • StephanTualStephanTual London, EnglandMember, Moderator Posts: 1,282 mod
    You need to have a client mining on that chain before it gets through :) CPU mining will do as long your genesis block has a low difficulty baked in.
  • meetreksmeetreks Member Posts: 59
    @StephanTual

    My genesis setting is as follows.

    {
    "nonce": "0x0000000000000042",
    "difficulty": "0x4",
    "alloc": {
    "6a5b342ec71def8aac337b82969d9ddd811023c9": {
    "balance": "5000000000000000000000000"
    }
    },
    "mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "coinbase": "0x0000000000000000000000000000000000000000",
    "timestamp": "0x00",
    "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "extraData": "0x1100000000000000000000000000000000000000000000000000000000000000",
    "gasLimit": "0xffff1388"
    }

    Is this good enough? How long must I mine before I get my contract deployed with a address?
  • meetreksmeetreks Member Posts: 59
    @StephanTual, never mind :)

    After further mining I got my contract to work.

    Ta Muchly.
Sign In or Register to comment.