Questions tagged [regtest]

When running Bitcoin Core client in regtest mode.

Filter by
Sorted by
Tagged with
1 vote
1 answer
68 views

Automatic outbound connection using regtest nodes

I run node 1 using this command: bitcoind -port=2222 -datadir=/home/prayank/node1 -conf=/home/prayank/node1/bitcoin.conf -regtest=1 -rpcport=18666 -rpcuser=rpcuser -rpcpassword=rpcpass -bind=127.0.0.1 ...
user avatar
0 votes
1 answer
45 views

bitcoin regtest no wallet RPC methods

I have compiled bitcoin core from the github repo using the regular instructions. It compiled and it runs successfully bitcoind --version Bitcoin Core version v22.99.0-2f7b5c3039c7 However, it seems ...
user avatar
  • 1,530
0 votes
0 answers
61 views

Why the receiver doesn't get any bitcoin on the balance if sendtoaddress or sendrawtransaction is used?

I want to do a transaction, but I see that the receiver doesn't get the amount sent. The regtest node started bitcoind -rpcuser=test -rpcpassword=test -regtest -rpcport=16591 -fallbackfee=0.000045 My ...
user avatar
  • 103
3 votes
1 answer
113 views

Why do you have to mine 432 blocks to activate segwit on regtest?

According to Rusty Russel, you need to mine 432 blocks to activate segwit on regtest. Why this specific blockheight? Sources: https://rusty-lightning.medium.com/segregated-witness-for-developers-...
user avatar
  • 1,359
3 votes
1 answer
92 views

History of Bitcoin's Networks

Bitcoin main net was launched on January 3, 2009 at 19:15:05 UTC. But what is the history of the two other network options in Bitcoin: testnet and regtest? I think testnet is on version 3, what was ...
user avatar
5 votes
1 answer
270 views

Why is "regtest" called "regtest"?

Bitcoin "regtest" is for when you want to run a local version of Bitcoin where the state is only shared within a small community, whereas both "mainnet" and "testnet" are ...
user avatar
0 votes
0 answers
41 views

How to mine continuously in segtest with version bitcoin-0.20?

I am just learning the bitcoin codes for version bitcoin-0.20 and I make it successfully. Additionally, I have only one PC. I want to mine continuously in segtsest, however I only found methods below: ...
user avatar
  • 101
0 votes
0 answers
55 views

BitcoinJ Regtest : Error in addWallet & transaction fetch

I am trying bitcoinj for the first time. I tested a simple java program as follows: step 1: I install a Bitcoin Core and run the following bitcoind.exe -regtest -txindex –reindex bitcoin-cli.exe -...
user avatar
0 votes
1 answer
53 views

Unbroadcast count doesn't change as expected after 15 minutes

Related question: Test that mempool reattempts delivery of locally submitted transaction I tried running hidden RPC mockscheduler, I think it worked that day after relaunching nodes few times and ...
user avatar
0 votes
1 answer
49 views

Test that mempool reattempts delivery of locally submitted transaction

Test: https://github.com/bitcoin/bitcoin/blob/master/test/functional/mempool_unbroadcast.py I am trying this manually with below steps: Run two nodes (regtest): Node1: bitcoind -port=18333 -rpcport=...
user avatar
0 votes
0 answers
36 views

Regtest mode lose blocks?

I'm playing with bitcoind, I'm an started in this subject and I'm playing with the regtest=1 option of course. The thing is that after one day all the transactions are lost, I'm trying to get the ...
user avatar
0 votes
0 answers
38 views

Regtest at height 120k took 600ms to generate a block

Just doing while : do time bitcoin-cli generatetoaddress 1 <non_local_wallet_address> bitcoin-cli getblockcount done brings regtest blockgen times up to 600ms when generating a block at the ...
user avatar
  • 21
0 votes
1 answer
93 views

Running bitcoind regtest with docker containers

I am running bitcoind regtest locally with the method from this article https://medium.com/ssde/how-to-use-docker-to-setup-multiple-bitcoin-test-nodes-on-your-own-mac-phase-i-8c6e5442c189. However, ...
user avatar
0 votes
0 answers
63 views

Making regtest's generatetoaddress work with blocksonly=1

I'm setting up a regtest scenario in which I want to send transactions which should be included in new blocks created via the generatetoaddress RPC call. However, I want to disable transaction ...
user avatar
  • 11
1 vote
0 answers
83 views

Generating zero-amount transactions in regtest mode?

I'm setting up a larger test network of regtest nodes in which all of them should be easily capable of creating blocks and sending transactions. To this end, I'm looking for a simple way for the nodes ...
user avatar
  • 11
0 votes
1 answer
119 views

Cannot remote to regtest node with curl cmd - Empty reply from server

Hi I'm new to rpc curl cmds and having some issues connecting to my regtest node. I'm getting "empty reply from server" which makes me think it is connecting but something is misconfigured. ...
user avatar
2 votes
2 answers
159 views

