Pages:
Author

Topic: [Testnet] Is this normal? (Read 289 times)

legendary
Activity: 1512
Merit: 7340
Farewell, Leo
April 21, 2020, 04:27:28 PM
#29
Your questions all over the forum are quite random... from mining, full nodes to private keys, all.
You're gonna love "Mastering Bitcoin" book if you still haven't read it.

Here are some resources that you should consider reading:

I found this youtube channel and it seems really helpful:
https://www.youtube.com/channel/UCj9MFr-7a02d_qe4xVnZ1sA
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
April 21, 2020, 06:47:39 AM
#28
How exactly are these hashes calculated? Do they have to do with the current timestamp?

No, a transaction hash has nothing to do with the current time and it doesn't require you to have a synchronized client. Take transaction data, calculate its SHA256 hash and do it once again for the calculated hash. You can find answers to some of your questions on the Internet. Do some research; you will learn more.

Your questions all over the forum are quite random... from mining, full nodes to private keys, all.
You're gonna love "Mastering Bitcoin" book if you still haven't read it.

Here are some resources that you should consider reading:

Thank you both for your interest. Yes time to read a book  Wink
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
April 20, 2020, 11:42:14 PM
#27
Your questions all over the forum are quite random... from mining, full nodes to private keys, all.
You're gonna love "Mastering Bitcoin" book if you still haven't read it.

Here are some resources that you should consider reading:
legendary
Activity: 1876
Merit: 3132
April 20, 2020, 06:14:00 PM
#26
How exactly are these hashes calculated? Do they have to do with the current timestamp?

No, a transaction hash has nothing to do with the current time and it doesn't require you to have a synchronized client. Take transaction data, calculate its SHA256 hash and do it once again for the calculated hash. You can find answers to some of your questions on the Internet. Do some research; you will learn more.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
April 20, 2020, 05:51:05 PM
#25
Thank you for your answers and your time.

I have noticed that when I do the command thing that produces me my fake bitcoins it prints me the transactions' hashes. How exactly are these hashes calculated? Do they have to do with the current timestamp?
legendary
Activity: 1876
Merit: 3132
April 20, 2020, 05:33:24 PM
#24
Why did they disable it? Was it affecting the network somehow?

No, it was completely useless. You wouldn't even earn a cent using your CPU on the mainnet nowadays.

I had read that in order for a transaction to be counted on all blockchains in the world, it is required to exist at least 6 confirmations.

For small payments, even 1 confirmation is enough. Confirmed blocks are propagated quite fast (orphaned blocks are still a thing, though). The amount of confirmations ensures that coins won't be double-spent. Some wallets and services consider 3 confirmations as safe enough.

But if I am alone on my local network, how will I confirm my transactions?

You confirm transactions by including them in blocks and mining them. The first confirmation is when a transaction is included in a block. Each new mined block adds another confirmation.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
April 20, 2020, 04:52:08 PM
#23
Another question, in the testnet are things a bit more real? I mean I can't do just "generatetoaddress 10000 ". Do I need to mine like in real bitcoin?

You don't need to mine real coins. You wouldn't be able to earn much anyway. Both testnet and mainnet are full of ASICs which are far superior to CPUs in terms of mining. If you need to use testnet for some reason then get coins from faucets. You can no longer mine with your CPU using Bitcoin Core since version 0.13.0.

Why did they disable it? Was it affecting the network somehow?

Oh and I have another question ( Cheesy )
I had read that in order for a transaction to be counted on all blockchains in the world, it is required to exist at least 6 confirmations.
But if I am alone on my local network, how will I confirm my transactions?
legendary
Activity: 1876
Merit: 3132
April 20, 2020, 04:43:20 PM
#22
Another question, in the testnet are things a bit more real? I mean I can't do just "generatetoaddress 10000 ". Do I need to mine like in real bitcoin?

You don't need to mine real coins. You wouldn't be able to earn much anyway. Both testnet and mainnet are full of ASICs which are far superior to CPUs in terms of mining. If you need to use testnet for some reason then get coins from faucets. You can no longer mine with your CPU using Bitcoin Core since version 0.13.0.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
April 20, 2020, 04:24:11 PM
#21
And of course on commands like "getblockcount" it returned "0". But how will I mine the genesis block? Can you help me here?

You can use generatetoaddress to generate new blocks. If you type it in the console, you will see a detailed explanation on the parameters and instructions on generating a new address. I don't think if there is any point in me explaining it. Keep in mind that coins are spendable 100 blocks after they have been mined.

I do earn bitcoins   Shocked Grin

Another question, in the testnet are things a bit more real? I mean I can't do just "generatetoaddress 10000 ". Do I need to mine like in real bitcoin?
legendary
Activity: 1876
Merit: 3132
April 20, 2020, 04:09:14 PM
#20
And of course on commands like "getblockcount" it returned "0". But how will I mine the genesis block? Can you help me here?

You can use generatetoaddress to generate new blocks. If you type it in the console, you will see a detailed explanation on the parameters and instructions on generating a new address. I don't think if there is any point in me explaining it. Keep in mind that coins are spendable 100 blocks after they have been mined.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
April 20, 2020, 03:57:59 PM
#19
Why is says I'm years behind?

