-
Notifications
You must be signed in to change notification settings - Fork 809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow prematureWitness flag #528
Comments
Hey man this might be irrelevant but there's a witness option in the wallet which will enable segwit in regtest mode. If that proves to not solve the segwit activation i can write a gist that'll enable segwit by default in regtest mode. |
This is a legacy from core which required 432 blocks to be mined before segwit activation on regtest (good article that mentions it here). Seems like it would be a good idea to either add this to configs though and possibly turn it on by default. |
So the way I fixed this was:
Although this works, it seems pretty hacky and I'm not sure what the ramifications are of especially the second point. My use case is simply broadcasting segwit transactions (pre-signed and built to hex); is there a way to do this without forking the codebase? |
Hey @alex-miller-0, |
I'm actually building a very lightweight signing mechanism and can't use the bcoin wallet class. I'm only using bcoin to broadcast raw transactions via the RPC API. |
That's fine. I was just mentioning those as the two pre-requisites. If you're on regtest and the network has mined 432 blocks it should be accepted by the mempool. I've tested this on my own regtest setups and it works 👍 |
addressed in #580 |
@alex-miller-0 Check out recent merge of #676 |
I am using bcoin for a local regtest network and want to use segwit. Looks like this is blocked based on the block number of my chain by a
prematureWitness
flag.Unfortunately, there does not appear to be a way to set this configuation in my
bcoin.conf
file, as all theMempool
options are transcribed here andprematureWitness
isn't on them.It would be nice if I could set this flag to true in a conf file.
The text was updated successfully, but these errors were encountered: