Bitcoin Forum
November 15, 2024, 03:51:58 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Testnet mining via wallet  (Read 1039 times)
ArpFlush (OP)
Hero Member
*****
Offline Offline

Activity: 623
Merit: 501


View Profile
February 01, 2016, 01:49:54 PM
 #1

Hi all,

As a test, I would like to mine coins on Testnet via the QT wallet. However, I can't seem to find the correct command to start mining via the console. Anyone has an idea?

I also update my conf file like:
testnet=1
GEN=1
rpcuser=test
rpcpassword=password
rpcport=30200

Many thanks!

"Panic Selling is not an Investment Strategy"
Shibashi Dogemoto
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1000


View Profile
February 01, 2016, 01:51:07 PM
 #2

Hi all,

As a test, I would like to mine coins on Testnet via the QT wallet. However, I can't seem to find the correct command to start mining via the console. Anyone has an idea?

I also update my conf file like:
testnet=1
GEN=1
rpcuser=test
rpcpassword=password
rpcport=30200

Many thanks!


I might be mistaking, but wasn't mining from the QT wallet removed a long time ago?
ArpFlush (OP)
Hero Member
*****
Offline Offline

Activity: 623
Merit: 501


View Profile
February 01, 2016, 02:05:16 PM
 #3

Hm, I read something like that too but I thought in Testnet it might still work. Apparently not then  Cry

Is it possible via cgminer then?

"Panic Selling is not an Investment Strategy"
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1086


Ian Knowles - CIYAM Lead Developer


View Profile WWW
February 01, 2016, 02:07:30 PM
 #4

What you are probably wanting to do is use "-regtest" (rather than "-testnet").

To "mine" enough blocks to be able to send up to 50 TBTC when using "-regtest" is as simple as this RPC:

Code:
> ./bitcoin-cli -rpc_password=xxx generate 101

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
Shibashi Dogemoto
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1000


View Profile
February 01, 2016, 02:09:22 PM
 #5

Hm, I read something like that too but I thought in Testnet it might still work. Apparently not then  Cry

Is it possible via cgminer then?