Take a closer look. There are no more blocks left to download and there are no peers to connect to since you are the only node in your local setup. You can now open the console and enter regtest specific commands

So I can start administrate my own network. I read that: https://medium.com/@peterjd42/basic-commands-to-interact-with-the-bitcoin-core-rpc-console-180da2c2dc45

And of course on commands like "getblockcount" it returned "0". But how will I mine the genesis block? Can you help me here?
legendary
Activity: 1876
Merit: 3132
April 20, 2020, 03:52:05 PM
#18
Why is says I'm years behind?

Take a closer look. There are no more blocks left to download and there are no peers to connect to since you are the only node in your local setup. You can now open the console and enter regtest specific commands.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
April 20, 2020, 03:41:22 PM
#17
I did what you told me but where is the "mainnet" you said? I can't find it in the file. (Only testnet = 0 and regtest = 1)

You need to remove '#' which is in front of both testnet and regtest - https://pastebin.com/raw/q9eY936e . Replace your config with this and it should work now.

Thanks! It successfully loaded me regnet. Question!

Why is says I'm years behind?
https://i.imgur.com/GbI47NV.png
legendary
Activity: 1876
Merit: 3132
April 20, 2020, 01:58:37 PM
#16
I did what you told me but where is the "mainnet" you said? I can't find it in the file. (Only testnet = 0 and regtest = 1)

You need to remove '#' which is in front of both testnet and regtest - https://pastebin.com/raw/q9eY936e . Replace your config with this and it should work now.
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
April 20, 2020, 01:54:20 PM
#15
What parameters? When I open bitcoind.exe I can't write anything, it starts doing that "mining" thing.

Let's do it the other way. Shut down Bitcoin Core, press WIN + R and enter %appdata%. You should see Bitcoin folder inside which there should be bitcoin.conf file. If you don't have one, create it. Inside that file enter regtest=1 and make sure that both testnet and mainnet are set to 0. Now, launch Bitcoin Core and you should be in the regtest mode. You can use commands in the console (Window -> Console).

That's my bitcoin.conf:
https://pastebin.com/raw/FAFxSX6b

I did what you told me but where is the "mainnet" you said? I can't find it in the file. (Only testnet = 0 and regtest = 1)

This is what it prints me and I then run bitcoin core:
https://i.imgur.com/RDCv2Qa.png
legendary
Activity: 1876
Merit: 3132
April 20, 2020, 01:44:54 PM
#14
What parameters? When I open bitcoind.exe I can't write anything, it starts doing that "mining" thing.

Let's do it the other way. Shut down Bitcoin Core, press WIN + R and enter %appdata%. You should see Bitcoin folder inside which there should be bitcoin.conf file. If you don't have one, create it. Inside that file enter regtest=1 and make sure that both testnet and mainnet are set to 0. Now, launch Bitcoin Core and you should be in the regtest mode. You can use commands in the console (Window -> Console).
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
April 20, 2020, 01:29:49 PM
#13
What parameters? When I open bitcoind.exe I can't write anything, it starts doing that "mining" thing.
legendary
Activity: 1876
Merit: 3132
April 20, 2020, 01:25:05 PM
#12
Does it mine or anything?
https://youtu.be/AlQCCXnRQ5Q

It seems to be still synchronizing with the testnet. What are your startup parameters for bitcoind? Did you add '-regtest' there?
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
April 20, 2020, 01:19:23 PM
#11
I wonder, are there places to "buy" testbitcoins? Or is it too easy to mine them?

Testnet coins shouldn't have any value and shouldn't be sold. There are plenty of faucets which send under 0.1 tBTC at a time. You can google them.

About my issue, I just want to test how bitcoin core works for developing reasons. Should I choose regnet?

Sure, it should suit your needs.

I have opened bitcoind.exe, because I'm trying to use the regtest mode

For how long will it do me this?
Does it mine or anything?
https://youtu.be/AlQCCXnRQ5Q

legendary
Activity: 2114
Merit: 1293
There is trouble abrewing
April 20, 2020, 01:07:13 PM
#10
I wonder, are there places to "buy" testbitcoins?
if there were any place where you could trade the worthless by-design testnet coins then the testnet network wouldn't have existed anymore. we would reset it and start Testnet 4 in its place.
there are testnet faucets that give away small amounts for free. google bitcoin testnet faucet and you'll find 3 to 5 working ones on first page.
https://bitcoinfaucet.uo1.net/
https://coinfaucet.eu/en/btc-testnet/
https://testnet-faucet.mempool.co/
https://tpfaucet.appspot.com/

Quote
Or is it too easy to mine them?
it is moderately easy to mine them because of the low difficulty but it is hard because there is competition with ASICs! and also the reward is very small since the block height is so high (there has been more halvings on testnet compared to mainnet)

Quote
About my issue, I just want to test how bitcoin core works for developing reasons. Should I choose regnet?
it depends on what you are doing. most tests can be done with testnet and with the small amount these faucets give you.
Pages:
Jump to: