<p>Generation of blocks uses the proof of work algorithm that includes a nonce that ensures randomness, if we could somehow recreate all these things the whole system of cryptocurrency would break down. The short answer is no. </p>

CC BY-SA 4.0
2020-06-01T22:33:52.210Z
Downvoted. I don't see how this is related to the question.
Pieter Wuille
CC BY-SA 4.0
2020-01-03T21:51:44.637Z
2020-01-03T21:51:44.637Z
Johnny Good
<p>I am using bitcoin core on regtest mode to simulate sending transactions. </p>

<p>Is it possible to set an seed for things like generating blocks or signing transactions, so that you can recreate an exact chain of events with the same block hashes and signatures?</p>

CC BY-SA 4.0
2020-01-03T14:53:42.033Z
I'm not sure I understand the question completely..
In the current version you generate blocks to an address.
What would you set a seed for
Johnny Good
CC BY-SA 4.0
2020-01-07T16:55:18.403Z
Right now if i start up bitcoind in regtest mode, and the first thing I do is generate a block so that the block height is 1, the block hash will be unique. Is there any way of starting up bitcoind so that it would give me exactly the same block hash each time? (I realize now it would probably mean setting the time to something fixed).
Darius
<bitcoin-core><bitcoind>
Is it possible to set an overall seed for generating blocks on regtest mode?
Darius
# Is it possible to set an overall seed for generating blocks on regtest mode?

(Asked by: username_0 on 2019-12-27)

I am using bitcoin core on regtest mode to simulate sending transactions.

Is it possible to set an seed for things like generating blocks or signing transactions, so that you can recreate an exact chain of events with the same block hashes and signatures?

**Tags:** bitcoin-core, bitcoind

> **Comments:**
> **username_1**: I'm not sure I understand the question completely.. In the current version you generate blocks to an address. What would you set a seed for  
> **username_0**: Right now if i start up bitcoind in regtest mode, and the first thing I do is generate a block so that the block height is 1, the block hash will be unique. Is there any way of starting up bitcoind so that it would give me exactly the same block hash each time? (I realize now it would probably mean setting the time to something fixed).  

---

## 1 answers

### Answer by username_1 on 2020-01-03. Score: -1

Generation of blocks uses the proof of work algorithm that includes a nonce that ensures randomness, if we could somehow recreate all these things the whole system of cryptocurrency would break down. The short answer is no.

> **Comments:**
> **username_2**: Downvoted. I don't see how this is related to the question.  

---