AFAIK, cgminer should work (altough i'm not sure, i've never tried it myself... i only mine with a geccoscience stick on slush's pool).
Do note tough: the testnet Difficulty is pretty high to: https://coinplorer.com/Charts/Difficulty/BTCT
It's not completely sure that you'll be able to mine a single block with cpu/gpu mining, not even on the testnet!
ArpFlush (OP)
Hero Member
*****
Offline Offline

Activity: 623
Merit: 501


View Profile
February 01, 2016, 02:11:29 PM
 #6

Hm, I read something like that too but I thought in Testnet it might still work. Apparently not then  Cry

Is it possible via cgminer then?

AFAIK, cgminer should work (altough i'm not sure, i've never tried it myself... i only mine with a geccoscience stick on slush's pool).
Do note tough: the testnet Difficulty is pretty high to: https://coinplorer.com/Charts/Difficulty/BTCT
It's not completely sure that you'll be able to mine a single block with cpu/gpu mining, not even on the testnet!

I know but it's just for hands on in a class environment. Wink

"Panic Selling is not an Investment Strategy"
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1086


Ian Knowles - CIYAM Lead Developer


View Profile WWW
February 01, 2016, 02:13:16 PM
 #7

I know but it's just for hands on in a class environment. Wink

Well - I guess it depends if you want to involve the use of a console (if so then "-regtest" will work and you can always effectively hide the console bits by using scripts).


With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
ArpFlush (OP)
Hero Member
*****
Offline Offline

Activity: 623
Merit: 501


View Profile
February 01, 2016, 02:28:16 PM
 #8

I know but it's just for hands on in a class environment. Wink

Well - I guess it depends if you want to involve the use of a console (if so then "-regtest" will work and you can always effectively hide the console bits by using scripts).

Thanks! I tried it in Windows with command "setgenerate true" and immediately got 50TBTC Smiley
Hope it will work on the Linux conf as well with bitcoin-cli -regtest generate 101

"Panic Selling is not an Investment Strategy"
ArpFlush (OP)
Hero Member
*****
Offline Offline

Activity: 623
Merit: 501


View Profile
February 01, 2016, 02:39:33 PM
 #9

Oh I forgot to ask: When in RegTest mode, can participants in the network send BTC to each other?

"Panic Selling is not an Investment Strategy"
Shibashi Dogemoto
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1000


View Profile
February 01, 2016, 02:41:13 PM
 #10

Oh I forgot to ask: When in RegTest mode, can participants in the network send BTC to each other?

Regtest is not equal to testnet Wink
Regtest: https://bitcoin.org/en/glossary/regression-test-mode
Testnet: https://bitcoin.org/en/glossary/testnet

So basically, you shouldn't be able to send them.... I could be wrong tough (never actually tried it)
CIYAM
Legendary
*
Offline Offline

Activity: 1890
Merit: 1086


Ian Knowles - CIYAM Lead Developer


View Profile WWW
February 01, 2016, 02:44:13 PM
 #11

Oh I forgot to ask: When in RegTest mode, can participants in the network send BTC to each other?

Unfortunately I don't think it can do that (it is not intended for sharing). The best you can do to emulate that would be to use different wallets (and restart bitcoind each time with a different one).

Also "testnet" has become a pretty much useless thing (always having re-orgs and not processing txs as you'd expect) so I would not recommend its usage at all.

With CIYAM anyone can create 100% generated C++ web applications in literally minutes.

GPG Public Key | 1ciyam3htJit1feGa26p2wQ4aw6KFTejU
ArpFlush (OP)
Hero Member
*****
Offline Offline

Activity: 623
Merit: 501


View Profile
February 01, 2016, 03:10:02 PM
 #12

Oh I forgot to ask: When in RegTest mode, can participants in the network send BTC to each other?

Unfortunately I don't think it can do that (it is not intended for sharing). The best you can do to emulate that would be to use different wallets (and restart bitcoind each time with a different one).

Also "testnet" has become a pretty much useless thing (always having re-orgs and not processing txs as you'd expect) so I would not recommend its usage at all.
Crap Sad That would be too easy for my hands on  Undecided

Thanks for the replies!

"Panic Selling is not an Investment Strategy"
ArpFlush (OP)
Hero Member
*****
Offline Offline

Activity: 623
Merit: 501


View Profile
February 01, 2016, 03:10:29 PM
 #13

Oh I forgot to ask: When in RegTest mode, can participants in the network send BTC to each other?

Regtest is not equal to testnet Wink
Regtest: https://bitcoin.org/en/glossary/regression-test-mode
Testnet: https://bitcoin.org/en/glossary/testnet

So basically, you shouldn't be able to send them.... I could be wrong tough (never actually tried it)
OK, thanks man, wil check this regression test out.

"Panic Selling is not an Investment Strategy"
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
February 01, 2016, 05:21:32 PM
 #14

Oh I forgot to ask: When in RegTest mode, can participants in the network send BTC to each other?

Regtest is not equal to testnet Wink
Regtest: https://bitcoin.org/en/glossary/regression-test-mode
Testnet: https://bitcoin.org/en/glossary/testnet

So basically, you shouldn't be able to send them.... I could be wrong tough (never actually tried it)
OK, thanks man, wil check this regression test out.

How much testnet coins do you need?

Im not really here, its just your imagination.
ArpFlush (OP)
Hero Member
*****
Offline Offline

Activity: 623
Merit: 501


View Profile
February 02, 2016, 08:03:18 AM
 #15

How much testnet coins do you need?
I already have 20+ testnet coins. Think I have enough for my hands on.
Now I'm looking for a practical solution to distribute each other Testnet addresses in a class environment so everyone can just copy/paste an address in order to send some coins.

"Panic Selling is not an Investment Strategy"
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!