Bitcoin Forum
May 01, 2024, 03:58:58 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: how to set a fixed coinbase address  (Read 246 times)
lyhistory (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 3


View Profile
March 12, 2019, 09:45:23 AM
Merited by OgNasty (1)
 #1

bitcoincore version: v0.17.1
OS: ubuntu18.04

what I'm doing is testing with bitcoincore regtest mode, I find everytime it mine a block (bitcoin-cli -regtest generate 1), it will generate a new address to receive 50btc reward,
I'm wondering can I reuse the existing address to receive the reward.
I know it's not good to reuse btc address, but for simplicity in local testing, is there anyway to set a fixed coinbase address?
thanks
1714535938
Hero Member
*
Offline Offline

Posts: 1714535938

View Profile Personal Message (Offline)

Ignore
1714535938
Reply with quote  #2

1714535938
Report to moderator
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714535938
Hero Member
*
Offline Offline

Posts: 1714535938

View Profile Personal Message (Offline)

Ignore
1714535938
Reply with quote  #2

1714535938
Report to moderator
Pmalek
Legendary
*
Offline Offline

Activity: 2744
Merit: 7123



View Profile
March 12, 2019, 11:17:11 AM
 #2

I tried to find the answer you are looking for in the source below but with no luck. Maybe you or another user can find it or know what you need to do to use the same address, if it is possible.
https://bitcoin.org/en/developer-examples#regtest-mode

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
abhiseshakana
Legendary
*
Offline Offline

Activity: 2212
Merit: 2229


From Zero to 2 times Self-Made Legendary


View Profile WWW
March 28, 2019, 02:09:56 PM
Merited by LeGaulois (1)
 #3

bitcoincore version: v0.17.1
OS: ubuntu18.04

what I'm doing is testing with bitcoincore regtest mode, I find everytime it mine a block (bitcoin-cli -regtest generate 1), it will generate a new address to receive 50btc reward,
I'm wondering can I reuse the existing address to receive the reward.
I know it's not good to reuse btc address, but for simplicity in local testing, is there anyway to set a fixed coinbase address?
thanks

You can mine the block to your specified address by using bitcoin-cli -regtest generatetoaddress n "your_address"

n = the total blocks will generate.

.
.Duelbits.
█▀▀▀▀▀











█▄▄▄▄▄
TRY OUR
  NEW  UNIQUE
GAMES!
.
..DICE...
███████████████████████████████
███▀▀                     ▀▀███
███    ▄▄▄▄         ▄▄▄▄    ███
███   ██████       ██████   ███
███   ▀████▀       ▀████▀   ███
███                         ███
███                         ███
███                         ███
███   ▄████▄       ▄████▄   ███
███   ██████       ██████   ███
███    ▀▀▀▀         ▀▀▀▀    ███
███▄▄                     ▄▄███
███████████████████████████████
.
.MINES.
███████████████████████████████
████████████████████████▄▀▄████
██████████████▀▄▄▄▀█████▄▀▄████
████████████▀ █████▄▀████ █████
██████████      █████▄▀▀▄██████
███████▀          ▀████████████
█████▀              ▀██████████
█████                ██████████
████▌                ▐█████████
█████                ██████████
██████▄            ▄███████████
████████▄▄      ▄▄█████████████
███████████████████████████████
.
.PLINKO.
███████████████████████████████
█████████▀▀▀       ▀▀▀█████████
██████▀  ▄▄███ ███      ▀██████
█████  ▄▀▀                █████
████  ▀                    ████
███                         ███
███                         ███
███                         ███
████                       ████
█████                     █████
██████▄                 ▄██████
█████████▄▄▄       ▄▄▄█████████
███████████████████████████████
10,000x
MULTIPLIER
NEARLY UP TO
.50%. REWARDS
▀▀▀▀▀█











▄▄▄▄▄█
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!