Setting the fee rate on regtest, or, quickly generating full blocks

I'm setting up some automated testing for a lightning wallet. At the heart of my tests is a bitcoind instance running in regtest mode. I need to be able to set the fee rate - both the fee rate ...
user avatar
  • 121
4 votes
1 answer
667 views

Can you break down what data is encoded into a bech32 address?

Can you break down what data is encoded into a bech32 address? e.g. bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4 How do bech32 addresses on testnet, regtest, signet compare?
user avatar
0 votes
1 answer
141 views

-regtest generate 101 not working

when I type bitcoin-cli -regtest generate 101 in the powershell it gives me this error: PS C:\Program Files\Bitcoin\daemon> ./bitcoin-cli -regtest generate 101 error code: -32601 error message: I ...
user avatar
  • 43
0 votes
1 answer
193 views

Sending regtest Bitcoin fails with an error message. How do I resolve this error? [duplicate]

When I try to send regtest Bitcoin using bitcoin-cli: ./bitcoin-cli -regtest sendtoaddress bc1q09vm5lfy0j5reeulh4x5752q25uqqvz34hufdl 0.1 I get the error message: error code: -6 error message: Fee ...
user avatar
0 votes
1 answer
1k views

Address starting with 2, what mode I am in?

I am using https://github.com/freewil/bitcoin-testnet-box to run bitcoind in docker to test signing of transactions. make start tells me the bitcoind is started without -regtest flag. See https://...
user avatar
  • 179
1 vote
1 answer
280 views

Change difficulty using bitcoin-cli/bitcoind in regtest mode

Is there an RPC command which would allow me to generate blocks under a given difficulty? For instance, I would like to do something like this: bitcoind -daemon -regtest bitcoin-cli -regtest ...
user avatar
0 votes
1 answer
90 views

Calculate block hash is different in regtest?

