Questions tagged [regtest]

When running Bitcoin Core client in regtest mode.

Filter by
Sorted by
Tagged with
0
votes
1answer
27 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
35 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
43 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
35 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
123 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
161 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....
-1
votes
1answer
53 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
2answers
158 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
29 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
27 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
62 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
32 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
35 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
93 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
137 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 | \ ...
0
votes
0answers
21 views

Testing libbitcoin-client on bitcoind regtest connection failed

Can I test libbitcoin-client against bitcoin core regtest mode. My connection Fails with no error response. Running curl commands on bitcoind server works fine but running the same commands against ...
1
vote
1answer
44 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
209 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 : ...
2
votes
2answers
312 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
49 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
606 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
47 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
38 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
332 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
35 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 ...
10
votes
2answers
390 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 ...
6
votes
1answer
87 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
91 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
107 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
45 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
97 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
165 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
105 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
123 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
122 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
178 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
399 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
196 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
413 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
181 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
65 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
170 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 ...
4
votes
1answer
548 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
37 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
502 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
288 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.
0
votes
2answers
445 views

Confirm transaction in regtest mode

I'm testing some wallet features on regtest. Here's the sequence so far: cash-cli -regtest generate 101 cash-cli -regtest getbalance 500.00000000 cash-cli -regtest getnewaddress newAddress1 ...
0
votes
1answer
43 views

verifying my modifications to bitcoind w/o broadcasting anything

I want to verify that my updates to the bitcoind source code don't break anything. One way that I thought of doing that was through loading the mainnet data into a regtest instance. To do that I first ...
0
votes
0answers
99 views

Creating lage blocks with multiple transactions in regtest mode?

I want to create blocks with multiple transactions in regtest mode. I want to test propagation with blocks of size 1-2 MB on the dash network. ./dash-cli -regtest -daemon -debug -port=8330 -rpcport=...
2
votes
2answers
895 views

Bitcoin regtest mining

I wonder if I can do mining with Bitcoin-0.16.1 in regtest mode, just for simulating mainnet situation where there are new blocks coming in constantly. I am aware that I can use generate to generate ...