Questions tagged [regtest]

When running Bitcoin Core client in regtest mode.

Filter by
Sorted by
Tagged with
1
vote
0answers
65 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 ...
0
votes
1answer
27 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. ...
1
vote
1answer
40 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 ...
3
votes
1answer
255 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?
0
votes
1answer
65 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 ...
0
votes
1answer
92 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 ...
0
votes
1answer
70 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://...
1
vote
1answer
144 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 ...
0
votes
1answer
52 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 ...
5
votes
1answer
300 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?
1
vote
1answer
471 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....
0
votes
1answer
68 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 ...
2
votes
3answers
1k 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 ...
1
vote
1answer
44 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 ...
2
votes
1answer
44 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/...
0
votes
1answer
102 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 ...
0
votes
2answers
76 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 ...
1
vote
0answers
43 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(...
1
vote
1answer
170 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)...
1
vote
1answer
201 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 | \ ...
1
vote
1answer
64 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 ...
3
votes
1answer
414 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 : ...
3
votes
3answers
550 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 ...
1
vote
1answer
66 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?
1
vote
2answers
946 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 ...
0
votes
1answer
53 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 ...
0
votes
0answers
40 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 ...
2
votes
2answers
479 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 ...
0
votes
1answer
47 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 ...
11
votes
2answers
699 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 ...
7
votes
1answer
115 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 ...
2
votes
1answer
155 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 ...
1
vote
0answers
262 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-...
1
vote
0answers
53 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 ...
0
votes
1answer
121 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 ...
4
votes
1answer
217 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?...
1
vote
0answers
140 views

Error mandatory-script-verify-flag-failed (Signature is found in scriptCode)

I found a few questions with the specific error, but couldn't find also the appropriate answer. So, here I am. I am working on regtest in a Python library that create transactions and then use JSON-...
1
vote
1answer
142 views

Create a transaction spendable in a specific block height

I am new in Bitcoin and I try to create an address in Bitcoind and send a transaction that the amount will be spendable in a specific height of the blockchain. Here is what I have done: privateKey = ...
2
votes
1answer
157 views

How do I connect my `bcoin` wallet to `bitcoind`?

I have bitcoind running in regtest mode. I want to connect my bcoin wallet to it and retrieve all UTXOs relevant to the sender's address. How can I do that?
1
vote
1answer
240 views

How to run a private bitcoin network with low difficulty?

I want to test and develop an open source mining pool. I don't have access to an ASIC miner or GPU, so I have to use my CPU to simulate mining and see how the pool really works. The problem is the ...
0
votes
1answer
588 views

regtest: ERROR: ProcessNewBlock: AcceptBlock FAILED: unexpected witness data found (code 16) on v0.14.3

I have two bitcoind regtest processes; v0.16.3 and v0.14.3. I got "unexpected witness data found (code 16)" when v0.14.3 node try to received a block from the peer (v0.16.3) How can I fix it? (I'm ...
0
votes
1answer
232 views

address in listaddressgroupings and getnewaddress

I don't understand the differents between listaddressgroupings and getnewaddress For example, I have a local blockchain ( regtest ) with 0 Block. I create 101 block (generate 101) I can see with ...
1
vote
1answer
522 views

How to perform automated mining in regtest mode?

I'm trying to setup a private network of bitcoin nodes for testing and experimentation. From what i understand, i have two choices while setting up a network: I can run bitcoind -testnet and connect ...
0
votes
1answer
207 views

Is there a way to create 9995000 spendable BTC on regtest?

I'm doing to a large stress test on 1000 node network where each node sends transactions to one another at a specific rate, and I need a way to create the funds for running it, enough so that each ...
0
votes
1answer
72 views

Is there a maximum balance that a single address can hold?

Is there a maximum number of satoshis that a single address can control at a single time? I ask because when I generate regtest blocks to a single address, it's balance gets stuck at 1494999998350 ...
0
votes
1answer
202 views

Private key only wallet for Bitcoin Core regtest

I'm running a private regtest network on GCP. I generated a list of 2000 vanity testnet addresses ordered sequentially from prefixes mooo1 to n2ooo with their respective pub/priv key pairs, and to ...
5
votes
1answer
752 views

bitcoin node: what is the difference between simnet and regtest?

btcd, and presumably other bitcoin node implementations, seem to have 4 network options: mainnet testnet regtest simnet. I get that mainnet and testnet both are "public" in that your node will ...
1
vote
1answer
39 views

Is it okay to run regtest for dev purposes while simultaneously running a node on mainnet (bitcoind)?

Hope it won't mess anything up on my mainnet node.
3
votes
1answer
749 views

addnode in bitcoin.conf doesn't work (Regtest mode)

I'm trying to make to nodes on the same computer communicate. I set up two bitcoin folder with two bitcoin.conf files. bitcoin.conf in the second node is the following: rpcuser=bitcoinrpc ...
1
vote
1answer
319 views

Where does the mining reward in regtest go?

After using the bitcoind -regtest generate 1 command, where does the mining reward go? I tried list accounts and check balance for account "", but the balance always showed 0.000000.