I'm able to calculate the block hash in mainnet and testnet, but I don't get the right hash in regtest. I mint +3000 blocks and I get the block with height 3000 bitcoin-cli getblock $(bitcoin-cli ...
user avatar
5 votes
1 answer
940 views

How do I get set up on Signet?

I have heard about Signet here and here. How do I get set up on Signet?
user avatar
1 vote
1 answer
829 views

How to use Electrum with a local regtest network?

The problem I have a regtest network running in 127.0.0.1:18443. I can access to regtest with user:123. I would like to use Electrum (v4.0.2) with my local regtest but I cannot realize how to do that....
user avatar
  • 113
0 votes
1 answer
78 views

What can I expirement with BitcoinCore on my own?

I have a simple faculty assignment where I have to do some experiments with transactions or experiment with the Bitcoin protocol or maybe with wallet code. Work on that assignment shouldn't last more ...
user avatar
  • 449
2 votes
3 answers
2k views

When using bitcoin-cli I get an error regarding fallback fees when trying to send regtest Bitcoin. How do I resolve this?

I have been doing an assignment on Bitcoin Core 0.20. Now every time I try to do a transaction: Apples-iMac:bitcoin apple$ bitcoin-cli -regtest sendtoaddress ...
user avatar
  • 21
1 vote
1 answer
97 views

Run lightning-charge on c-lightning regtest

I'm trying to run lighting-charge (https://github.com/ElementsProject/lightning-charge) on top of one of my 2 lightning (https://github.com/ElementsProject/lightning) instances. I am running 2 nodes ...
user avatar
  • 113
2 votes
1 answer
59 views

Unable to replicate block header validation errors: time-too-old and time-too-new

we are playing with the regtest and we don't able to replicate the two blocks validation error managed here https://github.com/bitcoin/bitcoin/blob/5b24f6084ede92d0f493ff416b4726245140b2c1/src/...
user avatar
0 votes
1 answer
206 views

RegTest with mainnet addresses

I am trying to run a private Bitcoin network for testing. I tried to run a RegTest network, but I need the addresses to be in the format of the ainnet. Can I configure the RegTest to run with Mainnet ...
user avatar
0 votes
2 answers
177 views

Regtest createmultisig Error: Invalid public Key?

As shown below, I generated 3 new addresses (Legacy I believe) in RegTest. I then try to create a multsig address from exactly these 3 addresses. What am I doing wrong, or is this unavailable in ...
user avatar
1 vote
0 answers
56 views

Not receiving Compact Block even after 'sendcompact' message

I have setup a regtest net locally with 2 nodes. One of nodes generates blocks using 'bitcoin-cli generatetoaddress 10 ', sendcompact message was sent from other node yet it gets normal block(...
user avatar
  • 11
1 vote
1 answer
261 views

scriptsig-not-pushonly (code 64) during send transaction in regtest

I create a transaction in regtest without send it, I have transaction data signed. I modified a little bit the scriptSig in order to replicate transaction malleability, I add two operations (2 OP_DROP)...
user avatar
1 vote
1 answer
304 views

Why keys generated in Bitcoin Core mismatch that from online generators despite using the same seed?

I have the following problem in Bitcoin Core. With this command: echo carpet begin bacon master draft fortune food cherry cage axis vault clown | \ bx mnemonic-to-seed | \ bx hd-new -v 70615956 | \ ...
user avatar
  • 123
1 vote
1 answer
95 views

Get Seed from wallet on regtest mode

I am doing some tests for an application that signs Bitcoin transactions. I already downloaded the binary files bitcoin-cli,bitcoind and bitcoin-wallet from bitcoin.org. I need to know that the seed ...
user avatar
  • 123
4 votes
1 answer
824 views

bech32 addresses beginning with "bcrt..." on regtest

I'm playing around with regtest and wanted to generate a bech32 address. My Bitcoin Core version is 0.18.0. I ran getnewaddress "" bech32 and got an address that began with bcrt, like this one : ...
user avatar
  • 447
3 votes
3 answers
1k views

Cannot call rpc api from other machine in same local network

cannot call rpc api from other machine in same local network There is a regtest node in my local network , I can call rpc api only from the node's machine,not my local machine. I know rpcallowip is ...
user avatar
1 vote
1 answer
69 views

2-of-3 multisignature account with limitations on withdrawal

I want to create a 2 of 3 multi-signature account from where one can withdraw money only after a certain period of time. How can this be done?
user avatar
  • 41
1 vote
2 answers
1k views

Bitcoin-cli -regtest getaccount, listaccounts, setaccount, method not found

I just setup bitcoind (0.18.1) and put it in regtest mode, I am trying to work with accounts, but the account commands are not found... setaccount jlroberts@mixerregtest:~$ bitcoin-cli -regtest ...
user avatar
0 votes
1 answer
58 views

Source and (mis)handling of the private key for a basic tx

I'm looking to get "hands on" with signing, however when I adapt Runeks' thorough answer at https://bitcoin.stackexchange.com/a/5241/89798 my code invariably fails reporting that I've used the wrong ...
user avatar
0 votes
0 answers
49 views

Bitcoin multisignature addresses

Suppose we have a multisignature address "abc" with 100 coins in bitcoin regtest network, I want to that 100 coins in 10 slots that is i want spend 10 coins at a particular interval. I tried the ...
user avatar
  • 41
2 votes
2 answers
694 views

Error: non-mandatory-script-verify-flag (unknown error) (code 64) with OP_CHECKSEQUENCEVERIFY (OP_CSV)

I am trying to implement a relative time lock on a regtest network using OP_CSV and keep getting this error when I try to consume the locked BTC. I am creating a UTXO with the scriptPubKey as 10 ...
user avatar
0 votes
1 answer
65 views

Loading seed coins in test mode

I'm setting up a regtest node on my Windows machine using bitcoin-qt. Here's my config: regtest=1 txindex=1 server=1 [test] rpcport=8332 rpcuser=ulu rpcpassword=*** Next, I would like to run a ...
user avatar
  • 170
13 votes
2 answers
1k views

What are the key differences between regtest and the proposed signet?

What are the key differences between regtest and the proposed signet? One of the key differences is that using regtest is not ideal for public networks as anyone anywhere can just rewrite the ...
user avatar
7 votes
1 answer
154 views

How can I force estimatesmartfee to return estimates on regtest?

Creating an app that utilizes estimatesmartfee, and it works in production, but I use regtest for automated testing and can't get it to return a value. Looking at bitcoind tests it is splitting UTXOs ...
user avatar
2 votes
1 answer
243 views

How can I fund my node in regtest?

I am fairly new to bitcoin and was attempting to setup a local test network in my machine. I am using the regtest network to create the local network. Is there a way in which I can initialize the ...
user avatar
1 vote
0 answers
533 views

bitcoin-cli is not using port specified in config

I have setup a bitcoin node in regtest mode with custom config and datadir. I start bittcoind with command: bitcoind -conf=bitcoin-demo.conf -regtest -datadir="testdatabtc" -daemon My bitcoin-...
user avatar
1 vote
0 answers
55 views

how do I mark coins spent in invalid blocks as unspent?

I was just testing bitcoin (v17) in regtest mode with the local, built-in wallet. If I send money to an address (I don't own), generate 1, and then invalidate that block, the local wallet does not ...
user avatar
  • 179
0 votes
1 answer
191 views

Implement HTLC manually by writing scripts

Is there any way to implement HTLC manually for locking funds in the channels in lightning network for a period of time (by setting intervals) and releasing the funds after the time lock expired using ...
user avatar
4 votes
1 answer
298 views

Can I test Lightning on Bitcoin regtest?

I want to do some Lightning experiments, but want to avoid the burden of synchronizing the blockchain (even testnet). Can I experiment with Lightning using regtest? Is there a manual for setting it up?...
user avatar