Bitcoin Forum
September 12, 2024, 09:16:03 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: Cant generate regtest coins on: October 31, 2021, 03:33:48 PM
Thank you i will do that, i built it from source on linux but still kind of new to programming it.
2  Bitcoin / Bitcoin Technical Support / Re: Cant generate regtest coins on: October 31, 2021, 03:05:15 PM
Oh wow I had no idea it was like that, I assumed it acted the way mainnet does. So I just delete the directory and it will start from block 0 again? Definitely too many blocks lol

bitcoin-cli -regtest getblockchaininfo
{
  "chain": "regtest",
  "blocks": 17930,
  "headers": 17930,
  "bestblockhash": "4de81b08c13b92fb7c2be25d31de2602ec478d923270f6a77d3a7348afac7f07",
  "difficulty": 4.656542373906925e-10,
  "time": 1635627965,
  "mediantime": 1635627964,
  "verificationprogress": 1,
  "initialblockdownload": false,
  "chainwork": "0000000000000000000000000000000000000000000000000000000000008c16",
  "size_on_disk": 5379150,
  "pruned": false,
  "softforks": {
    "bip34": {
      "type": "buried",
      "active": true,
      "height": 1
    },
    "bip66": {
      "type": "buried",
      "active": true,
      "height": 1
    },
    "bip65": {
      "type": "buried",
      "active": true,
      "height": 1
    },
    "csv": {
      "type": "buried",
      "active": true,
      "height": 1
    },
    "segwit": {
      "type": "buried",
      "active": true,
      "height": 1
    },
    "testdummy": {
      "type": "bip9",
      "bip9": {
        "status": "active",
        "start_time": 0,
        "timeout": 9223372036854775807,
        "since": 432,
        "min_activation_height": 0
      },
      "height": 432,
      "active": true
    },
    "taproot": {
      "type": "bip9",
      "bip9": {
        "status": "active",
        "start_time": -1,
        "timeout": 9223372036854775807,
        "since": 0,
        "min_activation_height": 0
      },
      "height": 0,
      "active": true
    }
  },
  "warnings": "This is a pre-release test build - use at your own risk - do not use for mining or merchant applications"
}

3  Bitcoin / Bitcoin Technical Support / Cant generate regtest coins on: October 30, 2021, 09:26:55 PM
> bitcoind -regtest -daemon
Bitcoin server starting

Start bitcoind in regtest mode to create a private block chain.

## Bitcoin Core 0.10.1 and earlier
bitcoin-cli -regtest setgenerate true 101

## Bitcoin Core 17.1 and earlier
bitcoin-cli -regtest generate 101

## Bitcoin Core 18.0 and later
bitcoin-cli -regtest generatetoaddress 101 $(bitcoin-cli -regtest getnewaddress)



I have 4 wallets that i created in regtest. I load one of them and generate blocks like the developer guide says to but my balance stays 0. I have tried restarting the daemon creating new wallets adding rpcwallet flags etc

as well when i use the command below all utxo's (i think what theyre called lol) have amiunt 0
bitcoin-cli -regtest listunspent
{
    "txid": "73b2dc290280fbddc2015298229430638ddd9b54863969f2cc54a6b4b1fbeffd",
    "vout": 0,
    "address": "bcrt1qujyfn08jlpwcqe0hsmcs327hh73gn7082p24kj",
    "label": "",
    "scriptPubKey": "0014e48899bcf2f85d8065f786f108abd7bfa289f9e7",
    "amount": 0.00000000,
    "confirmations": 6920,
    "spendable": true,
    "solvable": true,
    "desc": "wpkh([fa09decd/0'/0'/6']02c261e771faebb13a82863d965b4478ca04bddac42c8d254500e610b87a9a7a3a)#f4cmxk3u",
    "safe": true
  }


Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!