LayerTwo-Labs / bip300301_enforcer

CUSF software enforcing BIP300 and BIP301 rules.
1 stars 4 forks source link

Implement "mining" blocks in regtest mode #37

Closed nchashch closed 2 weeks ago

nchashch commented 2 weeks ago

There is already an implementation of this in the bip300301_wallet repository, just move it here.

torkelrogstad commented 2 weeks ago

What's your opinion on the idea brought up in this discussion in the protos repo?

https://github.com/LayerTwo-Labs/cusf_sidechain_proto/pull/5#discussion_r1793646099

I've implemented functionality for adding coinbase messages to the signet miner here: https://github.com/LayerTwo-Labs/bitcoin-patched/pull/6

Doing this approach in regtest as well could be a good way of testing that it works properly. And it would let us omit the generate RPC

nchashch commented 2 weeks ago

It would be easier to copy over the block construction from bip300301_wallet implementation.

torkelrogstad commented 2 weeks ago

I'm pretty sure that won't work on signet, though?

nchashch commented 2 weeks ago

Yes, but we need to get it to work with regtest first. We can worry about signet later.

Because all the other things we need to integrate Thunder and Enforcer depend on this working.